Candidate pair stats.
More...
◆ CandidatePairStats()
fm.liveswitch.CandidatePairStats.CandidatePairStats |
( |
| ) |
|
◆ deserializeProperties()
void fm.liveswitch.CandidatePairStats.deserializeProperties |
( |
String |
key, |
|
|
String |
valueJson |
|
) |
| |
|
protected |
Deserializes the properties.
- Parameters
-
key | The key. |
valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.BaseStats.
◆ fromJson()
Derializes candidate pair stats from JSON.
- Parameters
-
candidatePairJson | The candidate pair's stats JSON. |
◆ fromJsonArray()
Derializes an array of candidate pair stats from JSON.
- Parameters
-
candidatePairsJson | The candidate pairs' stats JSON. |
◆ getBytesReceived()
long fm.liveswitch.CandidatePairStats.getBytesReceived |
( |
| ) |
|
Gets the number of bytes received.
◆ getBytesSent()
long fm.liveswitch.CandidatePairStats.getBytesSent |
( |
| ) |
|
Gets the number of bytes sent.
◆ getConsentRequestsReceived()
long fm.liveswitch.CandidatePairStats.getConsentRequestsReceived |
( |
| ) |
|
Gets the number of consent requests received.
◆ getConsentRequestsSent()
long fm.liveswitch.CandidatePairStats.getConsentRequestsSent |
( |
| ) |
|
Gets the number of consent requests sent.
◆ getConsentResponsesReceived()
long fm.liveswitch.CandidatePairStats.getConsentResponsesReceived |
( |
| ) |
|
Gets the number of consent responses received.
◆ getConsentResponsesSent()
long fm.liveswitch.CandidatePairStats.getConsentResponsesSent |
( |
| ) |
|
Gets the number of consent responses sent.
◆ getCurrentRoundTripTime()
int fm.liveswitch.CandidatePairStats.getCurrentRoundTripTime |
( |
| ) |
|
Gets the current round trip time in milliseconds.
◆ getLocalCandidateId()
String fm.liveswitch.CandidatePairStats.getLocalCandidateId |
( |
| ) |
|
Gets the local candidate identifier.
◆ getNominated()
boolean fm.liveswitch.CandidatePairStats.getNominated |
( |
| ) |
|
Gets whether the candidate pair is nominated.
◆ getPriority()
long fm.liveswitch.CandidatePairStats.getPriority |
( |
| ) |
|
◆ getRemoteCandidateId()
String fm.liveswitch.CandidatePairStats.getRemoteCandidateId |
( |
| ) |
|
Gets the remote candidate identifier.
◆ getRequestsReceived()
long fm.liveswitch.CandidatePairStats.getRequestsReceived |
( |
| ) |
|
Gets the number of requests received.
◆ getRequestsSent()
long fm.liveswitch.CandidatePairStats.getRequestsSent |
( |
| ) |
|
Gets the number of requests sent.
◆ getResponsesReceived()
long fm.liveswitch.CandidatePairStats.getResponsesReceived |
( |
| ) |
|
Gets the number of responses received.
◆ getResponsesSent()
long fm.liveswitch.CandidatePairStats.getResponsesSent |
( |
| ) |
|
Gets the number of responses sent.
◆ getState()
◆ getTotalRoundTripTime()
int fm.liveswitch.CandidatePairStats.getTotalRoundTripTime |
( |
| ) |
|
Gets the total round trip time in milliseconds.
◆ getTransportId()
String fm.liveswitch.CandidatePairStats.getTransportId |
( |
| ) |
|
Gets the transport identifier.
◆ isEquivalent()
Checks if a candidate pair is equivalent to this one.
- Parameters
-
instance | The candidate pair. |
◆ serializeProperties()
void fm.liveswitch.CandidatePairStats.serializeProperties |
( |
java.util.HashMap< String, String > |
jsonObject | ) |
|
|
protected |
◆ toJson() [1/2]
String fm.liveswitch.CandidatePairStats.toJson |
( |
| ) |
|
◆ toJson() [2/2]
Serializes candidate pair stats to JSON.
- Parameters
-
candidatePair | The candidate pair's stats. |
◆ toJsonArray()
Serializes an array of candidate pair stats to JSON.
- Parameters
-
candidatePairs | The candidate pairs' stats. |