dotmailer SDK: dotMailer.Sdk.SerialisationFactory Class Reference

dotmailer SDK

dotmailer SDK
Tools to access and manage an account in the dotMailer system
dotMailer.Sdk.SerialisationFactory Class Reference

Class that deals with the serialisation of the objects and collections More...

Public Member Functions

string Serialise (IDmObject dmObject, SerialisationType serialisationType)
 Takes a IDmObject and serialises it to a string depending on the specified serialisation type
 
IDmObject Deserialise (string inputString, SerialisationType serialisationType)
 Takes a string, and rebuilds the IdmObject that generated the string
 

Detailed Description

Class that deals with the serialisation of the objects and collections

Member Function Documentation

IDmObject dotMailer.Sdk.SerialisationFactory.Deserialise ( string  inputString,
SerialisationType  serialisationType 
)

Takes a string, and rebuilds the IdmObject that generated the string

Parameters
inputStringthe serialised data
serialisationTypeXml or Json
Returns
IDmObject
string dotMailer.Sdk.SerialisationFactory.Serialise ( IDmObject  dmObject,
SerialisationType  serialisationType 
)

Takes a IDmObject and serialises it to a string depending on the specified serialisation type

Parameters
dmObjectObject to serialise
serialisationTypeXml or Json output
Returns
UTf8 string
Generated by   doxygen 1.8.3