Coupons

Coupon live data.. Can be iterated and filtered to get the current coupons on a project

Constructors

Link copied to clipboard
constructor(project: Project)

Properties

Link copied to clipboard
Link copied to clipboard
val size: Int

The size of the coupon list

Link copied to clipboard

Functions

Link copied to clipboard

Filter coupons based on the given coupon type

Link copied to clipboard
open fun forEach(p0: Consumer<in Coupon>)
Link copied to clipboard
fun get(): List<Coupon>?

Get all coupons

operator fun get(i: Int): <Error class: unknown class>
Link copied to clipboard
open fun getValue(): @Nullable List<Coupon>
Link copied to clipboard
Link copied to clipboard
open fun hasObservers(): Boolean
Link copied to clipboard
Link copied to clipboard
open operator override fun iterator(): <Error class: unknown class>
Link copied to clipboard
open fun observe(p0: @NonNull LifecycleOwner, p1: @NonNull Observer<in List<Coupon>>)
Link copied to clipboard
open fun observeForever(p0: @NonNull Observer<in List<Coupon>>)
Link copied to clipboard
open fun removeObserver(p0: @NonNull Observer<in List<Coupon>>)
Link copied to clipboard
open fun removeObservers(p0: @NonNull LifecycleOwner)
Link copied to clipboard
Link copied to clipboard
fun update()

Fetches new coupons from the backend. Multiple calls simultaneously are ignored until the first call is done.