Table of Contents

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 Device

The 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 string

The logReason.

isWaitingForData bool

The 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 Id

The id.

device Device

The 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 string

The logReason.

isWaitingForData bool

The isWaitingForData.

Properties

DateTime

Gets or sets the UTC date and time of the event.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

DateTime

Device

Gets or sets the StatusData for the Device specified.

public Device? Device { get; set; }

Property Value

Device

Device

FuelTankLevelPercentage

Gets or sets the fuel tank level PERCENTAGE. Default [0].

public double? FuelTankLevelPercentage { get; set; }

Property Value

double?

float

FuelTankLevelVolumeL

Gets or sets the fuel tank level by VOLUME in Liters. Default [0].

public double? FuelTankLevelVolumeL { get; set; }

Property Value

double?

float

IsWaitingForData

Gets or sets a value indicating whether the current record is waiting for data

public bool IsWaitingForData { get; set; }

Property Value

bool

bool

LifetimeDrivingFuelUsedL

Gets or sets the amount of driving fuel used in Liters. Default [0].

public double? LifetimeDrivingFuelUsedL { get; set; }

Property Value

double?

float

LifetimeFuelOrEnergyDistanceDrivenKm

Gets or sets the Distance Driven in Km when Fuel or Energy was used.

public double? LifetimeFuelOrEnergyDistanceDrivenKm { get; set; }

Property Value

double?

double

LifetimeIdlingFuelUsedL

Gets or sets the amount of fuel used while idling in Liters. Default [0].

public double? LifetimeIdlingFuelUsedL { get; set; }

Property Value

double?

float

LifetimePtoFuelUsedL

Gets or sets the amount of fuel used while PTO is engaged, in Liters. Default [0].

public double? LifetimePtoFuelUsedL { get; set; }

Property Value

double?

float

LifetimePtoOnTimeHours

Gets or sets the amount of time passed. Default [0].

public double? LifetimePtoOnTimeHours { get; set; }

Property Value

double?

float

LifetimeTripFuelUsedL

Gets or sets the amount of total trip fuel used in Liters. Default [0].

public double? LifetimeTripFuelUsedL { get; set; }

Property Value

double?

float

LogReason

Gets or sets the reason for logging the snapshot.

public string? LogReason { get; set; }

Property Value

string

string

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

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

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.