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 Transport
Declaration
public TransportInfo()
Properties
ActiveCandidatePairId
Gets or sets the active candidate pair identifier.
Declaration
public string ActiveCandidatePairId { get; set; }
Property Value
Type | Description |
---|---|
System. |
CandidatePairs
Gets or sets the candidate pairs.
Declaration
public CandidatePairInfo[] CandidatePairs { get; set; }
Property Value
Type | Description |
---|---|
Candidate |
LocalCandidates
Gets or sets the local candidates.
Declaration
public CandidateInfo[] LocalCandidates { get; set; }
Property Value
Type | Description |
---|---|
Candidate |
LocalCertificate
Gets or sets the local certificate.
Declaration
public CertificateInfo LocalCertificate { get; set; }
Property Value
Type | Description |
---|---|
Certificate |
RemoteCandidates
Gets or sets the remote candidates.
Declaration
public CandidateInfo[] RemoteCandidates { get; set; }
Property Value
Type | Description |
---|---|
Candidate |
RemoteCertificate
Gets or sets the remote certificate.
Declaration
public CertificateInfo RemoteCertificate { get; set; }
Property Value
Type | Description |
---|---|
Certificate |
Report
Gets or sets the transport report.
Declaration
public TransportReport Report { get; set; }
Property Value
Type | Description |
---|---|
Transport |
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 TransportReport.
Declaration
public static TransportInfo FromJson(string transportReportJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
transportReportJson | The serialized Json. |
Returns
Type | Description |
---|---|
Transport |
The deserialized TransportReport. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static TransportInfo[] FromJsonArray(string transportInfosJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
transportInfosJson | The serialized JSON. |
Returns
Type | Description |
---|---|
Transport |
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. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(TransportInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(TransportInfo transportReport)
Parameters
Type | Name | Description |
---|---|---|
Transport |
transportReport | The instance to serialize. |
Returns
Type | Description |
---|---|
System. |
Serialized Json. |
ToJsonArray(TransportInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(TransportInfo[] transportInfos)
Parameters
Type | Name | Description |
---|---|---|
Transport |
transportInfos | The array to serialize. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |