Class DriverChange
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Information about timing of a Driver change.
public class DriverChange : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDeviceProvider, IDriverProvider, IDateTimeProvider, IDriverChange
- Inheritance
-
DriverChange
- Implements
- Inherited Members
Constructors
DriverChange()
Initializes a new instance of the DriverChange class. Initializes a new instance of the DriverChange class.
public DriverChange()
DriverChange(Id?, Driver?, Device?, DriverChangeType?)
Initializes a new instance of the DriverChange class. Initializes a new instance of the DriverChange class.
public DriverChange(Id? id, Driver? driver, Device? device, DriverChangeType? type)
Parameters
id
IdThe Id.
driver
DriverThe driver.
device
DeviceThe device.
type
DriverChangeType?Type of the DriverChange event. Following values are valid for user - initialed requests: DriverChangeType.TripDriver, DriverChangeType.Driver.
DriverChange(Id?, Driver?, Device?, DriverChangeType?, DateTime?, long?)
Initializes a new instance of the DriverChange class. Initializes a new instance of the DriverChange class.
public DriverChange(Id? id, Driver? driver, Device? device, DriverChangeType? type = null, DateTime? dateTime = null, long? version = null)
Parameters
id
IdThe Id.
driver
DriverThe driver.
device
DeviceThe device.
type
DriverChangeType?Type of the DriverChange event. Following values are valid for user - initialed requests: DriverChangeType.TripDriver, DriverChangeType.Driver.
dateTime
DateTime?The log DateTime.
version
long?The version.
Properties
DateTime
Gets or sets the date and time of the driver change. Note: When adding a DriverChange through API, the DateTime must NOT be in the future.
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.KeyInsertDataLogDate })]
public DateTime? DateTime { get; set; }
Property Value
Device
Gets or sets the Device that had the driver change.
public Device? Device { get; set; }
Property Value
Driver
Gets or sets the Driver associated with the change.
public Driver? Driver { get; set; }
Property Value
Type
Gets or sets the DriverChangeType.
public DriverChangeType? Type { 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.
GetChangeDateTime()
public DateTime? GetChangeDateTime()
Returns
- DateTime?
The change DateTime.
GetDriverId()
public Id? GetDriverId()
Returns
- Id
T.
ToString()
public override string ToString()