Class DataChannelInfo
Data channel information.
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 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
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 |
---|---|---|
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(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. |