public class CustomerIntent extends Object
ICustomerService
.ICustomerService
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_CUSTOMER_SERVICE
Service action: bind to the customer service.
|
static String |
ACTION_CUSTOMER_UPDATE
Broadcast action: indicates the local version of a customer has been updated from the server.
|
Constructor and Description |
---|
CustomerIntent() |
Modifier and Type | Method and Description |
---|---|
static Account |
getAccount(Intent intent)
|
static String |
getCustomerId(Intent intent)
Extract the customer 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_CUSTOMER_SERVICE
public static final String ACTION_CUSTOMER_UPDATE
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.