Class Lottery

java.lang.Object
com.example.breeze_seas.Lottery

public class Lottery extends Object
Handles entrant selection process of an event by running a lottery to pick random entrants.
  • Constructor Details

    • Lottery

      public Lottery(Event event)
      Lottery constructor
      Parameters:
      event - Event object
  • Method Details

    • getLastRoundWinners

      public List<User> getLastRoundWinners()
      Returns a copy of the winners from the last executed lottery.
      Returns:
      List of User objects who were selected.
    • getLastRoundLosers

      public List<User> getLastRoundLosers()
      Returns a copy of the losers from the last executed lottery.
      Returns:
      List of User objects who were not selected.
    • onRunLottery

      public void onRunLottery(StatusList.ListUpdateListener finalListener)
      Executes the lottery selection process.
      Parameters:
      finalListener - The StatusList.ListUpdateListener to notify when complete.