public class EmployeeIntent extends Object
IEmployeeService
.IEmployeeService
Modifier and Type | Field and 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 and Description |
---|
EmployeeIntent() |
Modifier and Type | Method and Description |
---|---|
static Account |
getAccount(Intent intent)
|
static String |
getEmployeeId(Intent intent)
Extract the employee id
from the given intent's extras
Bundle . |
static int |
getVersion(Intent intent)
Extract the version
from the given intent's extras
Bundle . |
public static final String ACTION_EMPLOYEE_SERVICE_V3
public static final String ACTION_ACTIVE_EMPLOYEE_CHANGED
Intents.EXTRA_ACCOUNT
and Intents.EXTRA_EMPLOYEE_ID
.public static Account getAccount(Intent intent)
intent
- An intent.Account
, or null
if the account extra is
not present.public static int getVersion(Intent intent)
Bundle
.intent
- An intent.int
, or 1
if the version extra is
not present.