Class Report
Report.
Inheritance
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class Report : object
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected virtual void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
ProcessArray<T>(T[], T[])
Processes an array for a report.
Declaration
public static T[] ProcessArray<T>(T[] newValues, T[] oldValues)
where T : IEquivalent<T>
Parameters
Type | Name | Description |
---|---|---|
T[] | newValues | The new values. |
T[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
T[] | The new values, if the new values are not equivalent to the old values; otherwise null. |
Type Parameters
Name | Description |
---|---|
T |
ProcessBoolean(Boolean, Boolean)
Processes a boolean for a report.
Declaration
public static bool? ProcessBoolean(bool newValue, bool oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessBooleanArray(Boolean[], Boolean[])
Processes a boolean array for a report.
Declaration
public static bool[] ProcessBooleanArray(bool[] newValues, bool[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessDouble(Double, Double)
Processes a double for a report.
Declaration
public static double? ProcessDouble(double newValue, double oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessFloat(Single, Single)
Processes a float for a report.
Declaration
public static float? ProcessFloat(float newValue, float oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessFloatArray(Double[], Double[])
Processes a double array for a report.
Declaration
public static double[] ProcessFloatArray(double[] newValues, double[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessFloatArray(Single[], Single[])
Processes a float array for a report.
Declaration
public static float[] ProcessFloatArray(float[] newValues, float[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessInteger(Int32, Int32)
Processes an integer for a report.
Declaration
public static int? ProcessInteger(int newValue, int oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessIntegerArray(Int32[], Int32[])
Processes a integer array for a report.
Declaration
public static int[] ProcessIntegerArray(int[] newValues, int[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessLong(Int64, Int64)
Processes a long for a report.
Declaration
public static long? ProcessLong(long newValue, long oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessLongArray(Int64[], Int64[])
Processes a long array for a report.
Declaration
public static long[] ProcessLongArray(long[] newValues, long[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessObject<T>(T, T)
Processes an array for a report.
Declaration
public static T ProcessObject<T>(T newValue, T oldValue)
where T : class, IEquivalent<T>
Parameters
Type | Name | Description |
---|---|---|
T | newValue | The new value. |
T | oldValue | The old value. |
Returns
Type | Description |
---|---|
T | The new value, if the new value does not equal the old value; otherwise null. |
Type Parameters
Name | Description |
---|---|
T |
ProcessShort(Int16, Int16)
Processes a short for a report.
Declaration
public static short? ProcessShort(short newValue, short oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
ProcessShortArray(Int16[], Int16[])
Processes a short array for a report.
Declaration
public static short[] ProcessShortArray(short[] newValues, short[] oldValues)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValues | The new values. |
System. |
oldValues | The old values. |
Returns
Type | Description |
---|---|
System. |
The new values, if the new values do not equal the old values; otherwise null. |
ProcessString(String, String)
Processes a string for a report.
Declaration
public static string ProcessString(string newValue, string oldValue)
Parameters
Type | Name | Description |
---|---|---|
System. |
newValue | The new value. |
System. |
oldValue | The old value. |
Returns
Type | Description |
---|---|
System. |
The new value, if the new value does not equal the old value; otherwise null. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected virtual void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
jsonObject | The JSON object. |