-
public final class CouponsRepo
-
-
Constructor Summary
Constructors Constructor Description CouponsRepo(Context context, SdkConfig sdkConfig, SaversLeagueApi api)
-
Method Summary
Modifier and Type Method Description final UnitfetchCoupons(String countryCode, Boolean forHomepage)final UnitfetchDemands(String countryCode)final List<Object>matchByUrlAndLocation(String url, String countryCode)final UnitmarkAsSnoozed(Coupon coupon)final UnitmarkAsSnoozed(Demand demand)final CoupongetById(String id)final UnitsetListener(CouponsUpdateListener listener)-
-
Constructor Detail
-
CouponsRepo
CouponsRepo(Context context, SdkConfig sdkConfig, SaversLeagueApi api)
-
-
Method Detail
-
fetchCoupons
final Unit fetchCoupons(String countryCode, Boolean forHomepage)
-
fetchDemands
final Unit fetchDemands(String countryCode)
-
matchByUrlAndLocation
final List<Object> matchByUrlAndLocation(String url, String countryCode)
-
markAsSnoozed
final Unit markAsSnoozed(Coupon coupon)
-
markAsSnoozed
final Unit markAsSnoozed(Demand demand)
-
setListener
final Unit setListener(CouponsUpdateListener listener)
-
-
-
-