Package com.clover.sdk.v3.entitlements
Class Entitlements
- java.lang.Object
-
- android.database.ContentObserver
-
- com.clover.sdk.SimpleSyncClient
-
- com.clover.sdk.v3.entitlements.Entitlements
-
public class Entitlements extends SimpleSyncClient
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHORITY
static Uri
AUTHORITY_URI
static String
EXTRA_ALLOWED
static String
EXTRA_ENTITLEMENT
static String
EXTRA_PLAN_CODE
static String
METHOD_IS_ALLOWED
-
Fields inherited from class com.clover.sdk.SimpleSyncClient
context, EXTRA_DATA, EXTRA_ITEM_ID, METHOD_GET, METHOD_PUT, METHOD_UPDATE
-
-
Constructor Summary
Constructors Constructor Description Entitlements(Context context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getAuthority()
Map<String,MerchantGatewayEntitlement>
getEntitlements()
boolean
isAllowed(String entitlement)
boolean
isAllowed(String entitlement, String planCode)
static Map<String,MerchantGatewayEntitlement>
parseEntitlements(byte[] data)
-
Methods inherited from class com.clover.sdk.SimpleSyncClient
getAuthorityUri, getData, getUnstableClient, putData, register, unregister, updateData, updateData
-
Methods inherited from class android.database.ContentObserver
deliverSelfNotifications, dispatchChange, dispatchChange, dispatchChange, dispatchChange, onChange, onChange, onChange, onChange
-
-
-
-
Field Detail
-
AUTHORITY
public static final String AUTHORITY
- See Also:
- Constant Field Values
-
AUTHORITY_URI
public static final Uri AUTHORITY_URI
-
METHOD_IS_ALLOWED
public static final String METHOD_IS_ALLOWED
- See Also:
- Constant Field Values
-
EXTRA_ENTITLEMENT
public static final String EXTRA_ENTITLEMENT
- See Also:
- Constant Field Values
-
EXTRA_PLAN_CODE
public static final String EXTRA_PLAN_CODE
- See Also:
- Constant Field Values
-
EXTRA_ALLOWED
public static final String EXTRA_ALLOWED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Entitlements
public Entitlements(Context context)
-
-
Method Detail
-
getAuthority
protected String getAuthority()
- Specified by:
getAuthority
in classSimpleSyncClient
-
getEntitlements
public Map<String,MerchantGatewayEntitlement> getEntitlements()
-
isAllowed
public boolean isAllowed(String entitlement)
-
parseEntitlements
public static Map<String,MerchantGatewayEntitlement> parseEntitlements(byte[] data)
-
-