DeviceSettingValueT Class

Represents a setting property value on a DeviceDto, e.g. "low battery threshold" or "authorized number(s)".

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public sealed class DeviceSettingValue<T> : IEquatable<DeviceSettingValue<T>>
Inheritance
Object    DeviceSettingValueT
Implements
IEquatableDeviceSettingValueT

Type Parameters

T
The type of the Value. This type must be added in SourceGenerationContext!

Remarks

The name of the property is not included; this is because the name is already known when this type was declared in the property of a business object.

Constructors

DeviceSettingValueT Default constructor.

Properties

IsSynchronized Whether the device setting value is synchronized with the device.
LastModifiedAt When this field was last modified. For the local data representation, this means when the field was last modified in a form. For the remote receiver representation, this means the last time the device acknowledged it had changed the field.

The default value is MinValue: this means this value has never been synchronized with the device and that the user didn't override an input; this means the items need to be populated with the device's values, if possible.
Value The value of the setting.

Methods

Clone Clones the current DeviceSettingValueT instance.
Empty Generates an empty DeviceSettingValueT with the given value. This is used during object initialization.
Equals(DeviceSettingValueT)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
GetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Reset Resets the value to its default state, but doesn't update the LastModifiedAt field.
SetSynchronized To be invoked when the device has acknowledged the value has been updated.
SetValue Sets a new value for the setting.

Operators

See Also