-
- All Implemented Interfaces:
-
app.appnomix.sdk.internal.data.local.DatabaseDestructiveMigrationListener
public final class CouponsRepo implements DatabaseDestructiveMigrationListener
-
-
Constructor Summary
Constructors Constructor Description CouponsRepo(Context context, SdkConfig sdkConfig, SaversLeagueApi api)
-
Method Summary
Modifier and Type Method Description final BooleanhasData()UnitonDestructiveMigration()final UnitfetchHomepageCoupons()final UnitfetchDemands()final UnitstoreConfig(DynamicConfig dynamicConfig)final UnitsetListener(CouponsUpdateListener listener)final DomainDatagetCheckoutConfig(String url)final UnitmarkAsUsed(Demand item)final List<Demand>getDemands(String domain)final BooleanhasActiveDemand(String domain)-
-
Constructor Detail
-
CouponsRepo
CouponsRepo(Context context, SdkConfig sdkConfig, SaversLeagueApi api)
-
-
Method Detail
-
onDestructiveMigration
Unit onDestructiveMigration()
-
fetchHomepageCoupons
final Unit fetchHomepageCoupons()
-
fetchDemands
final Unit fetchDemands()
-
storeConfig
final Unit storeConfig(DynamicConfig dynamicConfig)
-
setListener
final Unit setListener(CouponsUpdateListener listener)
-
getCheckoutConfig
final DomainData getCheckoutConfig(String url)
-
markAsUsed
final Unit markAsUsed(Demand item)
-
getDemands
final List<Demand> getDemands(String domain)
-
hasActiveDemand
final Boolean hasActiveDemand(String domain)
-
-
-
-