Table of Contents

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

statusData StatusData

The status data.

address long?

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

id Id

The Id.

version long?

The version.

device Device

The Device.

dateTime DateTime?

The log DateTime.

data double

The data.

diagnostic Diagnostic

The diagnostic.

address long?

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

entity StatusData

The StatusData.

Returns

long?

Nullable<T> where T is. long

See Also