Class TransportInfo
Transport Information.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class TransportInfo : Info
Constructors
TransportInfo()
Initializes a new instance of the TransportInfo class.
Declaration
public TransportInfo()
Properties
ActiveCandidatePairId
Gets or sets the active candidate pair identifier.
Declaration
public string ActiveCandidatePairId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CandidatePairs
Gets or sets the candidate pairs.
Declaration
public CandidatePairInfo[] CandidatePairs { get; set; }
Property Value
Type | Description |
---|---|
CandidatePairInfo[] |
LocalCandidates
Gets or sets the local candidates.
Declaration
public CandidateInfo[] LocalCandidates { get; set; }
Property Value
Type | Description |
---|---|
CandidateInfo[] |
LocalCertificate
Gets or sets the local certificate.
Declaration
public CertificateInfo LocalCertificate { get; set; }
Property Value
Type | Description |
---|---|
CertificateInfo |
RemoteCandidates
Gets or sets the remote candidates.
Declaration
public CandidateInfo[] RemoteCandidates { get; set; }
Property Value
Type | Description |
---|---|
CandidateInfo[] |
RemoteCertificate
Gets or sets the remote certificate.
Declaration
public CertificateInfo RemoteCertificate { get; set; }
Property Value
Type | Description |
---|---|
CertificateInfo |
Report
Gets or sets the transport report.
Declaration
public TransportReport Report { get; set; }
Property Value
Type | Description |
---|---|
TransportReport |
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 TransportReport.
Declaration
public static TransportInfo FromJson(string transportReportJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | transportReportJson | The serialized Json. |
Returns
Type | Description |
---|---|
TransportInfo | The deserialized TransportReport. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static TransportInfo[] FromJsonArray(string transportInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | transportInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
TransportInfo[] | 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
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(TransportInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(TransportInfo transportReport)
Parameters
Type | Name | Description |
---|---|---|
TransportInfo | transportReport | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |
ToJsonArray(TransportInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(TransportInfo[] transportInfos)
Parameters
Type | Name | Description |
---|---|---|
TransportInfo[] | transportInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |