Record Class VehicleConfig

java.lang.Object
java.lang.Record
de.chiflux.tesla.api.VehicleConfig
Record Components:
car_type - car_type
car_special_type - car_special_type
timestamp - timestamp
trim_badging - trim_badging
utc_offset - utc_offset

public record VehicleConfig(String car_type, String car_special_type, Long timestamp, String trim_badging, Integer utc_offset) extends Record
The VehicleConfig record, encapsulates data about a vehicle configuration.
  • Constructor Details

    • VehicleConfig

      public VehicleConfig(String car_type, String car_special_type, Long timestamp, String trim_badging, Integer utc_offset)
      Creates an instance of a VehicleConfig record class.
      Parameters:
      car_type - the value for the car_type record component
      car_special_type - the value for the car_special_type record component
      timestamp - the value for the timestamp record component
      trim_badging - the value for the trim_badging record component
      utc_offset - the value for the utc_offset 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.
    • car_type

      public String car_type()
      Returns the value of the car_type record component.
      Returns:
      the value of the car_type record component
    • car_special_type

      public String car_special_type()
      Returns the value of the car_special_type record component.
      Returns:
      the value of the car_special_type record component
    • timestamp

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

      public String trim_badging()
      Returns the value of the trim_badging record component.
      Returns:
      the value of the trim_badging record component
    • utc_offset

      public Integer utc_offset()
      Returns the value of the utc_offset record component.
      Returns:
      the value of the utc_offset record component