Record Class ChargeState

java.lang.Object
java.lang.Record
de.chiflux.tesla.api.ChargeState
Record Components:
battery_level - battery_level
battery_range - battery_range
est_battery_range - est_battery_range
charge_limit_soc - charge_limit_soc
charge_port_door_open - charge_port_door_open
charging_state - charging_state
time_to_full_charge - time_to_full_charge
usable_battery_level - usable_battery_level
timestamp - timestamp

public record ChargeState(Integer battery_level, Double battery_range, Double est_battery_range, Integer charge_limit_soc, Boolean charge_port_door_open, String charging_state, Double time_to_full_charge, Integer usable_battery_level, Long timestamp) extends Record
The vehicle charge state.
  • 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.
    • battery_level

      public Integer battery_level()
      Returns the value of the battery_level record component.
      Returns:
      the value of the battery_level record component
    • battery_range

      public Double battery_range()
      Returns the value of the battery_range record component.
      Returns:
      the value of the battery_range record component
    • est_battery_range

      public Double est_battery_range()
      Returns the value of the est_battery_range record component.
      Returns:
      the value of the est_battery_range record component
    • charge_limit_soc

      public Integer charge_limit_soc()
      Returns the value of the charge_limit_soc record component.
      Returns:
      the value of the charge_limit_soc record component
    • charge_port_door_open

      public Boolean charge_port_door_open()
      Returns the value of the charge_port_door_open record component.
      Returns:
      the value of the charge_port_door_open record component
    • charging_state

      public String charging_state()
      Returns the value of the charging_state record component.
      Returns:
      the value of the charging_state record component
    • time_to_full_charge

      public Double time_to_full_charge()
      Returns the value of the time_to_full_charge record component.
      Returns:
      the value of the time_to_full_charge record component
    • usable_battery_level

      public Integer usable_battery_level()
      Returns the value of the usable_battery_level record component.
      Returns:
      the value of the usable_battery_level record component
    • timestamp

      public Long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component