WaitlistEntryRepository

Handles the data in the Firestore database for the WaitlistEntry class.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Cached waitlist entries synchronized with Firestore.

Functions

Link copied to clipboard
suspend fun addWaitlistEntry(entry: WaitlistEntry)

Adds a new waitlist entry to the Firestore database.

Link copied to clipboard

Deletes a waitlist entry from the Firestore database.

Link copied to clipboard

Gets all the WaitlistEntry objects of a specified Lottery.

Link copied to clipboard

Gets all WaitlistEntry of a specific entrant.

Link copied to clipboard
suspend fun getWaitlistEntry(entryId: String): WaitlistEntry?

Gets a WaitlistEntry object from the database given its entryId.

Link copied to clipboard
suspend fun updateEntryStatus(waitlistEntry: WaitlistEntry, newStatus: WaitlistStatus)

Changes the status of a waitlist entry.

Link copied to clipboard
suspend fun updateWaitlistEntry(updatedEntry: WaitlistEntry)

Saves a waitlist entry to Firestore, creating it if absent.