Search Results for

    Show / Hide Table of Contents

    Class DataChannelStats

    Data channel stats.

    Inheritance
    System.Object
    BaseStats
    DataChannelStats
    Inherited Members
    BaseStats.Id
    BaseStats.Timestamp
    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
    BaseStats.DeserializeProperties(String, String)

    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
    Dictionary<System.String, System.String> jsonObject

    The JSON object.

    Overrides
    BaseStats.SerializeProperties(Dictionary<String, String>)

    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
    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0