Class DataChannelStats
Data channel stats.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class DataChannelStats : BaseStats
Constructors
DataChannelStats()
Initializes a new instance of DataChannelStats.
Declaration
public DataChannelStats()
Properties
BytesReceived
Gets the number of bytes received.
Declaration
public long BytesReceived { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
BytesSent
Gets the number of bytes sent.
Declaration
public long BytesSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Label
Gets the label.
Declaration
public string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
MessagesReceived
Gets the number of messages received.
Declaration
public long MessagesReceived { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
MessagesSent
Gets the number of messages sent.
Declaration
public long MessagesSent { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Ordered
Gets whether the channel is ordered.
Declaration
public bool Ordered { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Protocol
Gets the protocol.
Declaration
public string Protocol { get; }
Property Value
Type | Description |
---|---|
System.String |
State
Gets the state.
Declaration
public DataChannelState State { get; }
Property Value
Type | Description |
---|---|
DataChannelState |
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)
Derializes data channel stats from JSON.
Declaration
public static DataChannelStats FromJson(string dataChannelJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataChannelJson | The data channel's stats JSON. |
Returns
Type | Description |
---|---|
DataChannelStats |
FromJsonArray(String)
Derializes an array of data channel stats from JSON.
Declaration
public static DataChannelStats[] FromJsonArray(string dataChannelsJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | dataChannelsJson | The data channels' stats JSON. |
Returns
Type | Description |
---|---|
DataChannelStats[] |
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 to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(DataChannelStats)
Serializes data channel stats to JSON.
Declaration
public static string ToJson(DataChannelStats dataChannel)
Parameters
Type | Name | Description |
---|---|---|
DataChannelStats | dataChannel | The data channel's stats. |
Returns
Type | Description |
---|---|
System.String |
ToJsonArray(DataChannelStats[])
Serializes an array of data channel stats to JSON.
Declaration
public static string ToJsonArray(DataChannelStats[] dataChannels)
Parameters
Type | Name | Description |
---|---|---|
DataChannelStats[] | dataChannels | The data channels' stats. |
Returns
Type | Description |
---|---|
System.String |