Search Results for

    Show / Hide Table of Contents

    Class DataChannelInfo

    Data channel information.

    Inheritance
    System.Object
    Info
    DataChannelInfo
    Inherited Members
    Info.Id
    Info.ProcessBoolean(Boolean, Boolean)
    Info.ProcessShort(Int16, Int16)
    Info.ProcessInteger(Int32, Int32)
    Info.ProcessLong(Int64, Int64)
    Info.ProcessFloat(Single, Single)
    Info.ProcessDouble(Double, Double)
    Info.ProcessString(String, String)
    Info.ProcessBooleanArray(Boolean[], Boolean[])
    Info.ProcessShortArray(Int16[], Int16[])
    Info.ProcessIntegerArray(Int32[], Int32[])
    Info.ProcessLongArray(Int64[], Int64[])
    Info.ProcessFloatArray(Single[], Single[])
    Info.ProcessFloatArray(Double[], Double[])
    Info.ProcessObject<T>(T, T)
    Info.ProcessArray<T>(T[], T[])
    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public class DataChannelInfo : Info

    Properties

    Label

    Gets or sets the data channel label.

    Declaration
    public string Label { get; set; }
    Property Value
    Type Description
    System.String

    Ordered

    Gets or sets whether the data channel is ordered.

    Declaration
    public bool Ordered { get; set; }
    Property Value
    Type Description
    System.Boolean

    Report

    Gets or sets the data channel report.

    Declaration
    public DataChannelReport Report { get; set; }
    Property Value
    Type Description
    DataChannelReport

    State

    Gets or sets the data channel state.

    Declaration
    public string State { get; set; }
    Property Value
    Type Description
    System.String

    Subprotocol

    Gets or sets the data channel subprotocol.

    Declaration
    public string Subprotocol { get; set; }
    Property Value
    Type Description
    System.String

    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
    Info.DeserializeProperties(String, String)

    FromJson(String)

    Deserializes Json to a DataChannelInfo.

    Declaration
    public static DataChannelInfo FromJson(string dataChannelInfoJson)
    Parameters
    Type Name Description
    System.String dataChannelInfoJson

    The serialized Json.

    Returns
    Type Description
    DataChannelInfo

    The deserialized DataChannelInfo.

    FromJsonArray(String)

    Deserializes JSON to an array.

    Declaration
    public static DataChannelInfo[] FromJsonArray(string dataChannelInfosJson)
    Parameters
    Type Name Description
    System.String dataChannelInfosJson

    The serialized JSON.

    Returns
    Type Description
    DataChannelInfo[]

    The deserialized array.

    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
    Info.SerializeProperties(Dictionary<String, String>)

    ToJson()

    Serializes this instance to Json.

    Declaration
    public string ToJson()
    Returns
    Type Description
    System.String

    ToJson(DataChannelInfo)

    Serializes an instance to Json.

    Declaration
    public static string ToJson(DataChannelInfo dataChannelInfo)
    Parameters
    Type Name Description
    DataChannelInfo dataChannelInfo

    The instance to serialize.

    Returns
    Type Description
    System.String

    Serialized Json.

    ToJsonArray(DataChannelInfo[])

    Serializes an array to JSON.

    Declaration
    public static string ToJsonArray(DataChannelInfo[] dataChannelInfos)
    Parameters
    Type Name Description
    DataChannelInfo[] dataChannelInfos

    The array to serialize.

    Returns
    Type Description
    System.String

    The serialized JSON.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0