Table of Contents

Class ThirdPartyObdiiFaultRecord

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

false A data record class used to add OBD-II fault data for third-party devices.

public class ThirdPartyObdiiFaultRecord : ThirdPartyDataRecord
Inheritance
ThirdPartyObdiiFaultRecord
Inherited Members

Constructors

ThirdPartyObdiiFaultRecord()

Initializes a new instance of the ThirdPartyObdiiFaultRecord class. Creates a OBD-II fault record for a third-party device.

public ThirdPartyObdiiFaultRecord()

ThirdPartyObdiiFaultRecord(string, in DateTime, string, bool)

Initializes a new instance of the ThirdPartyObdiiFaultRecord class. Creates a OBD-II fault record for a third-party device.

public ThirdPartyObdiiFaultRecord(string serialNo, in DateTime dateTime, string code, bool faultStateActive = true)

Parameters

serialNo string

The serial number.

dateTime DateTime

The date time.

code string

The fault code

faultStateActive bool

The active flag.

Properties

Code

Gets or sets fault code.

public string? Code { get; set; }

Property Value

string

Fault code.

FaultStateActive

Gets or sets a value indicating whether the fault state is active

public bool FaultStateActive { get; set; }

Property Value

bool

A value indicating whether the fault state is active

Methods

CreateBinaryData()

Converts the record into binary data to be inserted into the database.

public override byte[] CreateBinaryData()

Returns

byte[]

The binary data array.

Decode(string)

Decodes from code into data.

public static byte[] Decode(string code)

Parameters

code string

The code.

Returns

byte[]

Decoded code into bytes