Table of Contents

Class InstallRecordChange

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

Install Records changes (Accepted or not) received from UI.

public class InstallRecordChange
Inheritance
InstallRecordChange
Inherited Members

Constructors

InstallRecordChange()

Initializes a new instance of the InstallRecordChange class.

public InstallRecordChange()

InstallRecordChange(Id?, string?, bool, string?, bool, string?, bool, string?, bool, string?, bool)

Initializes a new instance of the InstallRecordChange class.

public InstallRecordChange(Id? id, string? serialNumber, bool acceptVehicleName, string? vehicleName, bool acceptLicencePlate, string? licencePlate, bool acceptVin, string? vin, bool acceptComments, string? comments, bool accepted)

Parameters

id Id

The unique Id of the install record.

serialNumber string

Serial Number of the device.

acceptVehicleName bool

Accepted Vehicle Name change or not.

vehicleName string

Vehicle Name.

acceptLicencePlate bool

Accepted Licence Plate change or not.

licencePlate string

Licence Plate for the vehicle.

acceptVin bool

Accepted Vin change or not.

vin string

Vehicle identification number.

acceptComments bool

Accepted comments change or not.

comments string

Comments added for the vehicle.

accepted bool

Is record accepted or not.

Properties

AcceptComments

Gets or sets value for the flag whether Comments property has been accepted or not.

public bool? AcceptComments { get; set; }

Property Value

bool?

bool

AcceptLicencePlate

Gets or sets value for the flag whether LicencePlate property has been accepted or not.

public bool? AcceptLicencePlate { get; set; }

Property Value

bool?

bool

AcceptVehicleName

Gets or sets value for the flag whether VehicleName property has been accepted or not.

public bool? AcceptVehicleName { get; set; }

Property Value

bool?

bool

AcceptVin

Gets or sets value for the flag whether Vin property has been accepted or not.

public bool? AcceptVin { get; set; }

Property Value

bool?

bool

Accepted

Gets or sets a value indicating whether InstallRecord is Accepted.

public bool Accepted { get; set; }

Property Value

bool

bool

Comments

Gets or sets value for Comments, i.e. asset Make, Model, Year.

[Obsolete("Deprecated, will use InstallRecord.OtherParams.Make, Model, Year instead")]
public string? Comments { get; set; }

Property Value

string

string

Id

Gets or sets value for Id.

public Id? Id { get; set; }

Property Value

Id

Id

LicencePlate

Gets or sets value for LicencePlate.

[Obsolete("Deprecated, will use InstallRecord.OtherParams.LicencePlate instead")]
public string? LicencePlate { get; set; }

Property Value

string

string

SerialNumber

Gets or sets value for SerialNumber.

public string? SerialNumber { get; set; }

Property Value

string

string

VehicleName

Gets or sets value for VehicleName.

[Obsolete("Deprecated, will use InstallRecord.OtherParams.VehicleName instead")]
public string? VehicleName { get; set; }

Property Value

string

string

Vin

Gets or sets value for Vin.

[Obsolete("Deprecated, will use InstallRecord.OtherParams.Vin instead")]
public string? Vin { get; set; }

Property Value

string

string

Methods

GetInstallRecordChangeFromInstallRecord(InstallRecord, bool, bool, bool, bool, bool)

Generates InstallRecordChange from the provided installation record and boolean flags.

public static InstallRecordChange GetInstallRecordChangeFromInstallRecord(InstallRecord installRecord, bool acceptVehicleName = true, bool acceptLicensePlate = true, bool acceptVin = true, bool acceptComments = true, bool accepted = true)

Parameters

installRecord InstallRecord

The installation record InstallRecord.

acceptVehicleName bool

Accepted Vehicle Name change or not.

acceptLicensePlate bool

Accepted Licence Plate change or not.

acceptVin bool

Accepted Vin change or not.

acceptComments bool

Accepted comments change or not.

accepted bool

Accept the installation record.

Returns

InstallRecordChange

A InstallRecordChange.

PopulateDefaults(List<(Id Id, string Serial)>)

Generates the list of install record changes for the input devices received.

public static IList<InstallRecordChange> PopulateDefaults(List<(Id Id, string Serial)> inputDevices)

Parameters

inputDevices List<(Id Id, string Serial)>

Input devices for which install record changes to be generated.

Returns

IList<InstallRecordChange>

List of InstallRecordChange.