Package de.chiflux.tesla
Interface VehicleInfo
- All Known Implementing Classes:
BasicVehicleInfo,ExtendedVehicleInfo
public interface VehicleInfo
Basic common interface for vehicles
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleConversion factor to convert miles to kilometers -
Method Summary
Modifier and TypeMethodDescriptionid()ID (id_s) information of the vehiclestatic ExtendedVehicleInfoofFullVehicleData(FullVehicleData fullVehicleData) Constructs a user-friendly record of selected information of the vehicleData APIstatic BasicVehicleInfoofVehicleData(VehicleData vehicleData) Constructs a user-friendly record of selected information of the vehicles API
-
Field Details
-
MILE_TO_KM_FACTOR
static final double MILE_TO_KM_FACTORConversion factor to convert miles to kilometers- See Also:
-
-
Method Details
-
id
String id()ID (id_s) information of the vehicle- Returns:
- ID (id_s) information of the vehicle
-
ofVehicleData
Constructs a user-friendly record of selected information of the vehicles API- Parameters:
vehicleData- record of the vehicles API- Returns:
- record of selected information of the vehicles API
-
ofFullVehicleData
Constructs a user-friendly record of selected information of the vehicleData API- Parameters:
fullVehicleData- record of the vehicleData API- Returns:
- record of selected information of the vehicleData API
-