Package de.chiflux.tesla
Record Class ExtendedVehicleInfo
java.lang.Object
java.lang.Record
de.chiflux.tesla.ExtendedVehicleInfo
- Record Components:
id- idvin- vinlocked- lockedcarApiVersion- carApiVersioncarVersion- carVersionodometer- odometerisUserPresent- isUserPresentcarSpecialType- carSpecialTypecarType- carTypetrimBadging- trimBadgingutcOffset- utcOffsetchargingState- chargingStatebatteryLevel- batteryLevelchargeLimitSoc- chargeLimitSoctimeToFullCharge- timeToFullChargebatteryRange- batteryRangeestimatedBatteryRange- estimatedBatteryRangechargePortDoorOpen- chargePortDoorOpenusableBatteryLevel- usableBatteryLevelheading- headingshiftState- shiftStatelatitude- latitudelongitude- longitudepower- powerspeed- speedbatterySize- batterySizesimpleCarVersion- 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
-
Field Summary
Fields inherited from interface de.chiflux.tesla.VehicleInfo
MILE_TO_KM_FACTOR -
Constructor Summary
ConstructorsConstructorDescriptionExtendedVehicleInfo(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) Creates an instance of aExtendedVehicleInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatteryLevelrecord component.Returns the value of thebatteryRangerecord component.Returns the value of thebatterySizerecord component.Returns the value of thecarApiVersionrecord component.Returns the value of thecarSpecialTyperecord component.carType()Returns the value of thecarTyperecord component.Returns the value of thecarVersionrecord component.Returns the value of thechargeLimitSocrecord component.Returns the value of thechargePortDoorOpenrecord component.Returns the value of thechargingStaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theestimatedBatteryRangerecord component.final inthashCode()Returns a hash code value for this object.heading()Returns the value of theheadingrecord component.id()Returns the value of theidrecord component.Returns the value of theisUserPresentrecord component.latitude()Returns the value of thelatituderecord component.locked()Returns the value of thelockedrecord component.Returns the value of thelongituderecord component.odometer()Returns the value of theodometerrecord component.power()Returns the value of thepowerrecord component.Returns the value of theshiftStaterecord component.Returns the value of thesimpleCarVersionrecord component.speed()Returns the value of thespeedrecord component.Returns the value of thetimeToFullChargerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrimBadgingrecord component.Returns the value of theusableBatteryLevelrecord component.Returns the value of theutcOffsetrecord component.vin()Returns the value of thevinrecord component.
-
Constructor Details
-
ExtendedVehicleInfo
public 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) Creates an instance of aExtendedVehicleInforecord class.- Parameters:
id- the value for theidrecord componentvin- the value for thevinrecord componentlocked- the value for thelockedrecord componentcarApiVersion- the value for thecarApiVersionrecord componentcarVersion- the value for thecarVersionrecord componentodometer- the value for theodometerrecord componentisUserPresent- the value for theisUserPresentrecord componentcarSpecialType- the value for thecarSpecialTyperecord componentcarType- the value for thecarTyperecord componenttrimBadging- the value for thetrimBadgingrecord componentutcOffset- the value for theutcOffsetrecord componentchargingState- the value for thechargingStaterecord componentbatteryLevel- the value for thebatteryLevelrecord componentchargeLimitSoc- the value for thechargeLimitSocrecord componenttimeToFullCharge- the value for thetimeToFullChargerecord componentbatteryRange- the value for thebatteryRangerecord componentestimatedBatteryRange- the value for theestimatedBatteryRangerecord componentchargePortDoorOpen- the value for thechargePortDoorOpenrecord componentusableBatteryLevel- the value for theusableBatteryLevelrecord componentheading- the value for theheadingrecord componentshiftState- the value for theshiftStaterecord componentlatitude- the value for thelatituderecord componentlongitude- the value for thelongituderecord componentpower- the value for thepowerrecord componentspeed- the value for thespeedrecord componentbatterySize- the value for thebatterySizerecord componentsimpleCarVersion- the value for thesimpleCarVersionrecord 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). -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceVehicleInfo- Returns:
- the value of the
idrecord component
-
vin
Returns the value of thevinrecord component.- Returns:
- the value of the
vinrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
carApiVersion
Returns the value of thecarApiVersionrecord component.- Returns:
- the value of the
carApiVersionrecord component
-
carVersion
Returns the value of thecarVersionrecord component.- Returns:
- the value of the
carVersionrecord component
-
odometer
Returns the value of theodometerrecord component.- Returns:
- the value of the
odometerrecord component
-
isUserPresent
Returns the value of theisUserPresentrecord component.- Returns:
- the value of the
isUserPresentrecord component
-
carSpecialType
Returns the value of thecarSpecialTyperecord component.- Returns:
- the value of the
carSpecialTyperecord component
-
carType
Returns the value of thecarTyperecord component.- Returns:
- the value of the
carTyperecord component
-
trimBadging
Returns the value of thetrimBadgingrecord component.- Returns:
- the value of the
trimBadgingrecord component
-
utcOffset
Returns the value of theutcOffsetrecord component.- Returns:
- the value of the
utcOffsetrecord component
-
chargingState
Returns the value of thechargingStaterecord component.- Returns:
- the value of the
chargingStaterecord component
-
batteryLevel
Returns the value of thebatteryLevelrecord component.- Returns:
- the value of the
batteryLevelrecord component
-
chargeLimitSoc
Returns the value of thechargeLimitSocrecord component.- Returns:
- the value of the
chargeLimitSocrecord component
-
timeToFullCharge
Returns the value of thetimeToFullChargerecord component.- Returns:
- the value of the
timeToFullChargerecord component
-
batteryRange
Returns the value of thebatteryRangerecord component.- Returns:
- the value of the
batteryRangerecord component
-
estimatedBatteryRange
Returns the value of theestimatedBatteryRangerecord component.- Returns:
- the value of the
estimatedBatteryRangerecord component
-
chargePortDoorOpen
Returns the value of thechargePortDoorOpenrecord component.- Returns:
- the value of the
chargePortDoorOpenrecord component
-
usableBatteryLevel
Returns the value of theusableBatteryLevelrecord component.- Returns:
- the value of the
usableBatteryLevelrecord component
-
heading
Returns the value of theheadingrecord component.- Returns:
- the value of the
headingrecord component
-
shiftState
Returns the value of theshiftStaterecord component.- Returns:
- the value of the
shiftStaterecord component
-
latitude
Returns the value of thelatituderecord component.- Returns:
- the value of the
latituderecord component
-
longitude
Returns the value of thelongituderecord component.- Returns:
- the value of the
longituderecord component
-
power
Returns the value of thepowerrecord component.- Returns:
- the value of the
powerrecord component
-
speed
Returns the value of thespeedrecord component.- Returns:
- the value of the
speedrecord component
-
batterySize
Returns the value of thebatterySizerecord component.- Returns:
- the value of the
batterySizerecord component
-
simpleCarVersion
Returns the value of thesimpleCarVersionrecord component.- Returns:
- the value of the
simpleCarVersionrecord component
-