Class DataStreamStats
Data stream stats.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class DataStreamStats : StreamStats
Properties
BytesReceived
Gets the number of bytes received.
Declaration
public long BytesReceived { get; }
Property Value
Type | Description |
---|---|
System. |
BytesSent
Gets the number of bytes sent.
Declaration
public long BytesSent { get; }
Property Value
Type | Description |
---|---|
System. |
Channel
Gets the first channel's stats.
Declaration
public DataChannelStats Channel { get; }
Property Value
Type | Description |
---|---|
Data |
Channels
Gets the channels' stats.
Declaration
public DataChannelStats[] Channels { get; }
Property Value
Type | Description |
---|---|
Data |
DataChannel
Gets the first channel's stats.
Declaration
[Obsolete("Use Channel instead.")]
public DataChannelStats DataChannel { get; }
Property Value
Type | Description |
---|---|
Data |
DataChannels
Gets the channels' stats.
Declaration
[Obsolete("Use Channels instead.")]
public DataChannelStats[] DataChannels { get; }
Property Value
Type | Description |
---|---|
Data |
MessagesReceived
Gets the number of messages received.
Declaration
public long MessagesReceived { get; }
Property Value
Type | Description |
---|---|
System. |
MessagesSent
Gets the number of messages sent.
Declaration
public long MessagesSent { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
Overrides
FromJson(String)
Derializes data stream stats from JSON.
Declaration
public static DataStreamStats FromJson(string dataStreamJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataStreamJson | The data stream's stats JSON. |
Returns
Type | Description |
---|---|
Data |
FromJsonArray(String)
Derializes an array of data stream stats from JSON.
Declaration
public static DataStreamStats[] FromJsonArray(string dataStreamsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataStreamsJson | The data streams' stats JSON. |
Returns
Type | Description |
---|---|
Data |
GetChannel(String)
Gets a channel by its identifier.
Declaration
public DataChannelStats GetChannel(string channelId)
Parameters
Type | Name | Description |
---|---|---|
System. |
channelId | The channel identifier. |
Returns
Type | Description |
---|---|
Data |
GetDataChannel(String)
Gets a channel by its identifier.
Declaration
[Obsolete("Use GetChannel instead.")]
public DataChannelStats GetDataChannel(string dataChannelId)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataChannelId | The channel identifier. |
Returns
Type | Description |
---|---|
Data |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(DataStreamStats)
Serializes data stream stats to JSON.
Declaration
public static string ToJson(DataStreamStats dataStream)
Parameters
Type | Name | Description |
---|---|---|
Data |
dataStream | The data stream's stats. |
Returns
Type | Description |
---|---|
System. |
ToJsonArray(DataStreamStats[])
Serializes an array of data stream stats to JSON.
Declaration
public static string ToJsonArray(DataStreamStats[] dataStreams)
Parameters
Type | Name | Description |
---|---|---|
Data |
dataStreams | The data streams' stats. |
Returns
Type | Description |
---|---|
System. |