Class CandidatePairStats
Candidate pair stats.
Implements
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class CandidatePairStats : BaseStats, IEquivalent<CandidatePairStats>
Constructors
CandidatePairStats()
Initializes a new instance of the Candidate
Declaration
public CandidatePairStats()
Properties
BytesReceived
Gets the number of bytes received.
Declaration
public long BytesReceived { get; }
Property Value
Type | Description |
---|---|
System. |
BytesSent
Gets the number of bytes sent.
Declaration
public long BytesSent { get; }
Property Value
Type | Description |
---|---|
System. |
ConsentRequestsReceived
Gets the number of consent requests received.
Declaration
public long ConsentRequestsReceived { get; }
Property Value
Type | Description |
---|---|
System. |
ConsentRequestsSent
Gets the number of consent requests sent.
Declaration
public long ConsentRequestsSent { get; }
Property Value
Type | Description |
---|---|
System. |
ConsentResponsesReceived
Gets the number of consent responses received.
Declaration
public long ConsentResponsesReceived { get; }
Property Value
Type | Description |
---|---|
System. |
ConsentResponsesSent
Gets the number of consent responses sent.
Declaration
public long ConsentResponsesSent { get; }
Property Value
Type | Description |
---|---|
System. |
CurrentRoundTripTime
Gets the current round trip time in milliseconds.
Declaration
public int CurrentRoundTripTime { get; }
Property Value
Type | Description |
---|---|
System. |
LocalCandidateId
Gets the local candidate identifier.
Declaration
public string LocalCandidateId { get; }
Property Value
Type | Description |
---|---|
System. |
Nominated
Gets whether the candidate pair is nominated.
Declaration
public bool Nominated { get; }
Property Value
Type | Description |
---|---|
System. |
Priority
Gets the priority.
Declaration
public long Priority { get; }
Property Value
Type | Description |
---|---|
System. |
RemoteCandidateId
Gets the remote candidate identifier.
Declaration
public string RemoteCandidateId { get; }
Property Value
Type | Description |
---|---|
System. |
RequestsReceived
Gets the number of requests received.
Declaration
public long RequestsReceived { get; }
Property Value
Type | Description |
---|---|
System. |
RequestsSent
Gets the number of requests sent.
Declaration
public long RequestsSent { get; }
Property Value
Type | Description |
---|---|
System. |
ResponsesReceived
Gets the number of responses received.
Declaration
public long ResponsesReceived { get; }
Property Value
Type | Description |
---|---|
System. |
ResponsesSent
Gets the number of responses sent.
Declaration
public long ResponsesSent { get; }
Property Value
Type | Description |
---|---|
System. |
State
Gets the state.
Declaration
public CandidatePairState State { get; }
Property Value
Type | Description |
---|---|
Candidate |
TotalRoundTripTime
Gets the total round trip time in milliseconds.
Declaration
public int TotalRoundTripTime { get; }
Property Value
Type | Description |
---|---|
System. |
TransportId
Gets the transport identifier.
Declaration
public string TransportId { get; }
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)
Derializes candidate pair stats from JSON.
Declaration
public static CandidatePairStats FromJson(string candidatePairJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
candidatePairJson | The candidate pair's stats JSON. |
Returns
Type | Description |
---|---|
Candidate |
FromJsonArray(String)
Derializes an array of candidate pair stats from JSON.
Declaration
public static CandidatePairStats[] FromJsonArray(string candidatePairsJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
candidatePairsJson | The candidate pairs' stats JSON. |
Returns
Type | Description |
---|---|
Candidate |
IsEquivalent(CandidatePairStats)
Checks if a candidate pair is equivalent to this one.
Declaration
public bool IsEquivalent(CandidatePairStats instance)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
instance | The candidate pair. |
Returns
Type | Description |
---|---|
System. |
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 to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(CandidatePairStats)
Serializes candidate pair stats to JSON.
Declaration
public static string ToJson(CandidatePairStats candidatePair)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
candidatePair | The candidate pair's stats. |
Returns
Type | Description |
---|---|
System. |
ToJsonArray(CandidatePairStats[])
Serializes an array of candidate pair stats to JSON.
Declaration
public static string ToJsonArray(CandidatePairStats[] candidatePairs)
Parameters
Type | Name | Description |
---|---|---|
Candidate |
candidatePairs | The candidate pairs' stats. |
Returns
Type | Description |
---|---|
System. |