Package com.clover.sdk.v1.customer
Class CustomerIntent
- java.lang.Object
-
- com.clover.sdk.v1.customer.CustomerIntent
-
public class CustomerIntent extends Object
Definition of actions and extras for communicating withICustomerService
.- See Also:
ICustomerService
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description CustomerIntent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Account
getAccount(Intent intent)
static String
getCustomerId(Intent intent)
Extract the customer id from the given intent's extrasBundle
.static int
getVersion(Intent intent)
Extract the version from the given intent's extrasBundle
.
-
-
-
Field Detail
-
ACTION_CUSTOMER_SERVICE
public static final String ACTION_CUSTOMER_SERVICE
Service action: bind to the customer service.- See Also:
- Constant Field Values
-
ACTION_CUSTOMER_UPDATE
public static final String ACTION_CUSTOMER_UPDATE
Broadcast action: indicates the local version of a customer has been updated from the server.- 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.
-
-