FMLiveSwitchCodecInfo Class Reference

Codec information. More...

Instance Methods

(FMLiveSwitchNullableInt *) - channelCount
 Gets the codec channel count. More...
 
(FMLiveSwitchNullableInt *) - clockRate
 Gets the codec clock rate. More...
 
(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(NSString *) - name
 Gets the codec name. More...
 
(NSString *) - parameters
 Gets the codec parameters. More...
 
(FMLiveSwitchNullableInt *) - payloadType
 Gets the codec payload type. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setChannelCount:
 Sets the codec channel count. More...
 
(void) - setClockRate:
 Sets the codec clock rate. More...
 
(void) - setName:
 Sets the codec name. More...
 
(void) - setParameters:
 Sets the codec parameters. More...
 
(void) - setPayloadType:
 Sets the codec payload type. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 
- Instance Methods inherited from FMLiveSwitchInfo
(NSString *) - id
 Gets the identifier. More...
 
(void) - setId:
 Sets the identifier. More...
 

Class Methods

(FMLiveSwitchCodecInfo *) + codecInfo
 
(NSMutableArray *) + fromJsonArrayWithCodecInfosJson:
 Deserializes an array from JSON. More...
 
(FMLiveSwitchCodecInfo *) + fromJsonWithCodecInfoJson:
 Deserializes an instance from JSON. More...
 
(NSString *) + toJsonArrayWithCodecInfos:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithCodecInfo:
 Serializes an instance to JSON. More...
 
- Class Methods inherited from FMLiveSwitchInfo
(FMLiveSwitchInfo *) + info
 
(NSMutableArray *) + processArrayWithNewValues:oldValues:
 Processes an array for an info. More...
 
(NSMutableArray *) + processBooleanArrayWithNewValues:oldValues:
 Processes a boolean array for an info. More...
 
(FMLiveSwitchNullableBool *) + processBooleanWithNewValue:oldValue:
 Processes a boolean for an info. More...
 
(FMLiveSwitchNullableDouble *) + processDoubleWithNewValue:oldValue:
 Processes a double for an info. More...
 
(NSMutableArray *) + processFloatArrayWithNewValues:oldValues:
 Processes a float array for an info. More...
 
(FMLiveSwitchNullableFloat *) + processFloatWithNewValue:oldValue:
 Processes a float for an info. More...
 
(NSMutableArray *) + processIntegerArrayWithNewValues:oldValues:
 Processes a integer array for an info. More...
 
(FMLiveSwitchNullableInt *) + processIntegerWithNewValue:oldValue:
 Processes an integer for an info. More...
 
(NSMutableArray *) + processLongArrayWithNewValues:oldValues:
 Processes a long array for an info. More...
 
(FMLiveSwitchNullableLong *) + processLongWithNewValue:oldValue:
 Processes a long for an info. More...
 
(NSObject< FMLiveSwitchIEquivalent > *) + processObjectWithNewValue:oldValue:
 Processes an object for an info. More...
 
(NSMutableArray *) + processShortArrayWithNewValues:oldValues:
 Processes a short array for an info. More...
 
(FMLiveSwitchNullableShort *) + processShortWithNewValue:oldValue:
 Processes a short for an info. More...
 
(NSString *) + processStringWithNewValue:oldValue:
 Processes a string for an info. More...
 

Detailed Description

Codec information.

Method Documentation

◆ channelCount

- (FMLiveSwitchNullableInt*) channelCount

Gets the codec channel count.

◆ clockRate

- (FMLiveSwitchNullableInt*) clockRate

Gets the codec clock rate.

◆ codecInfo

+ (FMLiveSwitchCodecInfo*) codecInfo

◆ deserializePropertiesWithKey:valueJson:

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchInfo.

◆ fromJsonArrayWithCodecInfosJson:

+ (NSMutableArray*) fromJsonArrayWithCodecInfosJson: (NSString *)  codecInfosJson

Deserializes an array from JSON.

Parameters
codecInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ fromJsonWithCodecInfoJson:

+ (FMLiveSwitchCodecInfo*) fromJsonWithCodecInfoJson: (NSString *)  codecInfoJson

Deserializes an instance from JSON.

Parameters
codecInfoJsonThe serialized JSON.
Returns
The deserialized instance.

◆ init

- (instancetype) init

Implements FMLiveSwitchInfo.

◆ name

- (NSString*) name

Gets the codec name.

◆ parameters

- (NSString*) parameters

Gets the codec parameters.

◆ payloadType

- (FMLiveSwitchNullableInt*) payloadType

Gets the codec payload type.

◆ serializePropertiesWithJsonObject:

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchInfo.

◆ setChannelCount:

- (void) setChannelCount: (FMLiveSwitchNullableInt *)  value

Sets the codec channel count.

◆ setClockRate:

- (void) setClockRate: (FMLiveSwitchNullableInt *)  value

Sets the codec clock rate.

◆ setName:

- (void) setName: (NSString *)  value

Sets the codec name.

◆ setParameters:

- (void) setParameters: (NSString *)  value

Sets the codec parameters.

◆ setPayloadType:

- (void) setPayloadType: (FMLiveSwitchNullableInt *)  value

Sets the codec payload type.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonArrayWithCodecInfos:

+ (NSString*) toJsonArrayWithCodecInfos: (NSMutableArray *)  codecInfos

Serializes an array to JSON.

Parameters
codecInfosThe array to serialize.
Returns
The serialized JSON.

◆ toJsonWithCodecInfo:

+ (NSString*) toJsonWithCodecInfo: (FMLiveSwitchCodecInfo *)  codecInfo

Serializes an instance to JSON.

Parameters
codecInfoThe instance to serialize.
Returns
The serialized JSON.