Table of Contents

Class FuelUsed

Namespace
Geotab.Checkmate.ObjectModel.Fuel
Assembly
Geotab.Checkmate.ObjectModel.dll

An event representing fuel used for a vehicle.

[ReportClass]
public class FuelUsed : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDeviceProvider, IDateTimeProvider, IDeletedDateTimeProvider
Inheritance
FuelUsed
Implements
Inherited Members

Constructors

FuelUsed()

Initializes a new instance of the FuelUsed class.

public FuelUsed()

FuelUsed(Device?, DateTime?, double?, FuelUpEventConfidences?)

Initializes a new instance of the FuelUsed class.

public FuelUsed(Device? device, DateTime? dateTime, double? totalFuelUsed, FuelUpEventConfidences? confidence = FuelUpEventConfidences.None)

Parameters

device Device

The Device.

dateTime DateTime?

The DateTime that the fuel used was logged.

totalFuelUsed double?

The total fuel used.

confidence FuelUpEventConfidences?

The FuelUpEventConfidences of the fuel used record.

FuelUsed(Id?, long?, Device?, DateTime?, double?, FuelUpEventConfidences?)

Initializes a new instance of the FuelUsed class.

public FuelUsed(Id? id, long? version, Device? device, DateTime? dateTime, double? totalFuelUsed, FuelUpEventConfidences? confidence = FuelUpEventConfidences.None)

Parameters

id Id

The id.

version long?

The version.

device Device

The Device.

dateTime DateTime?

The DateTime that the fuel used was logged.

totalFuelUsed double?

The total fuel used.

confidence FuelUpEventConfidences?

The FuelUpEventConfidences of the fuel used record.

Properties

Confidence

Gets or sets the FuelUpEventConfidences associated with the fuel used record.

public FuelUpEventConfidences? Confidence { get; set; }

Property Value

FuelUpEventConfidences?

FuelUpEventConfidences

DateTime

Gets or sets the UTC date and time of the fuel used.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventDateTime })]
public DateTime? DateTime { get; set; }

Property Value

DateTime?

DateTime

DeletedDateTime

An interface for an entity that can be marked as deleted.

public DateTime? DeletedDateTime { get; set; }

Property Value

DateTime?

Device

Gets or sets the Device associated with the fuel used.

public Device? Device { get; set; }

Property Value

Device

Device

TotalFuelUsed

Gets or sets the volume of fuel used in Liters. Default [0].

public double? TotalFuelUsed { get; set; }

Property Value

double?

double

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.