Data channel stats.
More...
◆ DataChannelStats()
fm.liveswitch.DataChannelStats.DataChannelStats |
( |
| ) |
|
◆ deserializeProperties()
void fm.liveswitch.DataChannelStats.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 data channel stats from JSON.
- Parameters
-
dataChannelJson | The data channel's stats JSON. |
◆ fromJsonArray()
Derializes an array of data channel stats from JSON.
- Parameters
-
dataChannelsJson | The data channels' stats JSON. |
◆ getBytesReceived()
long fm.liveswitch.DataChannelStats.getBytesReceived |
( |
| ) |
|
Gets the number of bytes received.
◆ getBytesSent()
long fm.liveswitch.DataChannelStats.getBytesSent |
( |
| ) |
|
Gets the number of bytes sent.
◆ getLabel()
String fm.liveswitch.DataChannelStats.getLabel |
( |
| ) |
|
◆ getMessagesReceived()
long fm.liveswitch.DataChannelStats.getMessagesReceived |
( |
| ) |
|
Gets the number of messages received.
◆ getMessagesSent()
long fm.liveswitch.DataChannelStats.getMessagesSent |
( |
| ) |
|
Gets the number of messages sent.
◆ getOrdered()
boolean fm.liveswitch.DataChannelStats.getOrdered |
( |
| ) |
|
Gets whether the channel is ordered.
◆ getProtocol()
String fm.liveswitch.DataChannelStats.getProtocol |
( |
| ) |
|
◆ getState()
◆ serializeProperties()
void fm.liveswitch.DataChannelStats.serializeProperties |
( |
java.util.HashMap< String, String > |
jsonObject | ) |
|
|
protected |
◆ toJson() [1/2]
String fm.liveswitch.DataChannelStats.toJson |
( |
| ) |
|
◆ toJson() [2/2]
Serializes data channel stats to JSON.
- Parameters
-
dataChannel | The data channel's stats. |
◆ toJsonArray()
Serializes an array of data channel stats to JSON.
- Parameters
-
dataChannels | The data channels' stats. |