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 Object implements android.os.Parcelable
Object representing a Driver.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<IdentityContract.Driver>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    Driver(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    Get the username of the driver.
    boolean
    Is this driver currently operating the vehicle?
    void
    setDriving(boolean status)
    Indicate that this driver is currently operating the vehicle.
    void
    Set the driver username.
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Driver

      public Driver()
    • Driver

      protected Driver(android.os.Parcel in)
  • Method Details

    • setUsername

      public void setUsername(String user)
      Set the driver username.
      Parameters:
      user - The username of the driver.
    • getUsername

      public 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 interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable