C# Class LongoMatch.DB.DocumentsSerializer

Exibir arquivo Open project: GNOME/longomatch

Public Methods

Method Description
LoadObject ( Type objType, System.Guid id, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : object
SaveObject ( IStorable obj, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : void

Private Methods

Method Description
DeserializeObject ( Type type, Couchbase.Lite.Document doc, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : object

Deserializes a Document

GetLocalTypes ( Type objType ) : List
GetSerializer ( Type serType, Couchbase.Lite.Revision rev, Couchbase.Lite.Database db, IDReferenceResolver resolver, List localTypes ) : JsonSerializer
SerializeObject ( IStorable obj, Couchbase.Lite.Revision rev, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : Newtonsoft.Json.Linq.JObject

Serializes an object into a JObject.

Method Details

LoadObject() public static method

public static LoadObject ( Type objType, System.Guid id, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : object
objType System.Type
id System.Guid
db Couchbase.Lite.Database
resolver IDReferenceResolver
return object

SaveObject() public static method

public static SaveObject ( IStorable obj, Couchbase.Lite.Database db, IDReferenceResolver resolver = null ) : void
obj IStorable
db Couchbase.Lite.Database
resolver IDReferenceResolver
return void