| Modifier and Type | Method and Description |
|---|---|
User |
Event.getCreator()
Returns the owner of the event
|
| Modifier and Type | Method and Description |
|---|---|
List<User> |
Event.getParticipantsList()
Returns the list of event participants
|
| Modifier and Type | Method and Description |
|---|---|
void |
Event.addCreator(User creator)
Adds a creator to an event
|
void |
Event.addParticipant(User participant)
Adds a participant to an event and increase the participants number for
that event
|
void |
Event.removeCreator(User creator)
Remove a creator from an event
|
void |
Event.removeParticipant(User participant)
Remove a participant from an event and decrease the participants number
for the event
|
void |
Event.setCreator(User creator)
Sets the owner of the event
|
| Constructor and Description |
|---|
Event(Integer id,
String title,
Category category,
String description,
String longDescription,
Date eventDate,
String location,
int participants,
long duration,
User creator)
Constructs a new instance of
Event. |
Event(String title,
Category category,
String description,
String longDescription,
Date eventDate,
String location,
long duration,
User creator)
Constructs a new instance of
Event. |
Copyright © 2016. All rights reserved.