-
- All Implemented Interfaces:
-
com.gigya.android.sdk.account.IAccountService
public class accountCacheService<A extends GigyaAccount> implements IAccountService<A>
Account handling service responsible for holding a cached copy of the current account instance.
-
-
Constructor Summary
Constructors Constructor Description accountCacheService(Config config, GigyaAccountClass<A> accountClazz)
-
Method Summary
Modifier and Type Method Description voidsetAccountScheme(Class<A> scheme)Class<A>getAccountSchema()voidsetAccount(String json)voidinvalidateAccount()AgetAccount()booleanisCachedAccount()voidnextAccountInvalidationTimestamp()longgetNextInvalidationTimestamp()voidsetAccountOverrideCache(boolean accountOverrideCache)Map<String, Object>calculateDiff(A cachedAccount, A updatedAccount)Get account object objectDifference. static voidserializeObjectFields(Gson gson, Map<String, Object> map)Object represented field values must be set as JSON Objects. -
-
Constructor Detail
-
accountCacheService
accountCacheService(Config config, GigyaAccountClass<A> accountClazz)
-
-
Method Detail
-
setAccountScheme
void setAccountScheme(Class<A> scheme)
-
getAccountSchema
Class<A> getAccountSchema()
-
setAccount
void setAccount(String json)
-
invalidateAccount
void invalidateAccount()
-
getAccount
A getAccount()
-
isCachedAccount
boolean isCachedAccount()
-
nextAccountInvalidationTimestamp
void nextAccountInvalidationTimestamp()
-
getNextInvalidationTimestamp
long getNextInvalidationTimestamp()
-
setAccountOverrideCache
void setAccountOverrideCache(boolean accountOverrideCache)
-
calculateDiff
Map<String, Object> calculateDiff(A cachedAccount, A updatedAccount)
Get account object objectDifference.
-
serializeObjectFields
static void serializeObjectFields(Gson gson, Map<String, Object> map)
Object represented field values must be set as JSON Objects. So we are reverting each one toits JSON String representation.
-
-
-
-