Package org.opencabstandard.provider
Class HOSContract.HOSStatus
java.lang.Object
org.opencabstandard.provider.HOSContract.HOSStatus
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- HOSContract
An object representing the HOS status for version 0.2.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<HOSContract.HOSStatus>
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
The list of current HOS clocks for the driver.A URI string used to launch the OpenCab HOS provider app.void
setClocks
(List<HOSContract.Clock> clocks) The list of current HOS clocks for the driver.void
setManageAction
(String manageAction) A URI string to launch the OpenCab HOS provider app.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
HOSStatus
public HOSStatus() -
HOSStatus
protected HOSStatus(android.os.Parcel in)
-
-
Method Details
-
getClocks
The list of current HOS clocks for the driver.- Returns:
- The HOS clocks
-
setClocks
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
A URI string to launch the OpenCab HOS provider app. Providers will launch aIntent.ACTION_VIEW
intent to open this URI.- Parameters:
manageAction
- The URI string
-
getManageAction
A URI string used to launch the OpenCab HOS provider app. Providers will launch aIntent.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 interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-