Public Member Functions | |
| fm.liveswitch.MediaTrackStats | getTrack () |
| Gets the first track's stats. More... | |
| fm.liveswitch.MediaTrackStats | getTrack (String trackId) |
| Gets a track by its identifier. More... | |
| fm.liveswitch.MediaTrackStats[] | getTracks () |
| Gets the tracks' stats. More... | |
| MediaStats () | |
| 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... | |
Static Public Member Functions | |
| static fm.liveswitch.MediaStats | fromJson (String mediaJson) |
| Derializes media stats from JSON. More... | |
| static String | toJson (fm.liveswitch.MediaStats media) |
| Serializes media 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 () | |
Media stats.
| fm.liveswitch.MediaStats.MediaStats | ( | ) |
|
protected |
Deserializes the properties.
| key | The key. |
| valueJson | The value in JSON format. |
Reimplemented from fm.liveswitch.BaseStats.
|
static |
Derializes media stats from JSON.
| mediaJson | The media's stats JSON. |
| fm.liveswitch.MediaTrackStats fm.liveswitch.MediaStats.getTrack | ( | ) |
Gets the first track's stats.
| fm.liveswitch.MediaTrackStats fm.liveswitch.MediaStats.getTrack | ( | String | trackId | ) |
Gets a track by its identifier.
| trackId | The track identifier. |
| fm.liveswitch.MediaTrackStats [] fm.liveswitch.MediaStats.getTracks | ( | ) |
Gets the tracks' stats.
|
protected |
Serializes the properties.
| jsonObject | The JSON object. |
Reimplemented from fm.liveswitch.BaseStats.
| String fm.liveswitch.MediaStats.toJson | ( | ) |
Serializes this to JSON.
|
static |
Serializes media stats to JSON.
| media | The media's stats. |