Public Member Functions | |
| CandidateStats () | |
| Initializes a new instance of the fm.liveswitch.CandidateStats class. More... | |
| String | getIPAddress () |
| Gets the IP address. More... | |
| boolean | getIsHost () |
| Gets whether the candidate is host/local. More... | |
| boolean | getIsReflexive () |
| Gets whether the candidate is reflexive. More... | |
| boolean | getIsRelayed () |
| Gets whether the candidate is relayed. More... | |
| int | getPort () |
| Gets the port. More... | |
| long | getPriority () |
| Gets the priority. More... | |
| fm.liveswitch.ProtocolType | getProtocol () |
| Gets the protocol. More... | |
| String | getRelatedIPAddress () |
| Gets the related IP address. More... | |
| int | getRelatedPort () |
| Gets the related port. More... | |
| fm.liveswitch.ProtocolType | getRelayProtocol () |
| Gets the relay protocol. More... | |
| fm.liveswitch.ProtocolType | getTurnProtocol () |
| Gets the relay protocol. More... | |
| fm.liveswitch.CandidateType | getType () |
| Gets the type. More... | |
| boolean | isEquivalent (fm.liveswitch.CandidateStats instance) |
| Checks if a candidate is equivalent to this one. More... | |
| String | toJson () |
| Serializes this to JSON. More... | |
Public Member Functions inherited from fm.liveswitch.BaseStats | |
| String | getId () |
| Gets the identifier of the object generating these stats. More... | |
| java.util.Date | getTimestamp () |
| Gets the timestamp when these stats were generated. More... | |
Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.CandidateStats > | |
| abstract boolean | isEquivalent (T instance) |
| Checks if an instance is equivalent to this one. More... | |
Static Public Member Functions | |
| static fm.liveswitch.CandidateStats | fromJson (String candidateJson) |
| Derializes candidate stats from JSON. More... | |
| static fm.liveswitch.CandidateStats[] | fromJsonArray (String candidatesJson) |
| Derializes an array of candidate stats from JSON. More... | |
| static String | toJson (fm.liveswitch.CandidateStats candidate) |
| Serializes candidate stats to JSON. More... | |
| static String | toJsonArray (fm.liveswitch.CandidateStats[] candidates) |
| Serializes an array of candidate stats to JSON. More... | |
Protected Member Functions | |
| void | deserializeProperties (String key, String valueJson) |
| Deserializes the properties. More... | |
| void | serializeProperties (java.util.HashMap< String, String > jsonObject) |
| Serializes the properties. More... | |
Protected Member Functions inherited from fm.liveswitch.BaseStats | |
| BaseStats () | |
Candidate stats.
| fm.liveswitch.CandidateStats.CandidateStats | ( | ) |
Initializes a new instance of the fm.liveswitch.CandidateStats class.
|
protected |
Deserializes the properties.
| key | The key. |
| valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.BaseStats.
|
static |
Derializes candidate stats from JSON.
| candidateJson | The candidate's stats JSON. |
|
static |
Derializes an array of candidate stats from JSON.
| candidatesJson | The candidates' stats JSON. |
| String fm.liveswitch.CandidateStats.getIPAddress | ( | ) |
Gets the IP address.
| boolean fm.liveswitch.CandidateStats.getIsHost | ( | ) |
Gets whether the candidate is host/local.
| boolean fm.liveswitch.CandidateStats.getIsReflexive | ( | ) |
Gets whether the candidate is reflexive.
| boolean fm.liveswitch.CandidateStats.getIsRelayed | ( | ) |
Gets whether the candidate is relayed.
| int fm.liveswitch.CandidateStats.getPort | ( | ) |
Gets the port.
| long fm.liveswitch.CandidateStats.getPriority | ( | ) |
Gets the priority.
| fm.liveswitch.ProtocolType fm.liveswitch.CandidateStats.getProtocol | ( | ) |
Gets the protocol.
| String fm.liveswitch.CandidateStats.getRelatedIPAddress | ( | ) |
Gets the related IP address.
| int fm.liveswitch.CandidateStats.getRelatedPort | ( | ) |
Gets the related port.
| fm.liveswitch.ProtocolType fm.liveswitch.CandidateStats.getRelayProtocol | ( | ) |
Gets the relay protocol.
| fm.liveswitch.ProtocolType fm.liveswitch.CandidateStats.getTurnProtocol | ( | ) |
Gets the relay protocol.
| fm.liveswitch.CandidateType fm.liveswitch.CandidateStats.getType | ( | ) |
Gets the type.
| boolean fm.liveswitch.CandidateStats.isEquivalent | ( | fm.liveswitch.CandidateStats | instance | ) |
Checks if a candidate is equivalent to this one.
| instance | The candidate. |
|
protected |
Serializes the properties.
| jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.BaseStats.
| String fm.liveswitch.CandidateStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes candidate stats to JSON.
| candidate | The candidate's stats. |
|
static |
Serializes an array of candidate stats to JSON.
| candidates | The candidates' stats. |