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
idIdThe unique Id of the install record.
serialNumberstringSerial Number of the device.
installStatusInstallStatus?The InstallStatus.
dateOfInstallationDateTime?value for date of installation.
otherParamsInstallRecordOtherDetailsOther parameter details for install record InstallRecordOtherDetails.
versionlong?The long Version.
Properties
DateOfInstallation
Gets or sets value for date of installation.
public DateTime? DateOfInstallation { get; set; }
Property Value
InstallStatus
Gets or sets installation status for the device.
public InstallStatus? InstallStatus { get; set; }
Property Value
MyAdminJsonResponse
Gets or sets the value for MyAdminJsonResponse.
public string? MyAdminJsonResponse { get; set; }
Property Value
OtherParams
Gets or sets other properties of the device.
public InstallRecordOtherDetails? OtherParams { get; set; }
Property Value
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
SourceId
Gets or sets value for MYA InstallRecord Id
public string? SourceId { get; set; }
Property Value
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
installRecordInstallRecordThe InstallRecord.
Returns
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
installDateDateTime?The installation date.
acceptOldRecordsPriorToReferralDateboolTrueif records from before the referral date are to be considered.Falseotherwise.referralDateTimeDateTimeThe referral date.