Package org.opencabstandard.provider
Class VehicleInformationContract.VehicleInformation
- java.lang.Object
-
- org.opencabstandard.provider.VehicleInformationContract.VehicleInformation
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- VehicleInformationContract
public static class VehicleInformationContract.VehicleInformation extends java.lang.Object implements android.os.ParcelableObject containing the vehicle information.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<VehicleInformationContract.VehicleInformation>CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description VehicleInformation()protectedVehicleInformation(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()java.lang.StringgetVehicleId()A string to identify the vehicle id.java.lang.StringgetVin()A string to identify the vehicle vin number.booleanisInGear()Is the vehicle currently in gear? True = vehicle is in gear False = vehicle is in park or neutralvoidsetInGear(boolean status)Indicate whether the vehicle is in gear.voidsetVehicleId(java.lang.String id)A string to identify the vehicle id.voidsetVin(java.lang.String vin)A string to identify the vehicle vin number.voidwriteToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<VehicleInformationContract.VehicleInformation> CREATOR
-
-
Method Detail
-
setVin
public void setVin(java.lang.String vin)
A string to identify the vehicle vin number.- Parameters:
vin- The vehicle information number (VIN) as a string, e.g. "1M2AX07Y79M006004"
-
getVin
public java.lang.String getVin()
A string to identify the vehicle vin number.- Returns:
- vin The vehicle information number (VIN) as a string, e.g. "1M2AX07Y79M006004"
-
setVehicleId
public void setVehicleId(java.lang.String id)
A string to identify the vehicle id.- Parameters:
id- The vehicle identifier.
-
getVehicleId
public java.lang.String getVehicleId()
A string to identify the vehicle id.- Returns:
- vehicleId The vehicle id.
-
isInGear
public boolean isInGear()
Is the vehicle currently in gear? True = vehicle is in gear False = vehicle is in park or neutral- Returns:
- Boolean indicating whether the vehicle is currently in gear.
-
setInGear
public void setInGear(boolean status)
Indicate whether the vehicle is in gear. If false, the vehicle is not and does not intend on moving.- Parameters:
status- Boolean indicating if the vehicle is currently in gear.
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
-