Record Class FullVehicleData

java.lang.Object
java.lang.Record
de.chiflux.tesla.api.FullVehicleData
Record Components:
id_s - id_s
state - state
vin - vin
drive_state - drive_state
charge_state - charge_state
vehicle_config - vehicle_config
vehicle_state - vehicle_state

public record FullVehicleData(String id_s, String state, String vin, DriveState drive_state, ChargeState charge_state, VehicleConfig vehicle_config, VehicleState vehicle_state) extends Record
Selected data of the vehicleData API
  • Constructor Details

    • FullVehicleData

      public FullVehicleData(String id_s, String state, String vin, DriveState drive_state, ChargeState charge_state, VehicleConfig vehicle_config, VehicleState vehicle_state)
      Creates an instance of a FullVehicleData record class.
      Parameters:
      id_s - the value for the id_s record component
      state - the value for the state record component
      vin - the value for the vin record component
      drive_state - the value for the drive_state record component
      charge_state - the value for the charge_state record component
      vehicle_config - the value for the vehicle_config record component
      vehicle_state - the value for the vehicle_state 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.
    • id_s

      public String id_s()
      Returns the value of the id_s record component.
      Returns:
      the value of the id_s record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • vin

      public String vin()
      Returns the value of the vin record component.
      Returns:
      the value of the vin record component
    • drive_state

      public DriveState drive_state()
      Returns the value of the drive_state record component.
      Returns:
      the value of the drive_state record component
    • charge_state

      public ChargeState charge_state()
      Returns the value of the charge_state record component.
      Returns:
      the value of the charge_state record component
    • vehicle_config

      public VehicleConfig vehicle_config()
      Returns the value of the vehicle_config record component.
      Returns:
      the value of the vehicle_config record component
    • vehicle_state

      public VehicleState vehicle_state()
      Returns the value of the vehicle_state record component.
      Returns:
      the value of the vehicle_state record component