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
device
DeviceThe device.
driver
DriverThe driver.
dateTime
DateTime?The DateTime.
odometer
double?The odometer.
distance
float?The distance.
volume
double?The volume.
cost
decimal?The cost.
currencyCode
stringThe currencyCode.
location
ISimpleCoordinateThe location.
productType
FuelTransactionProductType?The product type.
confidence
FuelUpEventConfidences?The confidence of the fuel used event.
FuelUsedEvent(FuelUsedEvent)
Initializes a new instance of the FuelUsedEvent class.
protected FuelUsedEvent(FuelUsedEvent fuelUsedEvent)
Parameters
fuelUsedEvent
FuelUsedEventfuelUsedEvent 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
id
IdThe id.
version
long?The version.
device
DeviceThe device.
driver
DriverThe driver.
dateTime
DateTime?The DateTime.
odometer
double?The odometer.
distance
float?The distance.
volume
double?The volume.
cost
decimal?The cost.
currencyCode
stringThe currencyCode.
location
ISimpleCoordinateThe location.
productType
FuelTransactionProductType?The product type.
confidence
FuelUpEventConfidences?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.