Class ClientReport
Client report.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ClientReport : Report
Properties
Id
Gets or sets the identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
MessageBytesReceived
Gets or sets the number of message bytes received by this client.
Declaration
public long? MessageBytesReceived { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
MessageBytesSent
Gets or sets the number of message bytes sent by this client.
Declaration
public long? MessageBytesSent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
MessagesReceived
Gets or sets the number of messages received by this client.
Declaration
public long? MessagesReceived { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
MessagesSent
Gets or sets the number of messages sent by this client.
Declaration
public long? MessagesSent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static ClientReport FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceJson | The instance JSON. |
Returns
Type | Description |
---|---|
ClientReport | The deserialized instance. |
FromJsonArray(String)
Derializes an array from JSON.
Declaration
public static ClientReport[] FromJsonArray(string arrayJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | arrayJson | The array JSON. |
Returns
Type | Description |
---|---|
ClientReport[] | The deserialized array. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(ClientReport)
Serializes an instance to JSON.
Declaration
public static string ToJson(ClientReport instance)
Parameters
Type | Name | Description |
---|---|---|
ClientReport | instance | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | The instance JSON. |
ToJsonArray(ClientReport[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(ClientReport[] array)
Parameters
Type | Name | Description |
---|---|---|
ClientReport[] | array | The array. |
Returns
Type | Description |
---|---|
System.String | The serialized array JSON. |