Package de.chiflux.tesla.api
Record Class VehicleState
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.VehicleState
- Record Components:
api_version- api_versioncar_version- car_versionis_user_present- is_user_presentlocked- lockedodometer- odometertimestamp- timestampvehicle_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapi_versionrecord component.Returns the value of thecar_versionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theis_user_presentrecord component.locked()Returns the value of thelockedrecord component.odometer()Returns the value of theodometerrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevehicle_namerecord component.
-
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 aVehicleStaterecord class.- Parameters:
api_version- the value for theapi_versionrecord componentcar_version- the value for thecar_versionrecord componentis_user_present- the value for theis_user_presentrecord componentlocked- the value for thelockedrecord componentodometer- the value for theodometerrecord componenttimestamp- the value for thetimestamprecord componentvehicle_name- the value for thevehicle_namerecord 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). -
api_version
Returns the value of theapi_versionrecord component.- Returns:
- the value of the
api_versionrecord component
-
car_version
Returns the value of thecar_versionrecord component.- Returns:
- the value of the
car_versionrecord component
-
is_user_present
Returns the value of theis_user_presentrecord component.- Returns:
- the value of the
is_user_presentrecord component
-
locked
Returns the value of thelockedrecord component.- Returns:
- the value of the
lockedrecord component
-
odometer
Returns the value of theodometerrecord component.- Returns:
- the value of the
odometerrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
vehicle_name
Returns the value of thevehicle_namerecord component.- Returns:
- the value of the
vehicle_namerecord component
-