FMLiveSwitchInfo Class Reference

Information. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(NSString *) - id
 Gets the identifier. More...
 
(instancetype) - init
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 
(void) - setId:
 Sets the identifier. More...
 

Class Methods

(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

Information.

Method Documentation

◆ deserializePropertiesWithKey:valueJson:

◆ id

- (NSString*) id

Gets the identifier.

◆ info

+ (FMLiveSwitchInfo*) info

◆ init

◆ processArrayWithNewValues:oldValues:

+ (NSMutableArray*) processArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes an array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values are not equivalent to the old values; otherwise null.

◆ processBooleanArrayWithNewValues:oldValues:

+ (NSMutableArray*) processBooleanArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes a boolean array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processBooleanWithNewValue:oldValue:

+ (FMLiveSwitchNullableBool*) processBooleanWithNewValue: (bool)  newValue
oldValue: (bool)  oldValue 

Processes a boolean for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processDoubleWithNewValue:oldValue:

+ (FMLiveSwitchNullableDouble*) processDoubleWithNewValue: (double)  newValue
oldValue: (double)  oldValue 

Processes a double for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processFloatArrayWithNewValues:oldValues:

+ (NSMutableArray*) processFloatArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes a float array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processFloatWithNewValue:oldValue:

+ (FMLiveSwitchNullableFloat*) processFloatWithNewValue: (float)  newValue
oldValue: (float)  oldValue 

Processes a float for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processIntegerArrayWithNewValues:oldValues:

+ (NSMutableArray*) processIntegerArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes a integer array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processIntegerWithNewValue:oldValue:

+ (FMLiveSwitchNullableInt*) processIntegerWithNewValue: (int)  newValue
oldValue: (int)  oldValue 

Processes an integer for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processLongArrayWithNewValues:oldValues:

+ (NSMutableArray*) processLongArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes a long array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processLongWithNewValue:oldValue:

+ (FMLiveSwitchNullableLong*) processLongWithNewValue: (long long)  newValue
oldValue: (long long)  oldValue 

Processes a long for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processObjectWithNewValue:oldValue:

+ (NSObject<FMLiveSwitchIEquivalent>*) processObjectWithNewValue: (NSObject< FMLiveSwitchIEquivalent > *)  newValue
oldValue: (NSObject< FMLiveSwitchIEquivalent > *)  oldValue 

Processes an object for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processShortArrayWithNewValues:oldValues:

+ (NSMutableArray*) processShortArrayWithNewValues: (NSMutableArray *)  newValues
oldValues: (NSMutableArray *)  oldValues 

Processes a short array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processShortWithNewValue:oldValue:

+ (FMLiveSwitchNullableShort*) processShortWithNewValue: (short)  newValue
oldValue: (short)  oldValue 

Processes a short for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processStringWithNewValue:oldValue:

+ (NSString*) processStringWithNewValue: (NSString *)  newValue
oldValue: (NSString *)  oldValue 

Processes a string for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ serializePropertiesWithJsonObject:

◆ setId:

- (void) setId: (NSString *)  value

Sets the identifier.