Class DeviceStatus
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
A class that represents the current status for a Device, including last known Trip, last known StatusData and / or FaultData data where applicable.
[ReportClass]
public class DeviceStatus : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider
- Inheritance
-
DeviceStatus
- Implements
- Derived
- Inherited Members
Constructors
DeviceStatus()
Initializes a new instance of the DeviceStatus class.Initializes a DeviceStatus object.
protected DeviceStatus()
DeviceStatus(Device?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, int, DateTime?, DateTime?, DateTime?, DateTime?)
Initializes a new instance of the DeviceStatus class.
public DeviceStatus(Device? device, DateTime? lastTrip, DateTime? lastGpsRecord, DateTime? lastEngineData, DateTime? lastFaultData, DateTime? lastRadioData, DateTime? lastRFTripDataUpload, DateTime? lastRFFirmwareUpload, DateTime? lastRFParameterUpload, DateTime? lastRFAidedGpsUpload, int tamperSigns, DateTime? lastDebugData, DateTime? lastKeyInsertData, DateTime? lastCustomData, DateTime? lastVehicleLight)
Parameters
device
DeviceThe device.
lastTrip
DateTime?The last trip.
lastGpsRecord
DateTime?The last GPS record.
lastEngineData
DateTime?The last engine data.
lastFaultData
DateTime?The last fault data.
lastRadioData
DateTime?The last radio data.
lastRFTripDataUpload
DateTime?The last rf trip data upload.
lastRFFirmwareUpload
DateTime?The last rf firmware upload.
lastRFParameterUpload
DateTime?The last rf parameter upload.
lastRFAidedGpsUpload
DateTime?The last rf aided GPS upload.
tamperSigns
intThe tamper signs.
lastDebugData
DateTime?The last debug data.
lastKeyInsertData
DateTime?The last key insert data.
lastCustomData
DateTime?The last custom data.
lastVehicleLight
DateTime?The last vehicle light.
DeviceStatus(DeviceStatus)
Initializes a new instance of the DeviceStatus class.Copy constructor - initializes a DeviceStatus object.
protected DeviceStatus(DeviceStatus deviceStatus)
Parameters
deviceStatus
DeviceStatusThe device status.
Properties
AddressLookupData
Gets or sets
public AddressLookupData? AddressLookupData { get; set; }
Property Value
DaysSinceLastEngineData
Gets returns the number of days since the last engine StatusData was received.
public int DaysSinceLastEngineData { get; }
Property Value
DaysSinceLastFaultData
Gets returns the number of days since the last engine FaultData was received.
public int DaysSinceLastFaultData { get; }
Property Value
DaysSinceLastRadioComms
Gets returns the number of days since the last radio communications.
public int DaysSinceLastRadioComms { get; }
Property Value
DaysSinceLastTrip
Gets returns the number of days since the last Trip.
public int DaysSinceLastTrip { get; }
Property Value
Device
Gets or sets gets the Device.
public Device? Device { get; set; }
Property Value
- Device
The <see cref="Device"/>.
LastCustomData
Gets or sets the last CustomData date for the Device in the system.
public DateTime? LastCustomData { get; set; }
Property Value
LastDebugData
public DateTime? LastDebugData { get; set; }
Property Value
LastEngineData
Gets or sets the last StatusData date for the Device in the system.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DeviceStatusLastEngineData })]
public DateTime? LastEngineData { get; set; }
Property Value
LastFaultData
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DeviceStatusLastFaultData })]
public DateTime? LastFaultData { get; set; }
Property Value
LastGpsRecord
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DeviceStatusLastGpsRecord })]
public DateTime? LastGpsRecord { get; set; }
Property Value
LastHeartBeat
Gets last known record of any sort received from this Device.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DeviceStatusLastHeartBeat })]
public DateTime? LastHeartBeat { get; }
Property Value
LastKeyInsertData
Gets or sets the last DriverChange date for the Device in the system.
public DateTime? LastKeyInsertData { get; set; }
Property Value
LastRFAidedGpsUpload
Gets or sets the last download of aided GPS data for the Device.
public DateTime? LastRFAidedGpsUpload { get; set; }
Property Value
LastRFFirmwareUpload
Gets or sets the last download of firmware for the Device.
public DateTime? LastRFFirmwareUpload { get; set; }
Property Value
LastRFParameterUpload
Gets or sets the last download of parameters for the Device.
public DateTime? LastRFParameterUpload { get; set; }
Property Value
LastRFTripDataUpload
Gets or sets the last upload for standard GPS data for the Device.
public DateTime? LastRFTripDataUpload { get; set; }
Property Value
LastRadioData
Gets or sets the last RadioData date for the Device in the system.
public DateTime? LastRadioData { get; set; }
Property Value
LastTrip
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DeviceStatusLastTrip })]
public DateTime? LastTrip { get; set; }
Property Value
LastVehicleLight
Gets or sets the last general vehicle light.
public DateTime? LastVehicleLight { get; set; }
Property Value
StatusLevel
Gets the status level.
public DeviceStatusLevel StatusLevel { get; }
Property Value
- DeviceStatusLevel
The status level.
TamperSigns
Gets or sets the total possible tamper signs for the Device.
public int TamperSigns { get; set; }
Property Value
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.
GetInIgnorePeriod()
Gets the value whether the Device is currently within an ignored period or not.
public bool GetInIgnorePeriod()
Returns
GetMinimumDateToDownloadInUtc()
Returns the minimum date to download for the Device.
public DateTime? GetMinimumDateToDownloadInUtc()
Returns
- DateTime?
The minimum date to download for.