Table of Contents

Class ThirdPartyGenericFaultRecord

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

false A data record class used to add generic status data for third-party devices.

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 string

The serial number.

dateTime DateTime?

The DateTime.

code int

The diagnostic code.

faultStateActive bool

The active flag.

faultState FaultState

The 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.