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 CandidatePairInfo class.
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.String |
Nominated
Gets or sets whether the candidate pair is nominated.
Declaration
public bool? Nominated { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Priority
Gets or sets the candidate pair priority.
Declaration
public long? Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> |
RemoteCandidateId
Gets or sets the candidate pair's remote candidate identifier.
Declaration
public string RemoteCandidateId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Report
Gets or sets whether the candidate pair report.
Declaration
public CandidatePairReport Report { get; set; }
Property Value
Type | Description |
---|---|
CandidatePairReport |
State
Gets or sets the candidate pair state.
Declaration
public string State { 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 an instance from JSON.
Declaration
public static CandidatePairInfo FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceJson | The instance JSON. |
Returns
Type | Description |
---|---|
CandidatePairInfo | The deserialized instance. |
FromJsonArray(String)
Derializes an array from JSON.
Declaration
public static CandidatePairInfo[] FromJsonArray(string arrayJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | arrayJson | The array JSON. |
Returns
Type | Description |
---|---|
CandidatePairInfo[] | 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(CandidatePairInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(CandidatePairInfo instance)
Parameters
Type | Name | Description |
---|---|---|
CandidatePairInfo | instance | The instance. |
Returns
Type | Description |
---|---|
System.String | The serialized instance JSON. |
ToJsonArray(CandidatePairInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(CandidatePairInfo[] array)
Parameters
Type | Name | Description |
---|---|---|
CandidatePairInfo[] | array | The array. |
Returns
Type | Description |
---|---|
System.String | The serialized array JSON. |