Class DataChannelInfo
Data channel information.
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 DataChannelInfo : Info
Properties
Label
Gets or sets the data channel label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
System. |
Ordered
Gets or sets whether the data channel is ordered.
Declaration
public bool Ordered { get; set; }
Property Value
Type | Description |
---|---|
System. |
Report
Gets or sets the data channel report.
Declaration
public DataChannelReport Report { get; set; }
Property Value
Type | Description |
---|---|
Data |
State
Gets or sets the data channel state.
Declaration
public string State { get; set; }
Property Value
Type | Description |
---|---|
System. |
Subprotocol
Gets or sets the data channel subprotocol.
Declaration
public string Subprotocol { get; set; }
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)
Deserializes Json to a DataChannelInfo.
Declaration
public static DataChannelInfo FromJson(string dataChannelInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataChannelInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
Data |
The deserialized DataChannelInfo. |
FromJsonArray(String)
Deserializes JSON to an array.
Declaration
public static DataChannelInfo[] FromJsonArray(string dataChannelInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
dataChannelInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
Data |
The deserialized array. |
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 instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(DataChannelInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(DataChannelInfo dataChannelInfo)
Parameters
Type | Name | Description |
---|---|---|
Data |
dataChannelInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System. |
Serialized Json. |
ToJsonArray(DataChannelInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(DataChannelInfo[] dataChannelInfos)
Parameters
Type | Name | Description |
---|---|---|
Data |
dataChannelInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |