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
FuelEventThe 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
IdThe id.
version
long?The version.
dateTime
DateTime?The DateTime.
odometer
double?The odometer.
volume
double?The volume.
cost
decimal?The cost.
currencyCode
stringThe currencyCode.
location
ISimpleCoordinateThe 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
Cost
Gets or sets the cost of the fuel transaction. Default [0].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventCost })]
public decimal? Cost { get; set; }
Property Value
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
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
Location
Gets or sets the Coordinate of the transaction retailer. Default [0,0].
public ISimpleCoordinate? Location { get; set; }
Property Value
Odometer
Gets or sets the driver recorded odometer reading in km. Default [0].
public double? Odometer { get; set; }
Property Value
ProductType
Gets or sets the FuelTransactionProductType of this transaction. Default [Unknown].
[ExcelColumnHeader(new ReportHeading[] { ReportHeading.FuelEventProductType })]
public FuelTransactionProductType? ProductType { get; set; }
Property Value
Volume
Gets or sets the volume of fuel purchased in Liters. Default [0].
public double? Volume { 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.