Table of Contents

Class FuelUpEvent

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

An event representing adding fuel to a vehicle.

[ReportClass]
public class FuelUpEvent : FuelUsedEvent, IEntity, IComparable, IIdentifiable, IVersion, IDateTimeProvider, IOdometerProvider, ISimpleCoordinatesProvider, IDeviceProvider, IDriverProvider
Inheritance
FuelUpEvent
Implements
Inherited Members

Constructors

FuelUpEvent()

Initializes a new instance of the FuelUpEvent class.

public FuelUpEvent()

FuelUpEvent(Device, Driver, DateTime?, double?, float?, double?, decimal?, string, ISimpleCoordinate, FuelUpEventConfidences?, double?, FillUpExtrema, IList<FuelTransaction>, FuelTransactionProductType?)

Initializes a new instance of the FuelUpEvent class.

public FuelUpEvent(Device device, Driver driver, DateTime? dateTime, double? odometer, float? distance, double? volume, decimal? cost, string currencyCode, ISimpleCoordinate location, FuelUpEventConfidences? confidence, double? totalFuelUsed, FillUpExtrema tankLevelExtrema, IList<FuelTransaction> fuelTransactions, FuelTransactionProductType? productType)

Parameters

device Device

The device.

driver Driver

The driver.

dateTime DateTime?

The DateTime.

odometer double?

The odometer.

distance float?

The distance traveled since last fuel up event.

volume double?

The volume.

cost decimal?

The cost.

currencyCode string

The currencyCode.

location ISimpleCoordinate

The location.

confidence FuelUpEventConfidences?

The confidence.

totalFuelUsed double?

The fuel used since the last fuel up event.

tankLevelExtrema FillUpExtrema

The fuel tank level change.

fuelTransactions IList<FuelTransaction>

The raw fuel transactions.

productType FuelTransactionProductType?

The product type.

FuelUpEvent(FuelUpEvent)

Initializes a new instance of the FuelUpEvent class.

protected FuelUpEvent(FuelUpEvent fuelUpEvent)

Parameters

fuelUpEvent FuelUpEvent

The fuelUpEvent.

FuelUpEvent(Id?, long?, Device?, Driver?, DateTime?, double?, float?, double?, decimal?, string?, ISimpleCoordinate?, FuelUpEventConfidences?, double?, FillUpExtrema?, IList<FuelTransaction>?, FuelTransactionProductType?)

Initializes a new instance of the FuelUpEvent class.

public FuelUpEvent(Id? id, long? version, Device? device, Driver? driver, DateTime? dateTime, double? odometer, float? distance, double? volume, decimal? cost, string? currencyCode, ISimpleCoordinate? location, FuelUpEventConfidences? confidence, double? totalFuelUsed, FillUpExtrema? tankLevelExtrema, IList<FuelTransaction>? fuelTransactions, FuelTransactionProductType? productType)

Parameters

id Id

The id.

version long?

The version.

device Device

The device.

driver Driver

The driver.

dateTime DateTime?

The DateTime.

odometer double?

The odometer.

distance float?

The distance traveled since last fuel up event.

volume double?

The volume.

cost decimal?

The cost.

currencyCode string

The currencyCode.

location ISimpleCoordinate

The location.

confidence FuelUpEventConfidences?

The confidence.

totalFuelUsed double?

The fuel used since the last fuel up event.

tankLevelExtrema FillUpExtrema

The fuel tank level change.

fuelTransactions IList<FuelTransaction>

The raw fuel transactions.

productType FuelTransactionProductType?

The product type.

Properties

DerivedVolume

Gets or sets the volume derived from fuel tank capacity.

public double? DerivedVolume { get; set; }

Property Value

double?

The volume derived from fuel tank capacity.

DeviationFactor

Gets or sets the difference in fuel out vs fuel in.

public double? DeviationFactor { get; set; }

Property Value

double?

float

FuelTransactions

Gets or sets the raw fuel transaction.

public IList<FuelTransaction>? FuelTransactions { get; set; }

Property Value

IList<FuelTransaction>

IList<T>

TankCapacity

Gets or sets the fuel tank capacity.

public FuelTankCapacity TankCapacity { get; set; }

Property Value

FuelTankCapacity

The fuel tank capacity.

TankLevelExtrema

Gets or sets the fuel tank level change.

public FillUpExtrema? TankLevelExtrema { get; set; }

Property Value

FillUpExtrema

The fuel tank level change.

TotalFuelUsed

Gets or sets the total fuel used up to this point in time.

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelUpEventTotalFuelUsed }, IsFuelVolume = true)]
public double? TotalFuelUsed { get; set; }

Property Value

double?

The total fuel used up to this point in time.

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 FuelUpEvent is equal to the current FuelUpEvent.

public override bool Equals(object? obj)

Parameters

obj object

The FuelUpEvent to compare with the current FuelUpEvent.

Returns

bool

true if the specified FuelUpEvent is equal to the current FuelUpEvent, otherwise, false.

GetHashCode()

Serves as a hash function for a particular type. Suitable for use in hashing algorithms and data structures like a hash table.

public override int GetHashCode()

Returns

int

A hash code for the current object.