|
|
fun addSuccessfullyPostedToken(token: String): Unit |
|
|
fun cacheAppUserID(appUserID: String): Unit |
|
|
fun cacheAttributionData(network: AttributionNetwork, userId: String, cacheValue: String): Unit |
|
|
fun cacheOfferings(offerings: Offerings): Unit |
|
|
fun cachePurchaserInfo(appUserID: String, info: PurchaserInfo): Unit |
|
|
Removes from the database all hashed tokens that are not considered active anymore, i.e. all
consumed in-apps or inactive subscriptions hashed tokens that are still in the local cache.
fun cleanPreviouslySentTokens(activeSubsHashedTokens: Set<String>, unconsumedInAppsHashedTokens: Set<String>): Unit |
|
|
fun clearCachesForAppUserID(appUserID: String): Unit |
|
|
fun clearLatestAttributionData(userId: String): Unit |
|
|
fun clearOfferingsCacheTimestamp(): Unit |
|
|
fun clearPurchaserInfoCache(appUserID: String): Unit |
|
|
fun clearPurchaserInfoCacheTimestamp(appUserID: String): Unit |
|
|
fun findKeysThatStartWith(cacheKey: String): Set<String> |
|
|
Returns a list containing all tokens that are in activeSubsByTheirHashedToken and
activeInAppsByTheirHashedToken map that are not present in the device cache.
In other words, returns all hashed tokens that are active and have not
been posted to our backend yet.
fun getActivePurchasesNotInCache(activeSubsByTheirHashedToken: Map<String, PurchaseWrapper>, activeInAppsByTheirHashedToken: Map<String, PurchaseWrapper>): List<PurchaseWrapper> |
|
|
fun getCachedAppUserID(): String? |
|
|
fun getCachedAttributionData(network: AttributionNetwork, userId: String): String? |
|
|
fun getCachedPurchaserInfo(appUserID: String): PurchaserInfo? |
|
|
fun getJSONObjectOrNull(key: String): JSONObject? |
|
|
fun getLegacyCachedAppUserID(): String? |
|
|
fun getPreviouslySentHashedTokens(): Set<String> |
|
|
fun getPurchaserInfoCachesLastUpdated(appUserID: String): Date? |
|
|
fun isOfferingsCacheStale(appInBackground: Boolean): Boolean |
|
|
fun isPurchaserInfoCacheStale(appUserID: String, appInBackground: Boolean): Boolean |
|
|
fun newKey(key: String): String |
|
|
fun purchaserInfoCacheKey(appUserID: String): String |
|
|
fun purchaserInfoLastUpdatedCacheKey(appUserID: String): String |
|
|
fun putString(cacheKey: String, value: String): Unit |
|
|
fun remove(cacheKey: String): Unit |
|
|
fun setOfferingsCacheTimestampToNow(): Unit |
|
|
fun setPurchaserInfoCacheTimestamp(appUserID: String, date: Date): Unit |
|
|
fun setPurchaserInfoCacheTimestampToNow(appUserID: String): Unit |