Table of Contents

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 Id

The Id.

driver Driver

The driver.

device Device

The 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 Id

The Id.

driver Driver

The driver.

device Device

The 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

DateTime?

The DateTime of the event.

Device

Gets or sets the Device that had the driver change.

public Device? Device { get; set; }

Property Value

Device

Device

Driver

Gets or sets the Driver associated with the change.

public Driver? Driver { get; set; }

Property Value

Driver

Driver

Type

Gets or sets the DriverChangeType.

public DriverChangeType? Type { get; set; }

Property Value

DriverChangeType?

DriverChangeType

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()

false Get the change DateTime.

public DateTime? GetChangeDateTime()

Returns

DateTime?

The change DateTime.

GetDriverId()

false

public Id? GetDriverId()

Returns

Id

T.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.