Class Entrant
java.lang.Object
com.example.slacks_lottoevent.model.Entrant
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFinalistEvents(String eventID) Adds an event to the finalist events list.voidaddInvitedEvents(String eventID) Adds an event to the invited events list.voidaddUninvitedEvents(String eventID) Adds an event to the uninvited events list.voidaddWaitlistedEvents(String eventID) Adds an event to the waitlisted events list.Retrieves the list of events where the entrant is a finalist.Retrieves the list of events the entrant has been invited to.Retrieves the list of events the entrant has not been invited to.Retrieves the list of events the entrant is waitlisted for.voidsetFinalistEvents(ArrayList<String> finalistEvents) voidsetInvitedEvents(ArrayList<String> invitedEvents) voidsetUninvitedEvents(ArrayList<String> uninvitedEvents) voidsetWaitlistedEvents(ArrayList<String> waitlistedEvents)
-
Constructor Details
-
Entrant
public Entrant()Constructs anEntrantinstance with empty event lists.
-
-
Method Details
-
getWaitlistedEvents
Retrieves the list of events the entrant is waitlisted for.- Returns:
- a list of waitlisted event IDs.
-
setWaitlistedEvents
-
getFinalistEvents
Retrieves the list of events where the entrant is a finalist.- Returns:
- a list of finalist event IDs.
-
setFinalistEvents
-
getInvitedEvents
Retrieves the list of events the entrant has been invited to.- Returns:
- a list of invited event IDs.
-
setInvitedEvents
-
getUninvitedEvents
Retrieves the list of events the entrant has not been invited to.- Returns:
- a list of uninvited event IDs.
-
setUninvitedEvents
-
addWaitlistedEvents
Adds an event to the waitlisted events list.- Parameters:
eventID- the ID of the event to add.
-
addFinalistEvents
Adds an event to the finalist events list.- Parameters:
eventID- the ID of the event to add.
-
addInvitedEvents
Adds an event to the invited events list.- Parameters:
eventID- the ID of the event to add.
-
addUninvitedEvents
Adds an event to the uninvited events list.- Parameters:
eventID- the ID of the event to add.
-