Class ServerMetadata
Data class to hold server metadata including server device ID and server time offset for synchronization
Constructors
Declaration
public ServerMetadata(string serverId)
Parameters
| Type |
Name |
Description |
| System.String |
serverId |
|
Properties
Declaration
public string DeviceId { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public bool IsSynced { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public long TimeOffset { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Methods
Declaration
public long GetServerTime()
Returns
| Type |
Description |
| System.Int64 |
|
Declaration
public void SetTimeOffset(long offset)
Parameters
| Type |
Name |
Description |
| System.Int64 |
offset |
|