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 TypeMethodDescriptionvoidaddCancelled(String entrant) voidaddCancelledNotification(String notification) voidaddFinalist(String entrant) voidaddJoinedNotification(String notification) voidaddReselected(String entrant) voidaddSelected(String entrant) voidaddSelectedNotification(String notification) voidaddWaitlisted(String entrant) voidaddWaitlistedNotification(String notification) booleanChecks if the event is fullvoidClearing list if event is full*intgetName()getPrice()getTime()intinthashCode()Hashcode for the eventvoidLottery System for the eventvoidremoveEntrant(String entrant) voidRe-Selecting System for the eventvoidsetCancelled(ArrayList<String> entrants) voidsetCancelledNotificationsList(ArrayList<String> entrants) voidsetDescription(String description) voidsetDeviceId(String deviceId) voidsetDisabled(Boolean disabled) voidsetEntrantsChosen(Boolean answer) voidsetEventDate(String date) voidsetEventID(String eventID) voidsetEventPosterURL(String eventPosterURL) voidsetEventSlots(int eventSlots) voidsetFinalists(ArrayList<String> entrants) voidsetGeoLocation(Boolean new_geoLocation) voidsetJoinedNotificationsList(ArrayList<String> entrants) voidvoidsetLocation(String location) voidvoidvoidvoidvoidsetReselected(ArrayList<String> entrants) voidsetSelected(ArrayList<String> entrants) voidsetSelectedNotificationsList(ArrayList<String> entrants) voidsetSignupDeadline(String signupDeadline) voidvoidsetWaitListCapacity(int waitListCapacity) voidsetWaitlisted(ArrayList<String> entrants) voidsetWaitlistedNotificationsList(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
-