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 TypeMethodDescriptionintThe list of current HOS clocks for the driver.A URI string used to launch the OpenCab HOS provider app.voidsetClocks(List<HOSContract.Clock> clocks) The list of current HOS clocks for the driver.voidsetManageAction(String manageAction) A URI string to launch the OpenCab HOS provider app.voidwriteToParcel(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_VIEWintent 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_VIEWintent to open this URI.- Returns:
- The URI string
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-