Class Event
java.lang.Object
com.example.slacks_lottoevent.model.Event
- All Implemented Interfaces:
Serializable
Event class that holds all the information for an event
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEvent()
Event
(String name, String eventDate, String location, String time, String price, String description, int eventSlots, int waitListCapacity, String qrData, String eventID, Boolean geoLocation, String qrHash, String deviceId, String signupDeadline, String eventPosterURL) Constructor for Event -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCancelled
(String entrant) void
addCancelledNotification
(String notification) void
addFinalist
(String entrant) void
addJoinedNotification
(String notification) void
addReselected
(String entrant) void
addSelected
(String entrant) void
addSelectedNotification
(String notification) void
addWaitlisted
(String entrant) void
addWaitlistedNotification
(String notification) boolean
Checks if the event is fullvoid
Clearing list if event is full*int
getName()
getPrice()
getTime()
int
int
hashCode()
Hashcode for the eventvoid
Lottery System for the eventvoid
removeEntrant
(String entrant) void
Re-Selecting System for the eventvoid
setCancelled
(ArrayList<String> entrants) void
setCancelledNotificationsList
(ArrayList<String> entrants) void
setDescription
(String description) void
setDeviceId
(String deviceId) void
setDisabled
(Boolean disabled) void
setEntrantsChosen
(Boolean answer) void
setEventDate
(String date) void
setEventID
(String eventID) void
setEventPosterURL
(String eventPosterURL) void
setEventSlots
(int eventSlots) void
setFinalists
(ArrayList<String> entrants) void
setGeoLocation
(Boolean new_geoLocation) void
setJoinedNotificationsList
(ArrayList<String> entrants) void
void
setLocation
(String location) void
void
void
void
void
setReselected
(ArrayList<String> entrants) void
setSelected
(ArrayList<String> entrants) void
setSelectedNotificationsList
(ArrayList<String> entrants) void
setSignupDeadline
(String signupDeadline) void
void
setWaitListCapacity
(int waitListCapacity) void
setWaitlisted
(ArrayList<String> entrants) void
setWaitlistedNotificationsList
(ArrayList<String> entrants)
-
Constructor Details
-
Event
public Event() -
Event
public Event(String name, String eventDate, String location, String time, String price, String description, int eventSlots, int waitListCapacity, String qrData, String eventID, Boolean geoLocation, String qrHash, String deviceId, String signupDeadline, String eventPosterURL) Constructor for Event- Parameters:
name
-eventDate
-location
-time
-price
-description
-eventSlots
-waitListCapacity
-qrData
-eventID
-geoLocation
-qrHash
-signupDeadline
-
-
-
Method Details
-
getDisabled
-
setDisabled
-
getLocation
-
setLocation
-
getName
-
setName
-
getEventDate
-
setEventDate
-
getTime
-
setTime
-
getPrice
-
setPrice
-
getDescription
-
setDescription
-
getWaitListCapacity
public int getWaitListCapacity() -
setWaitListCapacity
public void setWaitListCapacity(int waitListCapacity) -
getEventSlots
public int getEventSlots() -
setEventSlots
public void setEventSlots(int eventSlots) -
getQRData
-
setQRData
-
getQRHash
-
setQRHash
-
getEventID
-
setEventID
-
getgeoLocation
-
setGeoLocation
-
getWaitlisted
-
setWaitlisted
-
addWaitlisted
-
getFinalists
-
setFinalists
-
addFinalist
-
getCancelled
-
setCancelled
-
addCancelled
-
getSelected
-
setSelected
-
addSelected
-
addReselected
-
getReselected
-
setReselected
-
getSelectedNotificationsList
-
setSelectedNotificationsList
-
addSelectedNotification
-
getWaitlistedNotificationsList
-
setWaitlistedNotificationsList
-
addWaitlistedNotification
-
getJoinedNotificationsList
-
setJoinedNotificationsList
-
addJoinedNotification
-
getCancelledNotificationsList
-
setCancelledNotificationsList
-
addCancelledNotification
-
getDeviceId
-
setDeviceId
-
getSignupDeadline
-
setSignupDeadline
-
getEntrantsChosen
-
setEntrantsChosen
-
getEventPosterURL
-
setEventPosterURL
-
equals
Checks if the event is full -
hashCode
public int hashCode()Hashcode for the event -
lotterySystem
public void lotterySystem()Lottery System for the event -
reSelecting
public void reSelecting()Re-Selecting System for the event -
fullEvent
public void fullEvent()Clearing list if event is full* -
getJoinLocations
-
setJoinLocations
-
removeEntrant
-