Record Class ExtendedVehicleInfo

java.lang.Object
java.lang.Record
de.chiflux.tesla.ExtendedVehicleInfo
Record Components:
id - id
vin - vin
locked - locked
carApiVersion - carApiVersion
carVersion - carVersion
odometer - odometer
isUserPresent - isUserPresent
carSpecialType - carSpecialType
carType - carType
trimBadging - trimBadging
utcOffset - utcOffset
chargingState - chargingState
batteryLevel - batteryLevel
chargeLimitSoc - chargeLimitSoc
timeToFullCharge - timeToFullCharge
batteryRange - batteryRange
estimatedBatteryRange - estimatedBatteryRange
chargePortDoorOpen - chargePortDoorOpen
usableBatteryLevel - usableBatteryLevel
heading - heading
shiftState - shiftState
latitude - latitude
longitude - longitude
power - power
speed - speed
batterySize - batterySize
simpleCarVersion - simpleCarVersion
All Implemented Interfaces:
VehicleInfo

public record ExtendedVehicleInfo(String id, String vin, Boolean locked, Integer carApiVersion, String carVersion, BigDecimal odometer, Boolean isUserPresent, String carSpecialType, String carType, String trimBadging, Integer utcOffset, String chargingState, Integer batteryLevel, Integer chargeLimitSoc, Double timeToFullCharge, BigDecimal batteryRange, BigDecimal estimatedBatteryRange, Boolean chargePortDoorOpen, Integer usableBatteryLevel, Integer heading, String shiftState, Double latitude, Double longitude, Integer power, BigDecimal speed, Integer batterySize, String simpleCarVersion) extends Record implements VehicleInfo
User-friendly data selection of vehicles and vehicleData information
  • 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.
    • id

      public String id()
      Returns the value of the id record component.
      Specified by:
      id in interface VehicleInfo
      Returns:
      the value of the id record component
    • vin

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

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

      public Integer carApiVersion()
      Returns the value of the carApiVersion record component.
      Returns:
      the value of the carApiVersion record component
    • carVersion

      public String carVersion()
      Returns the value of the carVersion record component.
      Returns:
      the value of the carVersion record component
    • odometer

      public BigDecimal odometer()
      Returns the value of the odometer record component.
      Returns:
      the value of the odometer record component
    • isUserPresent

      public Boolean isUserPresent()
      Returns the value of the isUserPresent record component.
      Returns:
      the value of the isUserPresent record component
    • carSpecialType

      public String carSpecialType()
      Returns the value of the carSpecialType record component.
      Returns:
      the value of the carSpecialType record component
    • carType

      public String carType()
      Returns the value of the carType record component.
      Returns:
      the value of the carType record component
    • trimBadging

      public String trimBadging()
      Returns the value of the trimBadging record component.
      Returns:
      the value of the trimBadging record component
    • utcOffset

      public Integer utcOffset()
      Returns the value of the utcOffset record component.
      Returns:
      the value of the utcOffset record component
    • chargingState

      public String chargingState()
      Returns the value of the chargingState record component.
      Returns:
      the value of the chargingState record component
    • batteryLevel

      public Integer batteryLevel()
      Returns the value of the batteryLevel record component.
      Returns:
      the value of the batteryLevel record component
    • chargeLimitSoc

      public Integer chargeLimitSoc()
      Returns the value of the chargeLimitSoc record component.
      Returns:
      the value of the chargeLimitSoc record component
    • timeToFullCharge

      public Double timeToFullCharge()
      Returns the value of the timeToFullCharge record component.
      Returns:
      the value of the timeToFullCharge record component
    • batteryRange

      public BigDecimal batteryRange()
      Returns the value of the batteryRange record component.
      Returns:
      the value of the batteryRange record component
    • estimatedBatteryRange

      public BigDecimal estimatedBatteryRange()
      Returns the value of the estimatedBatteryRange record component.
      Returns:
      the value of the estimatedBatteryRange record component
    • chargePortDoorOpen

      public Boolean chargePortDoorOpen()
      Returns the value of the chargePortDoorOpen record component.
      Returns:
      the value of the chargePortDoorOpen record component
    • usableBatteryLevel

      public Integer usableBatteryLevel()
      Returns the value of the usableBatteryLevel record component.
      Returns:
      the value of the usableBatteryLevel record component
    • heading

      public Integer heading()
      Returns the value of the heading record component.
      Returns:
      the value of the heading record component
    • shiftState

      public String shiftState()
      Returns the value of the shiftState record component.
      Returns:
      the value of the shiftState record component
    • latitude

      public Double latitude()
      Returns the value of the latitude record component.
      Returns:
      the value of the latitude record component
    • longitude

      public Double longitude()
      Returns the value of the longitude record component.
      Returns:
      the value of the longitude record component
    • power

      public Integer power()
      Returns the value of the power record component.
      Returns:
      the value of the power record component
    • speed

      public BigDecimal speed()
      Returns the value of the speed record component.
      Returns:
      the value of the speed record component
    • batterySize

      public Integer batterySize()
      Returns the value of the batterySize record component.
      Returns:
      the value of the batterySize record component
    • simpleCarVersion

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