java.lang.Object
com.example.slacks_lottoevent.model.Event
All Implemented Interfaces:
Serializable

public class Event extends Object implements Serializable
Event class that holds all the information for an event
See Also:
  • 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

      public Boolean getDisabled()
    • setDisabled

      public void setDisabled(Boolean disabled)
    • getLocation

      public String getLocation()
    • setLocation

      public void setLocation(String location)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getEventDate

      public String getEventDate()
    • setEventDate

      public void setEventDate(String date)
    • getTime

      public String getTime()
    • setTime

      public void setTime(String time)
    • getPrice

      public String getPrice()
    • setPrice

      public void setPrice(String price)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getWaitListCapacity

      public int getWaitListCapacity()
    • setWaitListCapacity

      public void setWaitListCapacity(int waitListCapacity)
    • getEventSlots

      public int getEventSlots()
    • setEventSlots

      public void setEventSlots(int eventSlots)
    • getQRData

      public String getQRData()
    • setQRData

      public void setQRData(String qrCodeData)
    • getQRHash

      public String getQRHash()
    • setQRHash

      public void setQRHash(String qrHash)
    • getEventID

      public String getEventID()
    • setEventID

      public void setEventID(String eventID)
    • getgeoLocation

      public Boolean getgeoLocation()
    • setGeoLocation

      public void setGeoLocation(Boolean new_geoLocation)
    • getWaitlisted

      public ArrayList<String> getWaitlisted()
    • setWaitlisted

      public void setWaitlisted(ArrayList<String> entrants)
    • addWaitlisted

      public void addWaitlisted(String entrant)
    • getFinalists

      public ArrayList<String> getFinalists()
    • setFinalists

      public void setFinalists(ArrayList<String> entrants)
    • addFinalist

      public void addFinalist(String entrant)
    • getCancelled

      public ArrayList<String> getCancelled()
    • setCancelled

      public void setCancelled(ArrayList<String> entrants)
    • addCancelled

      public void addCancelled(String entrant)
    • getSelected

      public ArrayList<String> getSelected()
    • setSelected

      public void setSelected(ArrayList<String> entrants)
    • addSelected

      public void addSelected(String entrant)
    • addReselected

      public void addReselected(String entrant)
    • getReselected

      public ArrayList<String> getReselected()
    • setReselected

      public void setReselected(ArrayList<String> entrants)
    • getSelectedNotificationsList

      public ArrayList<String> getSelectedNotificationsList()
    • setSelectedNotificationsList

      public void setSelectedNotificationsList(ArrayList<String> entrants)
    • addSelectedNotification

      public void addSelectedNotification(String notification)
    • getWaitlistedNotificationsList

      public ArrayList<String> getWaitlistedNotificationsList()
    • setWaitlistedNotificationsList

      public void setWaitlistedNotificationsList(ArrayList<String> entrants)
    • addWaitlistedNotification

      public void addWaitlistedNotification(String notification)
    • getJoinedNotificationsList

      public ArrayList<String> getJoinedNotificationsList()
    • setJoinedNotificationsList

      public void setJoinedNotificationsList(ArrayList<String> entrants)
    • addJoinedNotification

      public void addJoinedNotification(String notification)
    • getCancelledNotificationsList

      public ArrayList<String> getCancelledNotificationsList()
    • setCancelledNotificationsList

      public void setCancelledNotificationsList(ArrayList<String> entrants)
    • addCancelledNotification

      public void addCancelledNotification(String notification)
    • getDeviceId

      public String getDeviceId()
    • setDeviceId

      public void setDeviceId(String deviceId)
    • getSignupDeadline

      public String getSignupDeadline()
    • setSignupDeadline

      public void setSignupDeadline(String signupDeadline)
    • getEntrantsChosen

      public Boolean getEntrantsChosen()
    • setEntrantsChosen

      public void setEntrantsChosen(Boolean answer)
    • getEventPosterURL

      public String getEventPosterURL()
    • setEventPosterURL

      public void setEventPosterURL(String eventPosterURL)
    • equals

      public boolean equals(Object obj)
      Checks if the event is full
      Overrides:
      equals in class Object
      Returns:
      true if the event is full, false otherwise
    • hashCode

      public int hashCode()
      Hashcode for the event
      Overrides:
      hashCode in class Object
      Returns:
      hashcode
    • 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

      public ArrayList<HashMap<String,List<Double>>> getJoinLocations()
    • setJoinLocations

      public void setJoinLocations(ArrayList<HashMap<String,List<Double>>> joinLocations)
    • removeEntrant

      public void removeEntrant(String entrant)