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
idIdThe unique Id of the install record.
serialNumberstringSerial Number of the device.
acceptVehicleNameboolAccepted Vehicle Name change or not.
vehicleNamestringVehicle Name.
acceptLicencePlateboolAccepted Licence Plate change or not.
licencePlatestringLicence Plate for the vehicle.
acceptVinboolAccepted Vin change or not.
vinstringVehicle identification number.
acceptCommentsboolAccepted comments change or not.
commentsstringComments added for the vehicle.
acceptedboolIs 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
installRecordInstallRecordThe installation record InstallRecord.
acceptVehicleNameboolAccepted Vehicle Name change or not.
acceptLicensePlateboolAccepted Licence Plate change or not.
acceptVinboolAccepted Vin change or not.
acceptCommentsboolAccepted comments change or not.
acceptedboolAccept 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
inputDevicesList<(Id Id, string Serial)>Input devices for which install record changes to be generated.
Returns
- IList<InstallRecordChange>
List of InstallRecordChange.