Package org.opencabstandard.provider
Class IdentityContract.Driver
java.lang.Object
org.opencabstandard.provider.IdentityContract.Driver
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- IdentityContract
Object representing a Driver.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<IdentityContract.Driver>Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the username of the driver.booleanIs this driver currently operating the vehicle?voidsetDriving(boolean status) Indicate that this driver is currently operating the vehicle.voidsetUsername(String user) Set the driver username.voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Driver
public Driver() -
Driver
protected Driver(android.os.Parcel in)
-
-
Method Details
-
setUsername
Set the driver username.- Parameters:
user- The username of the driver.
-
getUsername
Get the username of the driver.- Returns:
- The username of the driver.
-
isDriving
public boolean isDriving()Is this driver currently operating the vehicle?- Returns:
- Boolean indicating whether this driver is operating the vehicle.
-
setDriving
public void setDriving(boolean status) Indicate that this driver is currently operating the vehicle. If false, the driver is a co-driver.- Parameters:
status- Boolean indicating if this driver is operating the vehicle.
-
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
-