Class Entrant

java.lang.Object
com.example.slacks_lottoevent.model.Entrant

public class Entrant extends Object
The Entrant class represents a participant in the app. Each entrant has lists of events they are waitlisted for, have become finalists in, have been invited to, and have not been invited to, as well as a list of event invites.
  • Constructor Details

    • Entrant

      public Entrant()
      Constructs an Entrant instance with empty event lists.
  • Method Details

    • getWaitlistedEvents

      public ArrayList<String> getWaitlistedEvents()
      Retrieves the list of events the entrant is waitlisted for.
      Returns:
      a list of waitlisted event IDs.
    • setWaitlistedEvents

      public void setWaitlistedEvents(ArrayList<String> waitlistedEvents)
    • getFinalistEvents

      public ArrayList<String> getFinalistEvents()
      Retrieves the list of events where the entrant is a finalist.
      Returns:
      a list of finalist event IDs.
    • setFinalistEvents

      public void setFinalistEvents(ArrayList<String> finalistEvents)
    • getInvitedEvents

      public ArrayList<String> getInvitedEvents()
      Retrieves the list of events the entrant has been invited to.
      Returns:
      a list of invited event IDs.
    • setInvitedEvents

      public void setInvitedEvents(ArrayList<String> invitedEvents)
    • getUninvitedEvents

      public ArrayList<String> getUninvitedEvents()
      Retrieves the list of events the entrant has not been invited to.
      Returns:
      a list of uninvited event IDs.
    • setUninvitedEvents

      public void setUninvitedEvents(ArrayList<String> uninvitedEvents)
    • addWaitlistedEvents

      public void addWaitlistedEvents(String eventID)
      Adds an event to the waitlisted events list.
      Parameters:
      eventID - the ID of the event to add.
    • addFinalistEvents

      public void addFinalistEvents(String eventID)
      Adds an event to the finalist events list.
      Parameters:
      eventID - the ID of the event to add.
    • addInvitedEvents

      public void addInvitedEvents(String eventID)
      Adds an event to the invited events list.
      Parameters:
      eventID - the ID of the event to add.
    • addUninvitedEvents

      public void addUninvitedEvents(String eventID)
      Adds an event to the uninvited events list.
      Parameters:
      eventID - the ID of the event to add.