Record Class EtaPlusMeteredData

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.de.eta.providers.EtaPlusMeteredData
Record Components:
meteringPointId - the metering point identifier
startDate - the start date of the metering period
endDate - the end date of the metering period
readings - the list of meter readings
rawJson - the original JSON response from ETA Plus for raw data emission

public record EtaPlusMeteredData(String meteringPointId, LocalDate startDate, LocalDate endDate, List<EtaPlusMeteredData.MeterReading> readings, String rawJson) extends Record
Represents metered data from the ETA Plus API. This is a placeholder structure that should be replaced with the actual ETA Plus API response format once the API specification is available.
  • Constructor Details

  • Method Details

    • 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.
    • meteringPointId

      public String meteringPointId()
      Returns the value of the meteringPointId record component.
      Returns:
      the value of the meteringPointId record component
    • startDate

      public LocalDate startDate()
      Returns the value of the startDate record component.
      Returns:
      the value of the startDate record component
    • endDate

      public LocalDate endDate()
      Returns the value of the endDate record component.
      Returns:
      the value of the endDate record component
    • readings

      Returns the value of the readings record component.
      Returns:
      the value of the readings record component
    • rawJson

      public String rawJson()
      Returns the value of the rawJson record component.
      Returns:
      the value of the rawJson record component