Package com.clover.sdk.v3.employees
Class EmployeeIntent
- java.lang.Object
-
- com.clover.sdk.v3.employees.EmployeeIntent
-
public class EmployeeIntent extends Object
Definition of actions and extras for communicating withIEmployeeService
.- See Also:
IEmployeeService
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_ACTIVE_EMPLOYEE_CHANGED
Broadcast action: the active employee has changed.static String
ACTION_EMPLOYEE_SERVICE_V3
Service action: bind to the employee service.
-
Constructor Summary
Constructors Constructor Description EmployeeIntent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Account
getAccount(Intent intent)
static String
getEmployeeId(Intent intent)
Extract the employee id from the given intent's extrasBundle
.static int
getVersion(Intent intent)
Extract the version from the given intent's extrasBundle
.
-
-
-
Field Detail
-
ACTION_EMPLOYEE_SERVICE_V3
public static final String ACTION_EMPLOYEE_SERVICE_V3
Service action: bind to the employee service.- See Also:
- Constant Field Values
-
ACTION_ACTIVE_EMPLOYEE_CHANGED
public static final String ACTION_ACTIVE_EMPLOYEE_CHANGED
Broadcast action: the active employee has changed. Intents received with this action will contain extraIntents.EXTRA_ACCOUNT
andIntents.EXTRA_EMPLOYEE_ID
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccount
public static Account getAccount(Intent intent)
- Parameters:
intent
- An intent.- Returns:
- An
Account
, ornull
if the account extra is not present.
-
getVersion
public static int getVersion(Intent intent)
Extract the version from the given intent's extrasBundle
.- Parameters:
intent
- An intent.- Returns:
- An
int
, or1
if the version extra is not present.
-
-