FMLiveSwitchDataChannelInfo Class Reference

Data channel information. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(NSString *) - label
 Gets the data channel label. More...
 
(bool) - ordered
 Gets whether the data channel is ordered. More...
 
(FMLiveSwitchDataChannelReport *) - report
 Gets the data channel report. More...
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setLabel:
 Sets the data channel label. More...
 
(void) - setOrdered:
 Sets whether the data channel is ordered. More...
 
(void) - setReport:
 Sets the data channel report. More...
 
(void) - setState:
 Sets the data channel state. More...
 
(void) - setSubprotocol:
 Sets the data channel subprotocol. More...
 
(NSString *) - state
 Gets the data channel state. More...
 
(NSString *) - subprotocol
 Gets the data channel subprotocol. 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

(FMLiveSwitchDataChannelInfo *) + dataChannelInfo
 
(NSMutableArray *) + fromJsonArrayWithDataChannelInfosJson:
 Deserializes JSON to an array. More...
 
(FMLiveSwitchDataChannelInfo *) + fromJsonWithDataChannelInfoJson:
 Deserializes Json to a DataChannelInfo. More...
 
(NSString *) + toJsonArrayWithDataChannelInfos:
 Serializes an array to JSON. More...
 
(NSString *) + toJsonWithDataChannelInfo:
 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

Data channel information.

Method Documentation

◆ dataChannelInfo

+ (FMLiveSwitchDataChannelInfo*) dataChannelInfo

◆ deserializePropertiesWithKey:valueJson:

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Implements FMLiveSwitchInfo.

◆ fromJsonArrayWithDataChannelInfosJson:

+ (NSMutableArray*) fromJsonArrayWithDataChannelInfosJson: (NSString *)  dataChannelInfosJson

Deserializes JSON to an array.

Parameters
dataChannelInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ fromJsonWithDataChannelInfoJson:

+ (FMLiveSwitchDataChannelInfo*) fromJsonWithDataChannelInfoJson: (NSString *)  dataChannelInfoJson

Deserializes Json to a DataChannelInfo.

Parameters
dataChannelInfoJsonThe serialized Json.
Returns
The deserialized DataChannelInfo.

◆ init

- (instancetype) init

Implements FMLiveSwitchInfo.

◆ label

- (NSString*) label

Gets the data channel label.

◆ ordered

- (bool) ordered

Gets whether the data channel is ordered.

◆ report

Gets the data channel report.

◆ serializePropertiesWithJsonObject:

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Implements FMLiveSwitchInfo.

◆ setLabel:

- (void) setLabel: (NSString *)  value

Sets the data channel label.

◆ setOrdered:

- (void) setOrdered: (bool)  value

Sets whether the data channel is ordered.

◆ setReport:

- (void) setReport: (FMLiveSwitchDataChannelReport *)  value

Sets the data channel report.

◆ setState:

- (void) setState: (NSString *)  value

Sets the data channel state.

◆ setSubprotocol:

- (void) setSubprotocol: (NSString *)  value

Sets the data channel subprotocol.

◆ state

- (NSString*) state

Gets the data channel state.

◆ subprotocol

- (NSString*) subprotocol

Gets the data channel subprotocol.

◆ toJson

- (NSString*) toJson

Serializes this instance to Json.

◆ toJsonArrayWithDataChannelInfos:

+ (NSString*) toJsonArrayWithDataChannelInfos: (NSMutableArray *)  dataChannelInfos

Serializes an array to JSON.

Parameters
dataChannelInfosThe array to serialize.
Returns
The serialized JSON.

◆ toJsonWithDataChannelInfo:

+ (NSString*) toJsonWithDataChannelInfo: (FMLiveSwitchDataChannelInfo *)  dataChannelInfo

Serializes an instance to Json.

Parameters
dataChannelInfoThe instance to serialize.
Returns
Serialized Json.