Table of Contents

Class InstallRecord

Namespace
Geotab.Checkmate.ObjectModel.InstallRecords
Assembly
Geotab.Checkmate.ObjectModel.dll

Install Records updates to be sent to UI which were received from MyAdmin.

public class InstallRecord : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion
Inheritance
InstallRecord
Implements
Inherited Members

Constructors

InstallRecord()

Initializes a new instance of the InstallRecord class.

public InstallRecord()

InstallRecord(Id?, string?, InstallStatus?, DateTime?, InstallRecordOtherDetails?, long?)

Initializes a new instance of the InstallRecord class.

public InstallRecord(Id? id, string? serialNumber, InstallStatus? installStatus, DateTime? dateOfInstallation, InstallRecordOtherDetails? otherParams, long? version)

Parameters

id Id

The unique Id of the install record.

serialNumber string

Serial Number of the device.

installStatus InstallStatus?

The InstallStatus.

dateOfInstallation DateTime?

value for date of installation.

otherParams InstallRecordOtherDetails

Other parameter details for install record InstallRecordOtherDetails.

version long?

The long Version.

Properties

DateOfInstallation

Gets or sets value for date of installation.

public DateTime? DateOfInstallation { get; set; }

Property Value

DateTime?

DateTime

InstallStatus

Gets or sets installation status for the device.

public InstallStatus? InstallStatus { get; set; }

Property Value

InstallStatus?

InstallStatus

MyAdminJsonResponse

Gets or sets the value for MyAdminJsonResponse.

public string? MyAdminJsonResponse { get; set; }

Property Value

string

string

OtherParams

Gets or sets other properties of the device.

public InstallRecordOtherDetails? OtherParams { get; set; }

Property Value

InstallRecordOtherDetails

InstallRecordOtherDetails

Remarks

The setter is only allowed for tests so data isn't out of sync with MyAdmin.

SerialNumber

Gets or sets value for SerialNumber.

public string? SerialNumber { get; set; }

Property Value

string

string

SourceId

Gets or sets value for MYA InstallRecord Id

public string? SourceId { get; set; }

Property Value

string

string

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

InstallRecord A new object that is a copy of this instance.

GetMakeModelYear(InstallRecord)

Gets the vehicle make, model and year from given install record.

public static string GetMakeModelYear(InstallRecord installRecord)

Parameters

installRecord InstallRecord

The InstallRecord.

Returns

string

string

GetStatus(DateTime?, bool, in DateTime)

Gets the InstallStatus based on the installation date.

public static InstallStatus GetStatus(DateTime? installDate, bool acceptOldRecordsPriorToReferralDate, in DateTime referralDateTime)

Parameters

installDate DateTime?

The installation date.

acceptOldRecordsPriorToReferralDate bool

True if records from before the referral date are to be considered. False otherwise.

referralDateTime DateTime

The referral date.

Returns

InstallStatus

A InstallStatus.