CloudOnce v2.7.5
Unified Game Services API
CloudOnce.Internal.SyncableItemMetaData Class Reference

Holds data about a SyncableItem. More...

Inheritance diagram for CloudOnce.Internal.SyncableItemMetaData:
[legend]
Collaboration diagram for CloudOnce.Internal.SyncableItemMetaData:
[legend]

Public Member Functions

 SyncableItemMetaData (DataType dataType, PersistenceType persistenceType)
 Initializes a new instance of the SyncableItemMetaData class. More...
 
 SyncableItemMetaData (JSONObject jsonObject)
 Initializes a new instance of the SyncableItemMetaData class. Reconstructs the meta data from a JSONObject. More...
 
void UpdateDateTime ()
 Updates the timestamp.
 
bool Equals (SyncableItemMetaData other)
 Check if this meta data is identical to another. More...
 
override string ToString ()
 Returns the meta data as a formatted string. More...
 
void FromJSONObject (JSONObject jsonObject)
 Reconstructs the meta data from a JSONObject. More...
 
JSONObject ToJSONObject ()
 Converts the meta data into a JSONObject. More...
 
JSONObject ToJSONObject ()
 
void FromJSONObject (JSONObject jsonObject)
 

Properties

DataType DataType [get]
 The SyncableItem's data type.
 
PersistenceType PersistenceType [get]
 The SyncableItem's persistence type. Used for conflict resolution.
 
DateTime Timestamp [get]
 The time that the SyncableItem was last updated.
 

Detailed Description

Holds data about a SyncableItem.

Constructor & Destructor Documentation

◆ SyncableItemMetaData() [1/2]

CloudOnce.Internal.SyncableItemMetaData.SyncableItemMetaData ( DataType  dataType,
PersistenceType  persistenceType 
)
inline

Initializes a new instance of the SyncableItemMetaData class.

Parameters
dataTypeThe data type
persistenceTypeThe selected conflict resolution type

◆ SyncableItemMetaData() [2/2]

CloudOnce.Internal.SyncableItemMetaData.SyncableItemMetaData ( JSONObject  jsonObject)
inline

Initializes a new instance of the SyncableItemMetaData class. Reconstructs the meta data from a JSONObject.

Parameters
jsonObjectJSONObject containing the meta data.

Member Function Documentation

◆ Equals()

bool CloudOnce.Internal.SyncableItemMetaData.Equals ( SyncableItemMetaData  other)
inline

Check if this meta data is identical to another.

Parameters
otherThe other meta data to check against.
Returns
Returns true if the meta data is identical, false if there are any differences.

◆ FromJSONObject()

void CloudOnce.Internal.SyncableItemMetaData.FromJSONObject ( JSONObject  jsonObject)
inline

Reconstructs the meta data from a JSONObject.

Parameters
jsonObjectJSONObject containing the meta data.

Implements CloudOnce.Internal.IJsonDeserializable.

◆ ToJSONObject()

JSONObject CloudOnce.Internal.SyncableItemMetaData.ToJSONObject ( )
inline

Converts the meta data into a JSONObject.

Returns
JSONObject containing the meta data

Implements CloudOnce.Internal.IJsonSerializable.

◆ ToString()

override string CloudOnce.Internal.SyncableItemMetaData.ToString ( )
inline

Returns the meta data as a formatted string.

Returns
The meta data as a formatted string.

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