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 TypeMethodDescriptionvoid
addFinalistEvents
(String eventID) Adds an event to the finalist events list.void
addInvitedEvents
(String eventID) Adds an event to the invited events list.void
addUninvitedEvents
(String eventID) Adds an event to the uninvited events list.void
addWaitlistedEvents
(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.void
setFinalistEvents
(ArrayList<String> finalistEvents) void
setInvitedEvents
(ArrayList<String> invitedEvents) void
setUninvitedEvents
(ArrayList<String> uninvitedEvents) void
setWaitlistedEvents
(ArrayList<String> waitlistedEvents)
-
Constructor Details
-
Entrant
public Entrant()Constructs anEntrant
instance 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.
-