fm.liveswitch.BitrateRequest Class Reference

A bitrate request. More...

Public Member Functions

 BitrateRequest ()
 Initializes a new instance of the fm.liveswitch.BitrateRequest 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 getSenderSynchronizationSource ()
 Gets the sender synchronization source. 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 setSenderSynchronizationSource (long value)
 Sets the sender synchronization source. 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.BitrateRequest fromJson (String bitrateRequestJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.BitrateRequest[] fromJsonArray (String bitrateRequestsJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.BitrateRequest bitrateRequest)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.BitrateRequest[] bitrateRequests)
 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 request.

Constructor & Destructor Documentation

◆ BitrateRequest()

fm.liveswitch.BitrateRequest.BitrateRequest ( )

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

Member Function Documentation

◆ deserializeProperty()

void fm.liveswitch.BitrateRequest.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.BitrateRequest fm.liveswitch.BitrateRequest.fromJson ( String  bitrateRequestJson)
static

Deserializes an instance from JSON.

Parameters
bitrateRequestJsonThe instance in JSON format.
Returns
The instance.

◆ fromJsonArray()

static fm.liveswitch.BitrateRequest [] fm.liveswitch.BitrateRequest.fromJsonArray ( String  bitrateRequestsJson)
static

Deserializes an array from JSON.

Parameters
bitrateRequestsJsonThe array in JSON format.
Returns
The array.

◆ getBitrate()

int fm.liveswitch.BitrateRequest.getBitrate ( )

Gets the bitrate.

◆ getMediaDescriptionId()

String fm.liveswitch.BitrateRequest.getMediaDescriptionId ( )

Gets the media description ID.

◆ getRtpStreamId()

String fm.liveswitch.BitrateRequest.getRtpStreamId ( )

Gets the RTP stream ID.

◆ getSenderSynchronizationSource()

long fm.liveswitch.BitrateRequest.getSenderSynchronizationSource ( )

Gets the sender synchronization source.

◆ getSynchronizationSource()

long fm.liveswitch.BitrateRequest.getSynchronizationSource ( )

Gets the synchronization source.

◆ serializeProperties()

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

Serializes properties to JSON.

Parameters
jsonObjectThe JSON target.

◆ setBitrate()

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

Sets the bitrate.

◆ setMediaDescriptionId()

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

Sets the media description ID.

◆ setRtpStreamId()

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

Sets the RTP stream ID.

◆ setSenderSynchronizationSource()

void fm.liveswitch.BitrateRequest.setSenderSynchronizationSource ( long  value)

Sets the sender synchronization source.

◆ setSynchronizationSource()

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

Sets the synchronization source.

◆ toJson() [1/2]

String fm.liveswitch.BitrateRequest.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.BitrateRequest.toJson ( fm.liveswitch.BitrateRequest  bitrateRequest)
static

Serializes an instance to JSON.

Parameters
bitrateRequestThe instance.
Returns
The instance in JSON format.

◆ toJsonArray()

static String fm.liveswitch.BitrateRequest.toJsonArray ( fm.liveswitch.BitrateRequest[]  bitrateRequests)
static

Serializes an array to JSON.

Parameters
bitrateRequestsThe array.
Returns
The array in JSON format.