Package org.opencabstandard.provider
Class HOSContract.HOSStatusV2
java.lang.Object
org.opencabstandard.provider.HOSContract.HOSStatusV2
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- HOSContract
An object representing the HOS status for version 0.3.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<HOSContract.HOSStatusV2>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 to launch logout on the OpenCab HOS provider app.A URI string used to launch the OpenCab HOS provider app.voidsetClocks(List<HOSContract.ClockV2> clocks) The list of current HOS clocks for the driver.voidsetLogoutAction(String logoutAction) A URI string to launch logout on the OpenCab HOS provider app.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
-
HOSStatusV2
public HOSStatusV2() -
HOSStatusV2
protected HOSStatusV2(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.- 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
-
setLogoutAction
A URI string to launch logout on the OpenCab HOS provider app. Providers will launch aIntent.ACTION_VIEWintent to open this URI.- Parameters:
logoutAction- The URI string
-
getLogoutAction
A URI string to launch logout on 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
-