Table of Contents

Class FuelEvent

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

Log of fueling events.

[ReportClass]
public class FuelEvent : EntityWithVersion, IEntity, IComparable, IIdentifiable, IVersion, IDateTimeProvider, IOdometerProvider, ISimpleCoordinatesProvider
Inheritance
FuelEvent
Implements
Derived
Inherited Members

Constructors

FuelEvent()

Initializes a new instance of the FuelEvent class.

public FuelEvent()

FuelEvent(FuelEvent)

Initializes a new instance of the FuelEvent class.

protected FuelEvent(FuelEvent fuelEvent)

Parameters

fuelEvent FuelEvent

The fuelEvent.

FuelEvent(Id?, long?, DateTime?, double?, double?, decimal?, string?, ISimpleCoordinate?, FuelTransactionProductType?, FuelUpEventConfidences?)

Initializes a new instance of the FuelEvent class.

public FuelEvent(Id? id, long? version, DateTime? dateTime, double? odometer, double? volume, decimal? cost, string? currencyCode, ISimpleCoordinate? location, FuelTransactionProductType? productType, FuelUpEventConfidences? confidence)

Parameters

id Id

The id.

version long?

The version.

dateTime DateTime?

The DateTime.

odometer double?

The odometer.

volume double?

The volume.

cost decimal?

The cost.

currencyCode string

The currencyCode.

location ISimpleCoordinate

The location.

productType FuelTransactionProductType?

The product type.

confidence FuelUpEventConfidences?

The confidence.

Properties

Confidence

Gets or sets the FuelUpEventConfidences associated with the Fuel record. Default [None].

public FuelUpEventConfidences? Confidence { get; set; }

Property Value

FuelUpEventConfidences?

FuelUpEventConfidences

Cost

Gets or sets the cost of the fuel transaction. Default [0].

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventCost })]
public decimal? Cost { get; set; }

Property Value

decimal?

decimal

CurrencyCode

Gets or sets the three digit ISO 427 currency code (http://www.xe.com/iso4217.php). Default ["USD"].

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventCurrencyCode })]
public string? CurrencyCode { get; set; }

Property Value

string

string

DateTime

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

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

Property Value

DateTime?

DateTime

Location

Gets or sets the Coordinate of the transaction retailer. Default [0,0].

public ISimpleCoordinate? Location { get; set; }

Property Value

ISimpleCoordinate

ISimpleCoordinate

Odometer

Gets or sets the driver recorded odometer reading in km. Default [0].

public double? Odometer { get; set; }

Property Value

double?

double

ProductType

Gets or sets the FuelTransactionProductType of this transaction. Default [Unknown].

[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventProductType })]
public FuelTransactionProductType? ProductType { get; set; }

Property Value

FuelTransactionProductType?

FuelTransactionProductType

Volume

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

public double? Volume { 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.