accountCacheService

Account handling service responsible for holding a cached copy of the current account instance.

Parameters

<A>

Typed account instance (extends GigyaAccount).

Constructors

Link copied to clipboard
constructor(config: Config, accountClazz: GigyaAccountClass<A>)

Functions

Link copied to clipboard
open fun calculateDiff(cachedAccount: A, updatedAccount: A): Map<String, Any>
Get account object objectDifference.
Link copied to clipboard
open fun getAccount(): A
Link copied to clipboard
open fun getAccountSchema(): Class<A>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun serializeObjectFields(gson: Gson, map: Map<String, Any>)
Object represented field values must be set as JSON Objects.
Link copied to clipboard
open fun setAccount(json: String)
Link copied to clipboard
open fun setAccountOverrideCache(accountOverrideCache: Boolean)
Link copied to clipboard
open fun setAccountScheme(scheme: Class<A>)