Class EntrantDB

java.lang.Object
com.example.slacks_lottoevent.database.EntrantDB

public class EntrantDB extends Object
EntrantDB is a singleton class that listens to Firestore for changes to the "entrants" collection.
  • Method Details

    • getInstance

      public static EntrantDB 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

      public void setEntrantChangeListener(EntrantDB.EntrantChangeListener listener)
      Get the entrants cache.
      Parameters:
      listener -