Class CandidatePairInfo
Candidate pair information.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CandidatePairInfo : Info
Constructors
CandidatePairInfo()
Initializes a new instance of the Candidate
Declaration
public CandidatePairInfo()
Properties
LocalCandidateId
Gets or sets the candidate pair's local candidate identifier.
Declaration
public string LocalCandidateId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Nominated
Gets or sets whether the candidate pair is nominated.
Declaration
public bool? Nominated { get; set; }
Property Value
Type | Description |
---|---|
System. |
Priority
Gets or sets the candidate pair priority.
Declaration
public long? Priority { get; set; }
Property Value
Type | Description |
---|---|
System. |
RemoteCandidateId
Gets or sets the candidate pair's remote candidate identifier.
Declaration
public string RemoteCandidateId { get; set; }
Property Value
Type | Description |
---|---|
System. |
Report
Gets or sets whether the candidate pair report.
Declaration
public CandidatePairReport Report { get; set; }
Property Value
Type | Description |
---|---|
Candidate |
State
Gets or sets the candidate pair state.
Declaration
public string State { 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 an instance from JSON.
Declaration
public static CandidatePairInfo FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
instanceJson | The instance JSON. |
Returns
Type | Description |
---|---|
Candidate |
The deserialized instance. |
FromJsonArray(String)
Derializes an array from JSON.
Declaration
public static CandidatePairInfo[] FromJsonArray(string arrayJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
arrayJson | The array JSON. |
Returns
Type | Description |
---|---|
Candidate |
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(CandidatePairInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(CandidatePairInfo instance)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
instance | The instance. |
Returns
Type | Description |
---|---|
System. |
The serialized instance JSON. |
ToJsonArray(CandidatePairInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(CandidatePairInfo[] array)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
array | The array. |
Returns
Type | Description |
---|---|
System. |
The serialized array JSON. |