Package org.opencabstandard.provider
Class HOSContract.HOSData
java.lang.Object
org.opencabstandard.provider.HOSContract.HOSData
- Enclosing class:
- HOSContract
An object representing the HOS data for version 0.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe 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.void
setClocks
(List<HOSContract.ClockData> clocks) The list of current HOS clocks for the driver.void
setLogoutAction
(String logoutAction) A URI string to launch logout on the OpenCab HOS provider app.void
setManageAction
(String manageAction) A URI string to launch the OpenCab HOS provider app.void
setUsername
(String username)
-
Constructor Details
-
HOSData
public HOSData()
-
-
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
-
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
-
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
-
getLogoutAction
A URI string to launch logout on the OpenCab HOS provider app. Providers will launch aIntent.ACTION_VIEW
intent 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_VIEW
intent to open this URI.- Parameters:
logoutAction
- The URI string
-
getUsername
-
setUsername
-