WaitlistEntry

data class WaitlistEntry(val entryId: String = "", val entrantId: String = "", val lotteryId: String = "", val joinedAt: Date = Date(), val numberOfGuests: Int = 1, var status: WaitlistStatus = WaitlistStatus.IN_WAITLIST)

Represents an entrant's waitlist entry.

Throws

triggered if numberOfGuests is less than 1.

Constructors

Link copied to clipboard
constructor(entryId: String = "", entrantId: String = "", lotteryId: String = "", joinedAt: Date = Date(), numberOfGuests: Int = 1, status: WaitlistStatus = WaitlistStatus.IN_WAITLIST)

Properties

Link copied to clipboard

The ID of the entrant who joined the waitlist.

Link copied to clipboard

The unique ID of the entry.

Link copied to clipboard

The date and time the entrant joined the waitlist.

Link copied to clipboard

The ID of the lottery this entry is from.

Link copied to clipboard

The total number of guests included in the reservation request.

Link copied to clipboard

The current status of this waitlist entry.

Functions

Link copied to clipboard

Updates the waitlist entry status to "declined".