Class BaseStats
Base stats.
Inheritance
System.Object
BaseStats
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class BaseStats : object
Properties
Id
Gets the identifier of the object generating these stats.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Timestamp
Gets the timestamp when these stats were generated.
Declaration
public DateTime Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected virtual void DeserializeProperties(string key, string valueJson)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
| System.String | valueJson | The value in JSON format. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected virtual void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<System.String, System.String> | jsonObject | The JSON object. |