Class 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.
    • Nested Class Summary

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

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

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<IdentityContract.Driver> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Driver()  
      protected Driver​(android.os.Parcel in)  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Driver

        public Driver()
      • Driver

        protected Driver​(android.os.Parcel in)
    • 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 interface android.os.Parcelable
      • describeContents

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