Class LatestDeviceInfo
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Latest info for a given device.
[ReportClass]
public class LatestDeviceInfo
- Inheritance
-
LatestDeviceInfo
- Inherited Members
Constructors
LatestDeviceInfo(DeviceStatusInfo, IEnumerable<StatusData>?)
Initializes a new instance of the LatestDeviceInfo class.
public LatestDeviceInfo(DeviceStatusInfo deviceStatusInfo, IEnumerable<StatusData>? statusData = null)
Parameters
deviceStatusInfo
DeviceStatusInfoCurrent status info for this device.
statusData
IEnumerable<StatusData>Current diagnostics for this device.
LatestDeviceInfo(IList<SensorInfo>?, bool, string?, DateTime?, float?, double?, double?, TimeSpan?, bool, int?, bool, IList<Group>, Device, List<ReportCustomProperty>?)
Initializes a new instance of the LatestDeviceInfo class.
[JsonConstructor]
public LatestDeviceInfo(IList<SensorInfo>? sensorData, bool isHistoricLastDriver, string? driverName, DateTime? dateTime, float? speed, double? latitude, double? longitude, TimeSpan? currentStatusDuration, bool isDriving, int? bearing, bool isDeviceCommunicating, IList<Group> groups, Device device, List<ReportCustomProperty>? customProperties)
Parameters
sensorData
IList<SensorInfo>Sensor date/diagnostics.
isHistoricLastDriver
boolDriver is last operator of vehicle.
driverName
stringDriver name.
dateTime
DateTime?Date of the status.
speed
float?Speed of the vehicle.
latitude
double?Latitude.
longitude
double?Longitude.
currentStatusDuration
TimeSpan?Amount of time in current state.
isDriving
boolVehicle is being operated by a Driver.
bearing
int?Device bearing.
isDeviceCommunicating
boolHas the device recently communicated.
groups
IList<Group>Groups this device belongs to.
device
DeviceThe device.
customProperties
List<ReportCustomProperty>List of report custom properties
Properties
Bearing
Gets the current bearing.
public int? Bearing { get; }
Property Value
- int?
Current bearing.
CurrentStatusDuration
Gets or sets the device's the duration of the current status.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.CurrentStatusDuration })]
public TimeSpan? CurrentStatusDuration { get; set; }
Property Value
- TimeSpan?
The duration of the current status in seconds.
CustomProperties
Gets or sets a list of ReportCustomProperty objects"/>.
public List<ReportCustomProperty>? CustomProperties { get; set; }
Property Value
- List<ReportCustomProperty>
A list of ReportCustomProperty objects"/>
DateTime
Gets the DateTime of the most recent communications with the device.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DateTime })]
public DateTime? DateTime { get; }
Property Value
- DateTime?
DateTime of the most recent communications with the device..
Device
Gets the Device this LatestDeviceInfo belongs to.
public Device? Device { get; }
Property Value
DriverName
Gets the driver name.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DriverName })]
public string? DriverName { get; }
Property Value
- string
Driver name.
Groups
public IList<Group>? Groups { get; }
Property Value
Id
Gets the DeviceId.
public Id Id { get; }
Property Value
- Id
DeviceId.
IsDeviceCommunicating
Gets a value indicating whether the device has been recently communicating.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.IsDeviceCommunicating })]
public bool IsDeviceCommunicating { get; }
Property Value
- bool
Device has been recently communicating.
IsDriving
Gets a value indicating whether the device currently driving.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.IsDriving })]
public bool IsDriving { get; }
Property Value
- bool
Is the device currently driving.
IsHistoricLastDriver
Gets a value indicating whether the Device has been assigned to "UnknownDriver" and the last TripDriver is returned.
public bool IsHistoricLastDriver { get; }
Property Value
- bool
[true] while the Device is assigned to "UnknownDriver" and no other trip had been made in the vehicle and/or the last TripDriver has not made a trip in another vehicle, otherwise [false].
Latitude
Gets the device's Latitude.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AssetMonitoringLatitude })]
public double? Latitude { get; }
Property Value
- double?
Latitude.
Location
Gets or sets the location
public AddressLookupData? Location { get; set; }
Property Value
- AddressLookupData
Location of the device.
Longitude
Gets the device's Longitude.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AssetMonitoringLongitude })]
public double? Longitude { get; }
Property Value
- double?
Longitude..
Name
Gets or sets the Device Name.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.Name })]
public string Name { get; set; }
Property Value
- string
Device Name.
SensorData
Gets the latest sensor data for this device.
public IList<SensorInfo> SensorData { get; }
Property Value
- IList<SensorInfo>
Latest sensor data.
Speed
Gets the device's last/current speed.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.Speed })]
public float? Speed { get; }
Property Value
- float?
Device's speed.
TimeZoneId
Gets the IANA Timezone Id of the device used to determine local work times. This is typically the "home location" of the device. Default ["America/New_York"].
public string? TimeZoneId { get; }
Property Value
- string
Timezone Id of the device.
ZonePrefixedLocation
Gets or sets the location with available zones prepended
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.AssetMonitoringLocation })]
public string? ZonePrefixedLocation { get; set; }
Property Value
- string
Location with zones of the device.