Class CandidateInfo
Candidate information.
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CandidateInfo : Info
Constructors
CandidateInfo()
Initializes a new instance of the Candidate
Declaration
public CandidateInfo()
Properties
IPAddress
Gets or sets the candidate IP address.
Declaration
public string IPAddress { get; set; }
Property Value
Type | Description |
---|---|
System. |
Port
Gets or sets the candidate port.
Declaration
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
System. |
Priority
Gets or sets the candidate priority.
Declaration
public long? Priority { get; set; }
Property Value
Type | Description |
---|---|
System. |
Protocol
Gets or sets the candidate protocol.
Declaration
public string Protocol { get; set; }
Property Value
Type | Description |
---|---|
System. |
RelatedIPAddress
Gets or sets the candidate related IP address.
Declaration
public string RelatedIPAddress { get; set; }
Property Value
Type | Description |
---|---|
System. |
RelatedPort
Gets or sets the candidate related port.
Declaration
public int? RelatedPort { get; set; }
Property Value
Type | Description |
---|---|
System. |
RelayProtocol
Gets or sets the candidate relay protocol.
Declaration
public string RelayProtocol { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets or sets the candidate type.
Declaration
public string Type { 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 CandidateInfo FromJson(string candidateReportJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
candidateReportJson | The JSON. |
Returns
Type | Description |
---|---|
Candidate |
The deserialized instance. |
FromJsonArray(String)
Deserializes an array from JSON.
Declaration
public static CandidateInfo[] FromJsonArray(string candidateReportsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
candidateReportsJson | The 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 |
---|---|---|
Dictionary<System. |
jsonObject | The JSON object. |
Overrides
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(CandidateInfo)
Serializes an instance to JSON.
Declaration
public static string ToJson(CandidateInfo candidateReport)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
candidateReport | The instance. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |
ToJsonArray(CandidateInfo[])
Serializes an array to JSON.
Declaration
public static string ToJsonArray(CandidateInfo[] candidateReports)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
candidateReports | The array. |
Returns
Type | Description |
---|---|
System. |
The serialized JSON. |