fm.liveswitch.BitrateNotification Class Reference

A bitrate notification. More...

Public Member Functions

 BitrateNotification ()
 Initializes a new instance of the fm.liveswitch.BitrateNotification class. More...
 
int getBitrate ()
 Gets the bitrate. More...
 
String getMediaDescriptionId ()
 Gets the media description ID. More...
 
String getRtpStreamId ()
 Gets the RTP stream ID. More...
 
long getSynchronizationSource ()
 Gets the synchronization source. More...
 
void setBitrate (int value)
 Sets the bitrate. More...
 
void setMediaDescriptionId (String value)
 Sets the media description ID. More...
 
void setRtpStreamId (String value)
 Sets the RTP stream ID. More...
 
void setSynchronizationSource (long value)
 Sets the synchronization source. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 

Static Public Member Functions

static fm.liveswitch.BitrateNotification fromJson (String bitrateNotificationJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.BitrateNotification[] fromJsonArray (String bitrateNotificationsJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.BitrateNotification bitrateNotification)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.BitrateNotification[] bitrateNotifications)
 Serializes an array to JSON. More...
 

Protected Member Functions

void deserializeProperty (String key, String valueJson)
 Deserializes a property from JSON. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes properties to JSON. More...
 

Detailed Description

A bitrate notification.

Constructor & Destructor Documentation

◆ BitrateNotification()

fm.liveswitch.BitrateNotification.BitrateNotification ( )

Initializes a new instance of the fm.liveswitch.BitrateNotification class.

Member Function Documentation

◆ deserializeProperty()

void fm.liveswitch.BitrateNotification.deserializeProperty ( String  key,
String  valueJson 
)
protected

Deserializes a property from JSON.

Parameters
keyThe property key.
valueJsonThe property value in JSON format.

◆ fromJson()

static fm.liveswitch.BitrateNotification fm.liveswitch.BitrateNotification.fromJson ( String  bitrateNotificationJson)
static

Deserializes an instance from JSON.

Parameters
bitrateNotificationJsonThe instance in JSON format.
Returns
The instance.

◆ fromJsonArray()

static fm.liveswitch.BitrateNotification [] fm.liveswitch.BitrateNotification.fromJsonArray ( String  bitrateNotificationsJson)
static

Deserializes an array from JSON.

Parameters
bitrateNotificationsJsonThe array in JSON format.
Returns
The array.

◆ getBitrate()

int fm.liveswitch.BitrateNotification.getBitrate ( )

Gets the bitrate.

◆ getMediaDescriptionId()

String fm.liveswitch.BitrateNotification.getMediaDescriptionId ( )

Gets the media description ID.

◆ getRtpStreamId()

String fm.liveswitch.BitrateNotification.getRtpStreamId ( )

Gets the RTP stream ID.

◆ getSynchronizationSource()

long fm.liveswitch.BitrateNotification.getSynchronizationSource ( )

Gets the synchronization source.

◆ serializeProperties()

void fm.liveswitch.BitrateNotification.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes properties to JSON.

Parameters
jsonObjectThe JSON target.

◆ setBitrate()

void fm.liveswitch.BitrateNotification.setBitrate ( int  value)

Sets the bitrate.

◆ setMediaDescriptionId()

void fm.liveswitch.BitrateNotification.setMediaDescriptionId ( String  value)

Sets the media description ID.

◆ setRtpStreamId()

void fm.liveswitch.BitrateNotification.setRtpStreamId ( String  value)

Sets the RTP stream ID.

◆ setSynchronizationSource()

void fm.liveswitch.BitrateNotification.setSynchronizationSource ( long  value)

Sets the synchronization source.

◆ toJson() [1/2]

String fm.liveswitch.BitrateNotification.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.BitrateNotification.toJson ( fm.liveswitch.BitrateNotification  bitrateNotification)
static

Serializes an instance to JSON.

Parameters
bitrateNotificationThe instance.
Returns
The instance in JSON format.

◆ toJsonArray()

static String fm.liveswitch.BitrateNotification.toJsonArray ( fm.liveswitch.BitrateNotification[]  bitrateNotifications)
static

Serializes an array to JSON.

Parameters
bitrateNotificationsThe array.
Returns
The array in JSON format.