Class ThirdPartyObdiiFaultRecord
- Namespace
- Geotab.StoreForward
- Assembly
- Geotab.Checkmate.ObjectModel.dll
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
stringThe serial number.
dateTime
DateTimeThe date time.
code
stringThe fault code
faultStateActive
boolThe 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
stringThe code.
Returns
- byte[]
Decoded code into bytes