Record Class GasMeterResponseModel

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.be.fluvius.client.model.GasMeterResponseModel
All Implemented Interfaces:
MeterResponseModel

public record GasMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<GDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<GHourlyEnergyItemResponseModel> hourlyEnergy) extends Record implements MeterResponseModel
  • Constructor Details

    • GasMeterResponseModel

      public GasMeterResponseModel(@Nullable Integer seqNumber, @Nullable String meterID, @Nullable List<GDailyEnergyItemResponseModel> dailyEnergy, @Nullable List<GHourlyEnergyItemResponseModel> hourlyEnergy)
      Creates an instance of a GasMeterResponseModel record class.
      Parameters:
      seqNumber - the value for the seqNumber record component
      meterID - the value for the meterID record component
      dailyEnergy - the value for the dailyEnergy record component
      hourlyEnergy - the value for the hourlyEnergy record component
  • Method Details

    • getByGranularity

      @Nullable public List<? extends EnergyItemResponseModel<? extends MeasurementResponseModel>> getByGranularity(Granularity granularity)
      Specified by:
      getByGranularity in interface MeterResponseModel
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • seqNumber

      @Nullable public Integer seqNumber()
      Returns the value of the seqNumber record component.
      Specified by:
      seqNumber in interface MeterResponseModel
      Returns:
      the value of the seqNumber record component
    • meterID

      @Nullable public String meterID()
      Returns the value of the meterID record component.
      Specified by:
      meterID in interface MeterResponseModel
      Returns:
      the value of the meterID record component
    • dailyEnergy

      @Nullable public List<GDailyEnergyItemResponseModel> dailyEnergy()
      Returns the value of the dailyEnergy record component.
      Returns:
      the value of the dailyEnergy record component
    • hourlyEnergy

      @Nullable public List<GHourlyEnergyItemResponseModel> hourlyEnergy()
      Returns the value of the hourlyEnergy record component.
      Returns:
      the value of the hourlyEnergy record component