addWaitlistToLottery

suspend fun addWaitlistToLottery(lottery: Lottery, waitlistEntry: WaitlistEntry): Boolean

Adds a waitlist entry to a specified lottery if there is enough space left.

Return

true if the entry was added successfully, false if the waitlist is full or the entry is already on it.

Parameters

lottery

The Lottery to add the waitlistEntry to.

waitlistEntry

The WaitlistEntry to add.