Package org.opencabstandard.provider
Class HOSContract.HOSData
- java.lang.Object
-
- org.opencabstandard.provider.HOSContract.HOSData
-
- Enclosing class:
- HOSContract
public static class HOSContract.HOSData extends java.lang.Object
An object representing the HOS data for version 0.4
-
-
Constructor Summary
Constructors Constructor Description HOSData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<HOSContract.ClockData>
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.java.lang.String
getUsername()
void
setClocks(java.util.List<HOSContract.ClockData> 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
setUsername(java.lang.String username)
-
-
-
Method Detail
-
getClocks
public java.util.List<HOSContract.ClockData> getClocks()
The list of current HOS clocks for the driver.- Returns:
- The HOS clocks
-
setClocks
public void setClocks(java.util.List<HOSContract.ClockData> clocks)
The list of current HOS clocks for the driver.- Parameters:
clocks
- The HOS clocks
-
getManageAction
public java.lang.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
-
setManageAction
public void setManageAction(java.lang.String manageAction)
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
public java.lang.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
public void setLogoutAction(java.lang.String logoutAction)
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
public java.lang.String getUsername()
-
setUsername
public void setUsername(java.lang.String username)
-
-