FMLiveSwitchReport Class Reference

Report. More...

Instance Methods

(void) - deserializePropertiesWithKey:valueJson:
 Deserializes the properties. More...
 
(instancetype) - init
 
(void) - serializePropertiesWithJsonObject:
 Serializes the properties. More...
 

Class Methods

(NSMutableArray *) + processArrayWithNewValues:oldValues:
 Processes an array for a report. More...
 
(NSMutableArray *) + processBooleanArrayWithNewValues:oldValues:
 Processes a boolean array for a report. More...
 
(FMLiveSwitchNullableBool *) + processBooleanWithNewValue:oldValue:
 Processes a boolean for a report. More...
 
(FMLiveSwitchNullableDouble *) + processDoubleWithNewValue:oldValue:
 Processes a double for a report. More...
 
(NSMutableArray *) + processFloatArrayWithNewValues:oldValues:
 Processes a float array for a report. More...
 
(FMLiveSwitchNullableFloat *) + processFloatWithNewValue:oldValue:
 Processes a float for a report. More...
 
(NSMutableArray *) + processIntegerArrayWithNewValues:oldValues:
 Processes a integer array for a report. More...
 
(FMLiveSwitchNullableInt *) + processIntegerWithNewValue:oldValue:
 Processes an integer for a report. More...
 
(NSMutableArray *) + processLongArrayWithNewValues:oldValues:
 Processes a long array for a report. More...
 
(FMLiveSwitchNullableLong *) + processLongWithNewValue:oldValue:
 Processes a long for a report. More...
 
(NSObject< FMLiveSwitchIEquivalent > *) + processObjectWithNewValue:oldValue:
 Processes an array for a report. More...
 
(NSMutableArray *) + processShortArrayWithNewValues:oldValues:
 Processes a short array for a report. More...
 
(FMLiveSwitchNullableShort *) + processShortWithNewValue:oldValue:
 Processes a short for a report. More...
 
(NSString *) + processStringWithNewValue:oldValue:
 Processes a string for a report. More...
 
(FMLiveSwitchReport *) + report
 

Detailed Description

Report.

Method Documentation

◆ deserializePropertiesWithKey:valueJson:

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

◆ init

◆ processArrayWithNewValues:oldValues:

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

Processes an array for a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 a report.

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 array for a report.

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 a report.

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 a report.

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 a report.

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

◆ report

+ (FMLiveSwitchReport*) report

◆ serializePropertiesWithJsonObject: