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 interfaceInterface for listening to changes in the entrants cache. -
Method Summary
Modifier and TypeMethodDescriptionstatic EntrantDBGet the singleton instance of EntrantDB.voidGet the entrants cache.voidStart listening to Firestore updates for the entrants collection.voidStop 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-
-