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.Parcelable
Object 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()
protected
VehicleInformation(android.os.Parcel in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
java.lang.String
getVehicleId()
A string to identify the vehicle id.java.lang.String
getVin()
A string to identify the vehicle vin number.boolean
isInGear()
Is the vehicle currently in gear? True = vehicle is in gear False = vehicle is in park or neutralvoid
setInGear(boolean status)
Indicate whether the vehicle is in gear.void
setVehicleId(java.lang.String id)
A string to identify the vehicle id.void
setVin(java.lang.String vin)
A string to identify the vehicle vin number.void
writeToParcel(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:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
-