Package org.opencabstandard.provider
Class IdentityContract.Driver
- java.lang.Object
-
- org.opencabstandard.provider.IdentityContract.Driver
-
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- IdentityContract
public static class IdentityContract.Driver extends java.lang.Object implements android.os.Parcelable
Object representing a Driver.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<IdentityContract.Driver>
CREATOR
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
java.lang.String
getUsername()
Get the username of the driver.boolean
isDriving()
Is this driver currently operating the vehicle?void
setDriving(boolean status)
Indicate that this driver is currently operating the vehicle.void
setUsername(java.lang.String user)
Set the driver username.void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<IdentityContract.Driver> CREATOR
-
-
Method Detail
-
setUsername
public void setUsername(java.lang.String user)
Set the driver username.- Parameters:
user
- The username of the driver.
-
getUsername
public java.lang.String 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:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
-