Class SustainabilityMonthlySummary
- Namespace
- Geotab.Checkmate.ObjectModel.Sustainability
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents the summarized sustainability data grouped by year and date for the specified date range.
public sealed class SustainabilityMonthlySummary : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
SustainabilityMonthlySummary
- Implements
- Inherited Members
Constructors
SustainabilityMonthlySummary()
Initializes a new instance of the SustainabilityMonthlySummary class.
public SustainabilityMonthlySummary()
SustainabilityMonthlySummary(Group?, SustainabilityPowertrainMonthlySummary[]?)
Initializes a new instance of the SustainabilityMonthlySummary class.
public SustainabilityMonthlySummary(Group? powertrainGroup, SustainabilityPowertrainMonthlySummary[]? powertrainMonthlySummaries)
Parameters
powertrainGroup
GroupThe powertrain group (Group).
powertrainMonthlySummaries
SustainabilityPowertrainMonthlySummary[]Array of SustainabilityMonthlySummary.
SustainabilityMonthlySummary(SustainabilityMonthlySummary)
Initializes a new instance of the SustainabilityMonthlySummary class.
public SustainabilityMonthlySummary(SustainabilityMonthlySummary sustainabilityMonthlySummary)
Parameters
sustainabilityMonthlySummary
SustainabilityMonthlySummaryThe SustainabilityMonthlySummary instance.
Properties
PowertrainGroup
Gets or sets the group associated with the summarized data.
public Group? PowertrainGroup { get; set; }
Property Value
PowertrainMonthlySummaries
Gets or sets the idling summaries for different powertrain groups
public SustainabilityPowertrainMonthlySummary[]? PowertrainMonthlySummaries { get; set; }
Property Value
- SustainabilityPowertrainMonthlySummary[]
An array of SustainabilityPowertrainMonthlySummary objects.
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.
Note: If this ever represents an entity stored in the database, you'll need to add "base.GetHashCode()".