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): Coupon
Link copied to clipboard
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(): Iterator<Coupon>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.