Class FuelUsedEvent
- Namespace
- Geotab.Checkmate.ObjectModel.Fuel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
An event representing fuel used for a vehicle.
[ReportClass]
public class FuelUsedEvent : FuelEvent, IEntity, IComparable, IIdentifiable, IVersion, IDateTimeProvider, IOdometerProvider, ISimpleCoordinatesProvider, IDeviceProvider, IDriverProvider
- Inheritance
-
FuelUsedEvent
- Implements
- Derived
- Inherited Members
Constructors
FuelUsedEvent()
Initializes a new instance of the FuelUsedEvent class. Initializes a new instance of FuelUsedEvent object.
public FuelUsedEvent()
FuelUsedEvent(Device?, Driver?, DateTime?, double?, float?, double?, decimal?, string?, ISimpleCoordinate?, FuelTransactionProductType?, FuelUpEventConfidences?)
Initializes a new instance of the FuelUsedEvent class.
public FuelUsedEvent(Device? device, Driver? driver, DateTime? dateTime, double? odometer, float? distance, double? volume, decimal? cost, string? currencyCode, ISimpleCoordinate? location, FuelTransactionProductType? productType, FuelUpEventConfidences? confidence)
Parameters
deviceDeviceThe device.
driverDriverThe driver.
dateTimeDateTime?The DateTime.
odometerdouble?The odometer.
distancefloat?The distance.
volumedouble?The volume.
costdecimal?The cost.
currencyCodestringThe currencyCode.
locationISimpleCoordinateThe location.
productTypeFuelTransactionProductType?The product type.
confidenceFuelUpEventConfidences?The confidence of the fuel used event.
FuelUsedEvent(FuelUsedEvent)
Initializes a new instance of the FuelUsedEvent class.
protected FuelUsedEvent(FuelUsedEvent fuelUsedEvent)
Parameters
fuelUsedEventFuelUsedEventfuelUsedEvent The fuelUsedEvent.
FuelUsedEvent(Id?, long?, Device?, Driver?, DateTime?, double?, float?, double?, decimal?, string?, ISimpleCoordinate?, FuelTransactionProductType?, FuelUpEventConfidences?)
Initializes a new instance of the FuelUsedEvent class.
public FuelUsedEvent(Id? id, long? version, Device? device, Driver? driver, DateTime? dateTime, double? odometer, float? distance, double? volume, decimal? cost, string? currencyCode, ISimpleCoordinate? location, FuelTransactionProductType? productType, FuelUpEventConfidences? confidence)
Parameters
idIdThe id.
versionlong?The version.
deviceDeviceThe device.
driverDriverThe driver.
dateTimeDateTime?The DateTime.
odometerdouble?The odometer.
distancefloat?The distance.
volumedouble?The volume.
costdecimal?The cost.
currencyCodestringThe currencyCode.
locationISimpleCoordinateThe location.
productTypeFuelTransactionProductType?The product type.
confidenceFuelUpEventConfidences?The confidence.
Properties
Device
Gets or sets the Device associated with the fuel used event.
public Device? Device { get; set; }
Property Value
Distance
Gets or sets the distance in meters traveled since the last fill-up.
public float? Distance { get; set; }
Property Value
Driver
Gets or sets the Driver associated with the transaction.
public Driver? Driver { 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.