Beamable SDK
Classes | Public Member Functions | Protected Member Functions | List of all members
Beamable.Common.Content.ContentSerializer< TContentBase > Class Template Referenceabstract

Classes

class  PropertyValue
 

Public Member Functions

string SerializeProperties< TContent > (TContent content)
 returns only the {} representing the properties object More...
 
string Serialize< TContent > (TContent content)
 Returns the {id: 1, version: 1, properties: {}} json model. More...
 
TContentBase DeserializeByType (string json, Type contentType)
 
TContent Deserialize< TContent > (string json)
 
TContent ConvertItem< TContent > (ArrayDict root)
 

Protected Member Functions

string GetNullStringForType (Type argType)
 
string SerializeArgument (object arg, Type argType)
 
object DeserializeResult (object preParsedValue, Type type)
 
abstract TContent CreateInstance< TContent > ()
 

Member Function Documentation

◆ ConvertItem< TContent >()

TContent Beamable.Common.Content.ContentSerializer< TContentBase >.ConvertItem< TContent > ( ArrayDict  root)
inline
Type Constraints
TContent :TContentBase 
TContent :IContentObject 
TContent :new() 

◆ CreateInstance< TContent >()

abstract TContent Beamable.Common.Content.ContentSerializer< TContentBase >.CreateInstance< TContent > ( )
protectedpure virtual
Type Constraints
TContent :TContentBase 
TContent :IContentObject 
TContent :new() 

◆ Deserialize< TContent >()

TContent Beamable.Common.Content.ContentSerializer< TContentBase >.Deserialize< TContent > ( string  json)
inline
Type Constraints
TContent :TContentBase 
TContent :IContentObject 
TContent :new() 

◆ Serialize< TContent >()

string Beamable.Common.Content.ContentSerializer< TContentBase >.Serialize< TContent > ( TContent  content)
inline

Returns the {id: 1, version: 1, properties: {}} json model.

Parameters
content
Template Parameters
TContent
Returns
Type Constraints
TContent :IContentObject 
TContent :new() 

◆ SerializeProperties< TContent >()

string Beamable.Common.Content.ContentSerializer< TContentBase >.SerializeProperties< TContent > ( TContent  content)
inline

returns only the {} representing the properties object

Parameters
content
Template Parameters
TContent
Returns
Type Constraints
TContent :IContentObject 

The documentation for this class was generated from the following file: