Record Class VehicleState

java.lang.Object
java.lang.Record
de.chiflux.tesla.api.VehicleState
Record Components:
api_version - api_version
car_version - car_version
is_user_present - is_user_present
locked - locked
odometer - odometer
timestamp - timestamp
vehicle_name - vehicle_name

public record VehicleState(Integer api_version, String car_version, Boolean is_user_present, Boolean locked, Double odometer, Long timestamp, String vehicle_name) extends Record
The vehicle state
  • Constructor Details

    • VehicleState

      public VehicleState(Integer api_version, String car_version, Boolean is_user_present, Boolean locked, Double odometer, Long timestamp, String vehicle_name)
      Creates an instance of a VehicleState record class.
      Parameters:
      api_version - the value for the api_version record component
      car_version - the value for the car_version record component
      is_user_present - the value for the is_user_present record component
      locked - the value for the locked record component
      odometer - the value for the odometer record component
      timestamp - the value for the timestamp record component
      vehicle_name - the value for the vehicle_name record component
  • 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.
    • api_version

      public Integer api_version()
      Returns the value of the api_version record component.
      Returns:
      the value of the api_version record component
    • car_version

      public String car_version()
      Returns the value of the car_version record component.
      Returns:
      the value of the car_version record component
    • is_user_present

      public Boolean is_user_present()
      Returns the value of the is_user_present record component.
      Returns:
      the value of the is_user_present record component
    • locked

      public Boolean locked()
      Returns the value of the locked record component.
      Returns:
      the value of the locked record component
    • odometer

      public Double odometer()
      Returns the value of the odometer record component.
      Returns:
      the value of the odometer record component
    • timestamp

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

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