Class HOSContract.HOSStatusV2

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

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

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

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

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

      • HOSStatusV2

        public HOSStatusV2()
      • HOSStatusV2

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

      • getClocks

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

        public void setClocks​(java.util.List<HOSContract.ClockV2> clocks)
        The list of current HOS clocks for the driver.
        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
      • setLogoutAction

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

        public java.lang.String getLogoutAction()
        A URI string to launch logout on 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