Package de.chiflux.tesla.api
Record Class ChargeState
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.ChargeState
- Record Components:
battery_level- battery_levelbattery_range- battery_rangeest_battery_range- est_battery_rangecharge_limit_soc- charge_limit_soccharge_port_door_open- charge_port_door_opencharging_state- charging_statetime_to_full_charge- time_to_full_chargeusable_battery_level- usable_battery_leveltimestamp- 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 Summary
ConstructorsConstructorDescriptionChargeState(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) Creates an instance of aChargeStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebattery_levelrecord component.Returns the value of thebattery_rangerecord component.Returns the value of thecharge_limit_socrecord component.Returns the value of thecharge_port_door_openrecord component.Returns the value of thecharging_staterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theest_battery_rangerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetime_to_full_chargerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusable_battery_levelrecord component.
-
Constructor Details
-
ChargeState
public 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) Creates an instance of aChargeStaterecord class.- Parameters:
battery_level- the value for thebattery_levelrecord componentbattery_range- the value for thebattery_rangerecord componentest_battery_range- the value for theest_battery_rangerecord componentcharge_limit_soc- the value for thecharge_limit_socrecord componentcharge_port_door_open- the value for thecharge_port_door_openrecord componentcharging_state- the value for thecharging_staterecord componenttime_to_full_charge- the value for thetime_to_full_chargerecord componentusable_battery_level- the value for theusable_battery_levelrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
battery_level
Returns the value of thebattery_levelrecord component.- Returns:
- the value of the
battery_levelrecord component
-
battery_range
Returns the value of thebattery_rangerecord component.- Returns:
- the value of the
battery_rangerecord component
-
est_battery_range
Returns the value of theest_battery_rangerecord component.- Returns:
- the value of the
est_battery_rangerecord component
-
charge_limit_soc
Returns the value of thecharge_limit_socrecord component.- Returns:
- the value of the
charge_limit_socrecord component
-
charge_port_door_open
Returns the value of thecharge_port_door_openrecord component.- Returns:
- the value of the
charge_port_door_openrecord component
-
charging_state
Returns the value of thecharging_staterecord component.- Returns:
- the value of the
charging_staterecord component
-
time_to_full_charge
Returns the value of thetime_to_full_chargerecord component.- Returns:
- the value of the
time_to_full_chargerecord component
-
usable_battery_level
Returns the value of theusable_battery_levelrecord component.- Returns:
- the value of the
usable_battery_levelrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-