mDatabaseItem

Summary

Database item class. Obtain and manage the object at the bottom of the nest in Database. Dictionary<string,object> Saved in format and retrieve value by key. It is necessary to know what type of value stored in each element is.

Relation

UIDataItem
System.Collections.Generic.IEnumerable

Property

isWatching Gets a value indicating whether this instance is watching the value change.
isUpdating Gets a value indicating whether this instance is updating.
isAutomaticallyUpdated Gets a value indicating whether this instance is automatically updated.
UID UID of data (name of parent's data path).

Method

Create(System.String,System.Collections.Generic.Dictionary{System.String,System.Object}) Create Database item from Dictionary<string,object>. Database item class. Obtain and manage the object at the bottom of the nest in Database. Dictionary<string,object> Saved in format and retrieve value by key. It is necessary to know what type of value stored in each element is.
Request(System.String) Load from path (Update every time you run). Database item class. Obtain and manage the object at the bottom of the nest in Database. Dictionary<string,object> Saved in format and retrieve value by key. It is necessary to know what type of value stored in each element is.
RequestOnce(System.String) Load from path (once only). Database item class. Obtain and manage the object at the bottom of the nest in Database. Dictionary<string,object> Saved in format and retrieve value by key. It is necessary to know what type of value stored in each element is.
RequestAutomaticallyUpdate(System.String) Load from path (constant monitoring). Database item class. Obtain and manage the object at the bottom of the nest in Database. Dictionary<string,object> Saved in format and retrieve value by key. It is necessary to know what type of value stored in each element is.
RequestRefresh( ) Reload data. Data read with RequestAutomaticallyUpdate can not be updated. Please use Request or RequestOnce.
SaveBasicParamsForUserData(mDatabaseAuth) Register ID and UID in empty user data. Mainly used for private user data.
Dispose(System.Boolean) Destroy task
Save(System.Int64) Data save (Overwrite available) ( Request to server ).
Push(System.Int64,System.Int32,System.Boolean) Add data(Request to server). Fail if it is not created from empty data with path. i.e. mDatabaseItem item = mDatabaseItem.Create( "/user/data" ); item["Key"] = "Value"; item.Push( );
Clear( ) Clear data .
ClearFromServer( ) Clear data ( Request to server ).
ClearFromServer(System.String) Clear data ( Request to server ).
CloneEmpty<T>(System.String) Create empty. Path information and task status are cloned.
Clone<T>(System.String) Create clone. Path information and task status are cloned.
ToString( ) Serialize to mDatabaseItem -> string
Serialize(mDatabaseItem) Serialize to mDatabaseItem -> string
Deserialize(System.String) Deserialization to string -> mDatabaseItem

Reference