Package com.example.rocket_launch
Class Event
java.lang.Object
com.example.rocket_launch.Event
Class that defines a new instance of an event
Author: Kaiden
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines the User Array Adapter class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptInvitation(String userID) voidaddNotifications(List<Notification> notifications) voidaddToEntrantLocationDataList(EntrantLocationData entrantLocationData) voidaddToWaitingList(String userID) voiddeclineInvitation(String userID) android.graphics.BitmapGenerates the bitmap of the QR codeintbooleanintgetName()intvoidremoveFromEntrantLocationDataList(EntrantLocationData entrantLocationData) voidremoveFromWaitingList(String userID) sampleWaitlist(int sampleAmount) Author: Kaiden remove sampleAmount of users from waitlist and add them to invited listvoidsetCancelledEntrants(List<String> cancelledEntrants) voidsetCapacity(int capacity) voidsetDescription(String description) voidvoidsetEventID(String eventID) voidsetGeolocationRequired(boolean geolocationRequired) voidsetInvitedEntrants(List<String> invitedEntrants) voidsetMaxWaitlistSize(int maxWaitlistSize) voidvoidsetNotifications(List<Notification> notifications) voidsetOrganizer(String organizer) voidsetParticipants(Integer participants) voidsetPosterUrl(String posterUrl) voidvoidsetregisteredEntrants(List<String> registeredEntrants) void
-
Constructor Details
-
Event
public Event()Constructor for event class
-
-
Method Details
-
getNotifications
-
setNotifications
-
addNotifications
-
setEventID
-
setName
-
setDescription
-
setCapacity
public void setCapacity(int capacity) -
setGeolocationRequired
public void setGeolocationRequired(boolean geolocationRequired) -
setParticipants
-
setWaitingList
public void setWaitingList() -
setMaxWaitlistSize
public void setMaxWaitlistSize(int maxWaitlistSize) -
setEntrantLocationDataList
public void setEntrantLocationDataList() -
addToEntrantLocationDataList
-
getEntrantLocationDataList
-
removeFromEntrantLocationDataList
-
getMaxWaitlistSize
public int getMaxWaitlistSize() -
addToWaitingList
-
removeFromWaitingList
-
getWaitingList
-
getEventID
-
getName
-
getDescription
-
getPosterUrl
-
setPosterUrl
-
getCapacity
public int getCapacity() -
getGeolocationRequired
public boolean getGeolocationRequired() -
getParticipants
public int getParticipants() -
acceptInvitation
-
declineInvitation
-
generateQRCode
public android.graphics.Bitmap generateQRCode()Generates the bitmap of the QR code- Returns:
- bitmap of QR code, or null
-
sampleWaitlist
Author: Kaiden remove sampleAmount of users from waitlist and add them to invited list- Parameters:
sampleAmount- (int) amount of entrants to remove and return
-
getQRCode
-
setQRCode
-
getCancelledEntrants
-
setCancelledEntrants
-
getregisteredEntrants
-
setregisteredEntrants
-
getInvitedEntrants
-
setInvitedEntrants
-
getOrganizer
-
setOrganizer
-