Class ThirdPartyGenericFaultRecord
- Namespace
- Geotab.StoreForward
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class ThirdPartyGenericFaultRecord : ThirdPartyDataRecord
- Inheritance
-
ThirdPartyGenericFaultRecord
- Inherited Members
Constructors
ThirdPartyGenericFaultRecord()
Initializes a new instance of the ThirdPartyGenericFaultRecord class. Creates a generic status data record for a third-party device.
public ThirdPartyGenericFaultRecord()
ThirdPartyGenericFaultRecord(string, DateTime?, int, bool, FaultState)
Initializes a new instance of the ThirdPartyGenericFaultRecord class. Creates a generic status data record for a third-party device.
public ThirdPartyGenericFaultRecord(string serialNo, DateTime? dateTime, int code, bool faultStateActive = true, FaultState faultState = FaultState.None)
Parameters
serialNo
stringThe serial number.
dateTime
DateTime?The DateTime.
code
intThe diagnostic code.
faultStateActive
boolThe active flag.
faultState
FaultStateThe fault state.
Properties
Code
Gets or sets fault code.
public int Code { get; set; }
Property Value
- int
Fault code.
FaultState
Gets or sets fault state
public FaultState FaultState { get; set; }
Property Value
- FaultState
A value indicating the current fault state
FaultStateActive
Gets or sets a value indicating whether the fault state is active
[Obsolete("Only kept for backwards compatability, use FaultState enum instead - See GW-2586", false)]
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.
GetFaultState()
Returns the encoded fault state byte based on FaultState and FaultStateActive fields.
public byte GetFaultState()
Returns
- byte
The encoded fault state data.