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
IdThe unique Id of the install record.
serialNumber
stringSerial Number of the device.
acceptVehicleName
boolAccepted Vehicle Name change or not.
vehicleName
stringVehicle Name.
acceptLicencePlate
boolAccepted Licence Plate change or not.
licencePlate
stringLicence Plate for the vehicle.
acceptVin
boolAccepted Vin change or not.
vin
stringVehicle identification number.
acceptComments
boolAccepted comments change or not.
comments
stringComments added for the vehicle.
accepted
boolIs 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
AcceptLicencePlate
Gets or sets value for the flag whether LicencePlate property has been accepted or not.
public bool? AcceptLicencePlate { get; set; }
Property Value
AcceptVehicleName
Gets or sets value for the flag whether VehicleName property has been accepted or not.
public bool? AcceptVehicleName { get; set; }
Property Value
AcceptVin
Gets or sets value for the flag whether Vin property has been accepted or not.
public bool? AcceptVin { get; set; }
Property Value
Accepted
Gets or sets a value indicating whether InstallRecord is Accepted.
public bool Accepted { get; set; }
Property Value
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
Id
Gets or sets value for Id.
public Id? Id { get; set; }
Property Value
LicencePlate
Gets or sets value for LicencePlate.
[Obsolete("Deprecated, will use InstallRecord.OtherParams.LicencePlate instead")]
public string? LicencePlate { get; set; }
Property Value
SerialNumber
Gets or sets value for SerialNumber.
public string? SerialNumber { get; set; }
Property Value
VehicleName
Gets or sets value for VehicleName.
[Obsolete("Deprecated, will use InstallRecord.OtherParams.VehicleName instead")]
public string? VehicleName { get; set; }
Property Value
Vin
Gets or sets value for Vin.
[Obsolete("Deprecated, will use InstallRecord.OtherParams.Vin instead")]
public string? Vin { get; set; }
Property Value
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
InstallRecordThe installation record InstallRecord.
acceptVehicleName
boolAccepted Vehicle Name change or not.
acceptLicensePlate
boolAccepted Licence Plate change or not.
acceptVin
boolAccepted Vin change or not.
acceptComments
boolAccepted comments change or not.
accepted
boolAccept the installation record.
Returns
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.