CouponRepository

This repository give access to DLO Coupon info for Lotto and other number games.

Constructors

Link copied to clipboard
constructor(api: CouponApi)

Functions

Link copied to clipboard
fun addCouponIdToFavorite(favoriteId: String, couponId: String, sessionToken: String): Single<FavoriteCoupon>
Link copied to clipboard
fun createFavoriteCoupon(favoriteName: String, couponId: String, sessionToken: String): Single<FavoriteCoupon>
Link copied to clipboard
fun deleteFavoriteCoupon(favoriteId: String, sessionToken: String): Completable
Link copied to clipboard
fun getAllActiveGroupPlayCoupons(groupId: Long, sessionToken: String): Single<List<GroupPlayListItem>>

getAllActiveGroupPlayCoupons, This Single will emmit a list of GroupPlayListItem containing all active coupons

Link copied to clipboard
fun getAllCompletedGroupPlayCoupons(groupId: Long, sessionToken: String): Single<List<GroupPlayListItem>>

getAllCompletedGroupPlayCoupons, This Single will emmit a list of GroupPlayListItem containing all completed coupons

Link copied to clipboard
fun getAllFavorites(sessionToken: String): Single<List<FavoriteCoupon>>
Link copied to clipboard
fun getCouponInfoByBarcode(barcode: String, sessionToken: String? = null): Single<Coupon>

getCouponInfo, This Single will emmit a Coupon

Link copied to clipboard
fun getCouponInfoById(couponId: String, sessionToken: String): Single<Coupon>

getCouponInfo, This Single will emmit a Coupon

Link copied to clipboard
fun getGameRules(): Single<Rules>

getGameRules, This Single will emmit a Rules Object used for knowing when the different game type has prizes on a specific row.

Link copied to clipboard
fun getGroupCouponInfoByCouponId(playerId: String, couponId: String, sessionToken: String): Single<Coupon>

getCouponInfo, This Single will emmit a Coupon

Link copied to clipboard
fun getGroupCouponInfoByFundingId(playerId: String, fundingId: Long, groupPlayId: Long, sessionToken: String): Single<TemporaryGroupCoupon>

getCouponInfo, This Single will emmit a Coupon

Link copied to clipboard
fun updateFavoriteCoupon(favoriteId: String, favoriteName: String, sessionToken: String): Single<FavoriteCoupon>