Class HOSContract.HOSStatus

  • All Implemented Interfaces:
    android.os.Parcelable
    Enclosing class:
    HOSContract

    public static class HOSContract.HOSStatus
    extends java.lang.Object
    implements android.os.Parcelable
    An object representing the HOS status for version 0.2.
    • 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<HOSContract.HOSStatus> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      java.util.List<HOSContract.Clock> getClocks()
      The list of current HOS clocks for the driver.
      java.lang.String getManageAction()
      A URI string used to launch the OpenCab HOS provider app.
      void setClocks​(java.util.List<HOSContract.Clock> clocks)
      The list of current HOS clocks for the driver.
      void setManageAction​(java.lang.String manageAction)
      A URI string to launch the OpenCab HOS provider app.
      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

      • HOSStatus

        public HOSStatus()
      • HOSStatus

        protected HOSStatus​(android.os.Parcel in)
    • Method Detail

      • getClocks

        public java.util.List<HOSContract.Clock> getClocks()
        The list of current HOS clocks for the driver.
        Returns:
        The HOS clocks
      • setClocks

        public void setClocks​(java.util.List<HOSContract.Clock> clocks)
        The list of current HOS clocks for the driver. A URI string to launch the OpenCab HOS provider app.
        Parameters:
        clocks - The HOS clocks
      • setManageAction

        public void setManageAction​(java.lang.String manageAction)
        A URI string to launch the OpenCab HOS provider app. Providers will launch a Intent.ACTION_VIEW intent to open this URI.
        Parameters:
        manageAction - The URI string
      • getManageAction

        public java.lang.String getManageAction()
        A URI string used to launch the OpenCab HOS provider app. Providers will launch a Intent.ACTION_VIEW intent to open this URI.
        Returns:
        The URI string
      • 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