Class SensorData
- Namespace
- Geotab.Checkmate.ObjectModel.Engine
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The class that represents StatusData received from a sensor like bluetooth dongle.
public class SensorData : StatusData, IEntity, IComparable, IIdentifiable, IVersion, IDiagnosticProvider, IDeviceProvider, IDateTimeProvider, ILastActive, IDeviceStatusInfoDiagnostic
- Inheritance
-
SensorData
- Implements
- Inherited Members
Constructors
SensorData()
Initializes a new instance of the SensorData class.
public SensorData()
SensorData(StatusData, long?)
Initializes a new instance of the SensorData class.Initializes a new instance of the StatusData class.
public SensorData(StatusData statusData, long? address = null)
Parameters
statusDataStatusDataThe status data.
addresslong?The address.
SensorData(Id?, long?, Device, DateTime?, double, Diagnostic, long?)
Initializes a new instance of the SensorData class.
public SensorData(Id? id, long? version, Device device, DateTime? dateTime, double data, Diagnostic diagnostic, long? address)
Parameters
idIdThe Id.
versionlong?The version.
deviceDeviceThe Device.
dateTimeDateTime?The log DateTime.
datadoubleThe data.
diagnosticDiagnosticThe diagnostic.
addresslong?The MAC address.
Properties
Address
Gets or sets the MAC address of the sensor.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.SensorDataAddress })]
public long? Address { get; set; }
Property Value
- long?
Nullable<T> where T is. long
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.
GetAddress(StatusData)
Gets the MAC address of the sensor.
public static long? GetAddress(StatusData entity)
Parameters
entityStatusDataThe StatusData.
Returns
- long?
Nullable<T> where T is. long