FMLiveSwitchBitrateNotification Class Reference

A bitrate notification. More...

Instance Methods

(int) - bitrate
 Gets the bitrate. More...
 
(void) - deserializePropertyWithKey:valueJson:
 Deserializes a property from JSON. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchBitrateNotification class. More...
 
(NSString *) - mediaDescriptionId
 Gets the media description ID. More...
 
(NSString *) - rtpStreamId
 Gets the RTP stream ID. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes properties to JSON. More...
 
(void) - setBitrate:
 Sets the bitrate. More...
 
(void) - setMediaDescriptionId:
 Sets the media description ID. More...
 
(void) - setRtpStreamId:
 Sets the RTP stream ID. More...
 
(void) - setSynchronizationSource:
 Sets the synchronization source. More...
 
(long long) - synchronizationSource
 Gets the synchronization source. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 

Class Methods

(FMLiveSwitchBitrateNotification *) + bitrateNotification
 Initializes a new instance of the FMLiveSwitchBitrateNotification class. More...
 
(NSMutableArray *) + fromJsonArrayWithBitrateNotificationsJson:
 Deserializes an array from JSON. More...
 
(FMLiveSwitchBitrateNotification *) + fromJsonWithBitrateNotificationJson:
 Deserializes an instance from JSON. More...
 
(NSString *) + toJsonArrayWithBitrateNotifications:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithBitrateNotification:
 Serializes an instance to JSON. More...
 

Detailed Description

A bitrate notification.

Method Documentation

◆ bitrate

- (int) bitrate

Gets the bitrate.

◆ bitrateNotification

+ (FMLiveSwitchBitrateNotification*) bitrateNotification

Initializes a new instance of the FMLiveSwitchBitrateNotification class.

◆ deserializePropertyWithKey:valueJson:

- (void) deserializePropertyWithKey: (NSString *)  key
valueJson: (NSString *)  valueJson 

Deserializes a property from JSON.

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

◆ fromJsonArrayWithBitrateNotificationsJson:

+ (NSMutableArray*) fromJsonArrayWithBitrateNotificationsJson: (NSString *)  bitrateNotificationsJson

Deserializes an array from JSON.

Parameters
bitrateNotificationsJsonThe array in JSON format.
Returns
The array.

◆ fromJsonWithBitrateNotificationJson:

+ (FMLiveSwitchBitrateNotification*) fromJsonWithBitrateNotificationJson: (NSString *)  bitrateNotificationJson

Deserializes an instance from JSON.

Parameters
bitrateNotificationJsonThe instance in JSON format.
Returns
The instance.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchBitrateNotification class.

◆ mediaDescriptionId

- (NSString*) mediaDescriptionId

Gets the media description ID.

◆ rtpStreamId

- (NSString*) rtpStreamId

Gets the RTP stream ID.

◆ serializePropertiesWithJsonObject:

- (void) serializePropertiesWithJsonObject: (NSMutableDictionary< NSString *, NSString * > *)  jsonObject

Serializes properties to JSON.

Parameters
jsonObjectThe JSON target.

◆ setBitrate:

- (void) setBitrate: (int)  value

Sets the bitrate.

◆ setMediaDescriptionId:

- (void) setMediaDescriptionId: (NSString *)  value

Sets the media description ID.

◆ setRtpStreamId:

- (void) setRtpStreamId: (NSString *)  value

Sets the RTP stream ID.

◆ setSynchronizationSource:

- (void) setSynchronizationSource: (long long)  value

Sets the synchronization source.

◆ synchronizationSource

- (long long) synchronizationSource

Gets the synchronization source.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonArrayWithBitrateNotifications:

+ (NSString*) toJsonArrayWithBitrateNotifications: (NSMutableArray *)  bitrateNotifications

Serializes an array to JSON.

Parameters
bitrateNotificationsThe array.
Returns
The array in JSON format.

◆ toJsonWithBitrateNotification:

+ (NSString*) toJsonWithBitrateNotification: (FMLiveSwitchBitrateNotification *)  bitrateNotification

Serializes an instance to JSON.

Parameters
bitrateNotificationThe instance.
Returns
The instance in JSON format.