Class EntrantDB
java.lang.Object
com.example.slacks_lottoevent.database.EntrantDB
EntrantDB is a singleton class that listens to Firestore for changes to the "entrants" collection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface for listening to changes in the entrants cache. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntrantDB
Get the singleton instance of EntrantDB.void
Get the entrants cache.void
Start listening to Firestore updates for the entrants collection.void
Stop listening to Firestore updates.
-
Method Details
-
getInstance
Get the singleton instance of EntrantDB.- Returns:
- The singleton instance of EntrantDB.
-
startListening
public void startListening()Start listening to Firestore updates for the entrants collection. -
stopListening
public void stopListening()Stop listening to Firestore updates. -
setEntrantChangeListener
Get the entrants cache.- Parameters:
listener
-
-