Class Key
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represent the key used to identify a Driver.
[ReportClass]
public class Key : Entity, IEntity, IComparable, IIdentifiable, IDriverProvider
- Inheritance
-
Key
- Implements
- Derived
- Inherited Members
Constructors
Key()
Initializes a new instance of the Key class. Default constructor.
public Key()
Key(DriverKeyType?, long?, string?)
Initializes a new instance of the Key class. The constructor.
public Key(DriverKeyType? driverKeyType, long? keyId, string? serialNumber)
Parameters
driverKeyType
DriverKeyType?The DriverKeyType of the key.
keyId
long?The key Id.
serialNumber
stringThe serial Number.
Properties
Driver
Gets or sets driver of the driver key.
public Driver? Driver { get; set; }
Property Value
DriverKeyType
Gets or sets the DriverKeyType.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DriverkeyType })]
public DriverKeyType? DriverKeyType { get; set; }
Property Value
KeyId
Gets or sets the ID of the driver key. Represents the decoded serial number. USB blue keys are assigned a key ID.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DriverKeyId })]
public long? KeyId { get; set; }
Property Value
SerialNumber
Gets or sets the Serial Number of the driver key. Represents the key ID encoded as a serial number. NFC keys are assigned a serial number.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.DriverKeySerialNumber })]
public string? SerialNumber { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.