FMLiveSwitchSimulcastNotification Class Reference

A simulcast notification. More...

Instance Methods

(void) - deserializePropertyWithKey:valueJson:
 Deserializes a property from JSON. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSimulcastNotification 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) - setMediaDescriptionId:
 Sets the media description ID. More...
 
(void) - setRtpStreamId:
 Sets the RTP stream ID. More...
 
(void) - setStreamState:
 Sets the simulcast stream's state. More...
 
(void) - setSynchronizationSource:
 Sets the synchronization source. More...
 
(FMLiveSwitchSimulcastStreamState) - streamState
 Gets the simulcast stream's state. More...
 
(long long) - synchronizationSource
 Gets the synchronization source. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 

Class Methods

(NSMutableArray *) + fromJsonArrayWithSimulcastNotificationJson:
 Deserializes an array from JSON. More...
 
(FMLiveSwitchSimulcastNotification *) + fromJsonWithSimulcastNotificationJson:
 Deserializes an instance from JSON. More...
 
(FMLiveSwitchSimulcastNotification *) + simulcastNotification
 Initializes a new instance of the FMLiveSwitchSimulcastNotification class. More...
 
(NSString *) + toJsonArrayWithSimulcastNotifications:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithSimulcastNotification:
 Serializes an instance to JSON. More...
 

Detailed Description

A simulcast notification.

Method Documentation

◆ deserializePropertyWithKey:valueJson:

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

Deserializes a property from JSON.

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

◆ fromJsonArrayWithSimulcastNotificationJson:

+ (NSMutableArray*) fromJsonArrayWithSimulcastNotificationJson: (NSString *)  simulcastNotificationJson

Deserializes an array from JSON.

Parameters
simulcastNotificationJsonThe array in JSON format.
Returns
The array.

◆ fromJsonWithSimulcastNotificationJson:

+ (FMLiveSwitchSimulcastNotification*) fromJsonWithSimulcastNotificationJson: (NSString *)  simulcastNotificationJson

Deserializes an instance from JSON.

Parameters
simulcastNotificationJsonThe instance in JSON format.
Returns
The instance.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchSimulcastNotification 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.

◆ setMediaDescriptionId:

- (void) setMediaDescriptionId: (NSString *)  value

Sets the media description ID.

◆ setRtpStreamId:

- (void) setRtpStreamId: (NSString *)  value

Sets the RTP stream ID.

◆ setStreamState:

- (void) setStreamState: (FMLiveSwitchSimulcastStreamState)  value

Sets the simulcast stream's state.

◆ setSynchronizationSource:

- (void) setSynchronizationSource: (long long)  value

Sets the synchronization source.

◆ simulcastNotification

+ (FMLiveSwitchSimulcastNotification*) simulcastNotification

Initializes a new instance of the FMLiveSwitchSimulcastNotification class.

◆ streamState

- (FMLiveSwitchSimulcastStreamState) streamState

Gets the simulcast stream's state.

◆ synchronizationSource

- (long long) synchronizationSource

Gets the synchronization source.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonArrayWithSimulcastNotifications:

+ (NSString*) toJsonArrayWithSimulcastNotifications: (NSMutableArray *)  simulcastNotifications

Serializes an array to JSON.

Parameters
simulcastNotificationsThe array.
Returns
The array in JSON format.

◆ toJsonWithSimulcastNotification:

+ (NSString*) toJsonWithSimulcastNotification: (FMLiveSwitchSimulcastNotification *)  simulcastNotification

Serializes an instance to JSON.

Parameters
simulcastNotificationThe instance.
Returns
The instance in JSON format.