-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGatheringManager.java
More file actions
42 lines (32 loc) · 1.21 KB
/
GatheringManager.java
File metadata and controls
42 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
public class GatheringManager extends User {
private User currentUser;
public GatheringManager() {
}
/*public void editProfile(String name, String email, String password) {
currentUser.setFirstName(name);
currentUser.setEmail(email);
currentUser.setPassword(password);
}
public void addEventFromLink(String link) {
Event event = EventParser.parseFromLink(link);
if (event != null) {
currentUser.addEvent(event);
}
}
public void createEvent(String name, String photo, String description, String location, String time) {
Event event = new Event(name, photo, description, location, time);
currentUser.addEvent(event);
}
public void addGathering(Gathering gathering) {
gatherings.add(gathering);
}
public void removeGathering(Gathering gathering) {
gatherings.remove(gathering);
}
public List<Gathering> getGatherings() {
return gatherings;
}
public void setGatherings(List<Gathering> gatherings) {
this.gatherings = gatherings;
}*/
}