Package de.chiflux.tesla.api
Record Class FullVehicleData
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.FullVehicleData
- Record Components:
id_s- id_sstate- statevin- vindrive_state- drive_statecharge_state- charge_statevehicle_config- vehicle_configvehicle_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 Summary
ConstructorsConstructorDescriptionFullVehicleData(String id_s, String state, String vin, DriveState drive_state, ChargeState charge_state, VehicleConfig vehicle_config, VehicleState vehicle_state) Creates an instance of aFullVehicleDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecharge_staterecord component.Returns the value of thedrive_staterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id_s()Returns the value of theid_srecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevehicle_configrecord component.Returns the value of thevehicle_staterecord component.vin()Returns the value of thevinrecord component.
-
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 aFullVehicleDatarecord class.- Parameters:
id_s- the value for theid_srecord componentstate- the value for thestaterecord componentvin- the value for thevinrecord componentdrive_state- the value for thedrive_staterecord componentcharge_state- the value for thecharge_staterecord componentvehicle_config- the value for thevehicle_configrecord componentvehicle_state- the value for thevehicle_staterecord 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_s
Returns the value of theid_srecord component.- Returns:
- the value of the
id_srecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
vin
Returns the value of thevinrecord component.- Returns:
- the value of the
vinrecord component
-
drive_state
Returns the value of thedrive_staterecord component.- Returns:
- the value of the
drive_staterecord component
-
charge_state
Returns the value of thecharge_staterecord component.- Returns:
- the value of the
charge_staterecord component
-
vehicle_config
Returns the value of thevehicle_configrecord component.- Returns:
- the value of the
vehicle_configrecord component
-
vehicle_state
Returns the value of thevehicle_staterecord component.- Returns:
- the value of the
vehicle_staterecord component
-