CloudOnce v2.7.5
Unified Game Services API
|
Data-class for regular cloud preferences. Takes care of serialization and deserialization of the data. The value can be reset to default or altered. More...
Public Member Functions | |
SyncableItem (JSONObject itemData) | |
Initializes a new instance of the SyncableItem class. Reconstructs the item from a JSONObject. More... | |
SyncableItem (string value, SyncableItemMetaData metadata) | |
Initializes a new instance of the SyncableItem class. More... | |
bool | Equals (SyncableItem other) |
Checks if this item is identical to another. More... | |
JSONObject | ToJSONObject () |
Converts the item into a JSONObject. More... | |
void | FromJSONObject (JSONObject jsonObject) |
Reconstructs the item from a JSONObject. More... | |
override string | ToString () |
Returns the meta data as a formatted string. More... | |
JSONObject | ToJSONObject () |
void | FromJSONObject (JSONObject jsonObject) |
Properties | |
SyncableItemMetaData | Metadata [get] |
The items meta data. Used for serialization and conflict resolution. | |
string | ValueString [get, set] |
The item's value as a string. | |
Data-class for regular cloud preferences. Takes care of serialization and deserialization of the data. The value can be reset to default or altered.
|
inline |
Initializes a new instance of the SyncableItem class. Reconstructs the item from a JSONObject.
itemData | The JSONObject containing the SyncableItem |
|
inline |
Initializes a new instance of the SyncableItem class.
value | The value in string form |
metadata | A collection of info about the SyncableItem |
|
inline |
Checks if this item is identical to another.
other | The other item to check against. |
true
if the items are identical, false
if there are any differences.
|
inline |
Reconstructs the item from a JSONObject.
jsonObject | JSONObject containing the item data. |
Implements CloudOnce.Internal.IJsonDeserializable.
|
inline |
Converts the item into a JSONObject.
Implements CloudOnce.Internal.IJsonSerializable.
|
inline |
Returns the meta data as a formatted string.