Table of Contents

Class ThirdPartyDataRecord

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

false An abstract base class for third-party device data added through the MyAdmin API.

public abstract class ThirdPartyDataRecord : SoftwareGeneratedDataRecord
Inheritance
ThirdPartyDataRecord
Derived
Inherited Members

Constructors

ThirdPartyDataRecord()

Initializes a new instance of the ThirdPartyDataRecord class. Creates a new data record for a third-party device.

protected ThirdPartyDataRecord()

ThirdPartyDataRecord(string?, DateTime?, ThirdPartyDataRecordType?)

Initializes a new instance of the ThirdPartyDataRecord class. Creates a new data record for a third-party device.

protected ThirdPartyDataRecord(string? serialNo, DateTime? dateTime, ThirdPartyDataRecordType? type)

Parameters

serialNo string

The serial number.

dateTime DateTime?

The DateTime.

type ThirdPartyDataRecordType?

The type.

Properties

HardwareId

Gets or sets the device hardware ID. Please use the GetHardwareId method for now. Since we have currently a specal case where InsightsStatusRecord provide the HardwareId in the serial number field.

public int? HardwareId { get; set; }

Property Value

int?

The hardware ID.

SerialNo

Gets or sets the device serial no.

public string? SerialNo { get; set; }

Property Value

string

The serial no.

Type

Gets or sets the type. ThirdPartyDataRecordType

public ThirdPartyDataRecordType? Type { get; set; }

Property Value

ThirdPartyDataRecordType?

The type.

Methods

GetHardwareId()

Gets the hardware ID.

public virtual int? GetHardwareId()

Returns

int?

The hardware ID of the third-party data record.

GetParsedHardwareId()

Gets the hardware ID. This method will return the hardware ID if valid. Otherwise it tries to parse the serial number to get the hardware ID. If everything falls through NULL will be returned.

public int? GetParsedHardwareId()

Returns

int?

The hardware ID of the third-party data record.

IsValidHardwareId(int?)

The method will check the hardware ID for the correctness.

public bool IsValidHardwareId(int? hardwareId)

Parameters

hardwareId int?

The hardwareId.

Returns

bool

Returns true if given hardwareId is valild