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.String | key | The key. |
System.String | 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.Boolean | newValue | The new value. |
System.Boolean | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Boolean> | 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.Boolean[] | newValues | The new values. |
System.Boolean[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Boolean[] | 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.Double | newValue | The new value. |
System.Double | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Double> | 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.Single | newValue | The new value. |
System.Single | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Single> | 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.Double[] | newValues | The new values. |
System.Double[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Double[] | 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.Single[] | newValues | The new values. |
System.Single[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Single[] | 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.Int32 | newValue | The new value. |
System.Int32 | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | 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.Int32[] | newValues | The new values. |
System.Int32[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Int32[] | 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.Int64 | newValue | The new value. |
System.Int64 | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int64> | 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.Int64[] | newValues | The new values. |
System.Int64[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Int64[] | 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.Int16 | newValue | The new value. |
System.Int16 | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.Nullable<System.Int16> | 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.Int16[] | newValues | The new values. |
System.Int16[] | oldValues | The old values. |
Returns
Type | Description |
---|---|
System.Int16[] | 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.String | newValue | The new value. |
System.String | oldValue | The old value. |
Returns
Type | Description |
---|---|
System.String | 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.String, System.String> | jsonObject | The JSON object. |