Package com.example.breeze_seas
Class WaitingList
java.lang.Object
com.example.breeze_seas.StatusList
com.example.breeze_seas.WaitingList
Represents the "waiting" status for an event.
Handles users who have registered but have not yet been selected or left.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.example.breeze_seas.StatusList
StatusList.ListUpdateListener -
Field Summary
Fields inherited from class com.example.breeze_seas.StatusList
capacity, event, tempLocation, userList -
Constructor Summary
ConstructorsConstructorDescriptionWaitingList(Event event, int capacity) Constructs a new WaitingList for a specific event. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringDefines the unique status identifier for this list type in Firestore.Methods inherited from class com.example.breeze_seas.StatusList
addUser, determineLocation, getCapacity, getEvent, getSize, getUserList, popUser, removeUserFromDB, setCapacity, startListening, stopListening, userIsInList
-
Constructor Details
-
WaitingList
Constructs a new WaitingList for a specific event.- Parameters:
event-Eventobject this waiting list belongs to.capacity- The maximum number of entrants allowed on this waiting list.
-
-
Method Details
-
getStatusName
Defines the unique status identifier for this list type in Firestore.- Specified by:
getStatusNamein classStatusList- Returns:
- A string literal "waiting" used to filter participant documents.
-