Table of Contents

Class SensorInfo

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

Sensor Info (subset of information from StatusData.

public class SensorInfo
Inheritance
SensorInfo
Inherited Members

Constructors

SensorInfo(StatusData)

Initializes a new instance of the SensorInfo class.

public SensorInfo(StatusData statusData)

Parameters

statusData StatusData

StatusData with diagnostics information.

Exceptions

InvalidOperationException

Thrown when an invalid diagnostic is passed in.

SensorInfo(double?, DiagnosticType?, UnitOfMeasure?, DateTime?, Id)

Initializes a new instance of the SensorInfo class.

[JsonConstructor]
public SensorInfo(double? sensorValue, DiagnosticType? diagnosticType, UnitOfMeasure? unitOfMeasure, DateTime? lastUpdateTime, Id diagnosticId)

Parameters

sensorValue double?

SensorValue

diagnosticType DiagnosticType?

DiagnosticType

unitOfMeasure UnitOfMeasure

UnitOfMeasure

lastUpdateTime DateTime?

LastUpdateTime

diagnosticId Id

DiagnosticId

Properties

DiagnosticId

Gets the Id for this diagnostic reading.

public Id DiagnosticId { get; }

Property Value

Id

Id for this diagnostic reading.

DiagnosticType

Gets the diagnostic type for this reading.

public DiagnosticType? DiagnosticType { get; }

Property Value

DiagnosticType?

Diagnostic type for this reading.

LastUpdateTime

Gets the last update time for this diagnostic.

public DateTime? LastUpdateTime { get; }

Property Value

DateTime?

Last update time for this diagnostic.

SensorValue

Gets the sensor value for this diagnostic.

public double? SensorValue { get; }

Property Value

double?

Sensor value for this diagnostic.

UnitOfMeasure

Gets the unit of measure (if available) for this diagnostic reading.

public UnitOfMeasure? UnitOfMeasure { get; }

Property Value

UnitOfMeasure

Unit of measure for this diagnostic reading.