Class FuelSnapshotRecord
- Namespace
- Geotab.Checkmate.ObjectModel.Fuel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Snapshot of Log of Fuel Usage
public class FuelSnapshotRecord : Entity, IEntity, IComparable, IIdentifiable, IDeviceProvider, IDateTimeProvider
- Inheritance
-
FuelSnapshotRecord
- Implements
- Inherited Members
Constructors
FuelSnapshotRecord()
Initializes a new instance of the FuelSnapshotRecord class.
public FuelSnapshotRecord()
FuelSnapshotRecord(Device, DateTime?, double?, double?, double?, double?, double?, double?, double?, double?, string?, bool)
Initializes a new instance of the FuelSnapshotRecord class.
public FuelSnapshotRecord(Device device, DateTime? dateTime, double? lifetimeTripFuelUsedL, double? lifetimeDrivingFuelUsedL, double? lifetimeIdlingFuelUsedL, double? fuelTankLevelPercentage, double? fuelTankLevelVolumeL, double? lifetimePtoFuelUsedL, double? lifetimePtoOnTimeHours, double? lifetimeFuelOrEnergyDistanceDrivenKm, string? logReason, bool isWaitingForData)
Parameters
device
DeviceThe device.
dateTime
DateTime?The dateTime.
lifetimeTripFuelUsedL
double?The lifetimeTripFuelUsedL.
lifetimeDrivingFuelUsedL
double?The lifetimeDrivingFuelUsedL.
lifetimeIdlingFuelUsedL
double?The lifetimeIdlingFuelUsedL.
fuelTankLevelPercentage
double?The fuelTankLevelPercentage.
fuelTankLevelVolumeL
double?The fuelTankLevelVolumeL.
lifetimePtoFuelUsedL
double?The lifetimePtoFuelUsedL.
lifetimePtoOnTimeHours
double?The lifetimePtoOnTimeHours.
lifetimeFuelOrEnergyDistanceDrivenKm
double?The lifetimeFuelOrEnergyDistanceDrivenKm.
logReason
stringThe logReason.
isWaitingForData
boolThe isWaitingForData.
FuelSnapshotRecord(Id?, Device?, DateTime?, double?, double?, double?, double?, double?, double?, double?, double?, string?, bool)
Initializes a new instance of the FuelSnapshotRecord class.
public FuelSnapshotRecord(Id? id, Device? device, DateTime? dateTime, double? lifetimeTripFuelUsedL, double? lifetimeDrivingFuelUsedL, double? lifetimeIdlingFuelUsedL, double? fuelTankLevelPercentage, double? fuelTankLevelVolumeL, double? lifetimePtoFuelUsedL, double? lifetimePtoOnTimeHours, double? lifetimeFuelOrEnergyDistanceDrivenKm, string? logReason, bool isWaitingForData)
Parameters
id
IdThe id.
device
DeviceThe device.
dateTime
DateTime?The DateTime.
lifetimeTripFuelUsedL
double?The lifetimeTripFuelUsedL.
lifetimeDrivingFuelUsedL
double?The lifetimeDrivingFuelUsedL.
lifetimeIdlingFuelUsedL
double?The lifetimeIdlingFuelUsedL.
fuelTankLevelPercentage
double?The fuelTankLevelPercentage.
fuelTankLevelVolumeL
double?The fuelTankLevelVolumeL.
lifetimePtoFuelUsedL
double?The lifetimePtoFuelUsedL.
lifetimePtoOnTimeHours
double?The lifetimePtoOnTimeHours.
lifetimeFuelOrEnergyDistanceDrivenKm
double?The lifetimeFuelOrEnergyDistanceDrivenKm.
logReason
stringThe logReason.
isWaitingForData
boolThe isWaitingForData.
Properties
DateTime
Gets or sets the UTC date and time of the event.
public DateTime? DateTime { get; set; }
Property Value
Device
Gets or sets the StatusData for the Device specified.
public Device? Device { get; set; }
Property Value
FuelTankLevelPercentage
Gets or sets the fuel tank level PERCENTAGE. Default [0].
public double? FuelTankLevelPercentage { get; set; }
Property Value
FuelTankLevelVolumeL
Gets or sets the fuel tank level by VOLUME in Liters. Default [0].
public double? FuelTankLevelVolumeL { get; set; }
Property Value
IsWaitingForData
Gets or sets a value indicating whether the current record is waiting for data
public bool IsWaitingForData { get; set; }
Property Value
LifetimeDrivingFuelUsedL
Gets or sets the amount of driving fuel used in Liters. Default [0].
public double? LifetimeDrivingFuelUsedL { get; set; }
Property Value
LifetimeFuelOrEnergyDistanceDrivenKm
Gets or sets the Distance Driven in Km when Fuel or Energy was used.
public double? LifetimeFuelOrEnergyDistanceDrivenKm { get; set; }
Property Value
LifetimeIdlingFuelUsedL
Gets or sets the amount of fuel used while idling in Liters. Default [0].
public double? LifetimeIdlingFuelUsedL { get; set; }
Property Value
LifetimePtoFuelUsedL
Gets or sets the amount of fuel used while PTO is engaged, in Liters. Default [0].
public double? LifetimePtoFuelUsedL { get; set; }
Property Value
LifetimePtoOnTimeHours
Gets or sets the amount of time passed. Default [0].
public double? LifetimePtoOnTimeHours { get; set; }
Property Value
LifetimeTripFuelUsedL
Gets or sets the amount of total trip fuel used in Liters. Default [0].
public double? LifetimeTripFuelUsedL { get; set; }
Property Value
LogReason
Gets or sets the reason for logging the snapshot.
public string? LogReason { 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.
Equals(object?)
Determines whether the specified object, is equal to this instance.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
- int
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.