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
deviceDeviceThe device.
driverDriverThe driver.
dateTimeDateTime?The DateTime.
odometerdouble?The odometer.
distancefloat?The distance traveled since last fuel up event.
volumedouble?The volume.
costdecimal?The cost.
currencyCodestringThe currencyCode.
locationISimpleCoordinateThe location.
confidenceFuelUpEventConfidences?The confidence.
totalFuelUseddouble?The fuel used since the last fuel up event.
tankLevelExtremaFillUpExtremaThe fuel tank level change.
fuelTransactionsIList<FuelTransaction>The raw fuel transactions.
productTypeFuelTransactionProductType?The product type.
FuelUpEvent(FuelUpEvent)
Initializes a new instance of the FuelUpEvent class.
protected FuelUpEvent(FuelUpEvent fuelUpEvent)
Parameters
fuelUpEventFuelUpEventThe 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
idIdThe id.
versionlong?The version.
deviceDeviceThe device.
driverDriverThe driver.
dateTimeDateTime?The DateTime.
odometerdouble?The odometer.
distancefloat?The distance traveled since last fuel up event.
volumedouble?The volume.
costdecimal?The cost.
currencyCodestringThe currencyCode.
locationISimpleCoordinateThe location.
confidenceFuelUpEventConfidences?The confidence.
totalFuelUseddouble?The fuel used since the last fuel up event.
tankLevelExtremaFillUpExtremaThe fuel tank level change.
fuelTransactionsIList<FuelTransaction>The raw fuel transactions.
productTypeFuelTransactionProductType?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
FuelTransactions
Gets or sets the raw fuel transaction.
public IList<FuelTransaction>? FuelTransactions { get; set; }
Property Value
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
objobjectThe 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.