Class StatusDataLastValueBeforeCache
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents the state of a vehicle's status data before the cache start time.
public class StatusDataLastValueBeforeCache : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
StatusDataLastValueBeforeCache
- Implements
- Inherited Members
Constructors
StatusDataLastValueBeforeCache()
Initializes a new instance of the StatusDataLastValueBeforeCache class.Constructor.
public StatusDataLastValueBeforeCache()
StatusDataLastValueBeforeCache(Id, DateTime?, DiagnosticsDictionary?)
Initializes a new instance of the StatusDataLastValueBeforeCache class.Constructor.
public StatusDataLastValueBeforeCache(Id id, DateTime? cacheStartTime, StatusDataLastValueBeforeCache.DiagnosticsDictionary? diagnostics)
Parameters
id
Idid.
cacheStartTime
DateTime?Date of the status.
diagnostics
StatusDataLastValueBeforeCache.DiagnosticsDictionaryDictionary of all latest diagnostics
Properties
CacheStartTime
Gets or sets the most recent DateTime of the latest piece of status, gps or fault data.
public DateTime? CacheStartTime { get; set; }
Property Value
Diagnostics
Gets or sets a dictionary for latest IDeviceStatusInfoDiagnostic(s) of current Device.
public StatusDataLastValueBeforeCache.DiagnosticsDictionary? Diagnostics { get; set; }
Property Value
Remarks
The stored StatusData in the database JsonB field do not contain the "Device" data as all Diagnostics should belong to the "Device" defined in this class.
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
Exceptions
- NotSupportedException
We should not clone StatusDataLastValueBeforeCache.