Class Info
Information.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class Info
Properties
Id
Gets or sets the identifier.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 an info.
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 object for an info.
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 an info.
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 an info.
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 an info.
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 |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |