-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.java
More file actions
36 lines (25 loc) · 758 Bytes
/
Event.java
File metadata and controls
36 lines (25 loc) · 758 Bytes
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
package CalendarApp;
import java.util.*;
public class Event {
String eventID = UUID.randomUUID().toString();
ArrayList<User> users = new ArrayList<>();
EventDetails details = new EventDetails();
void shareWithUser(User id){
users.add(id);
}
void sEventID(String id) {
eventID = id;
}
String gEventID() {
return eventID;
}
void sEventInfo(EventDetails det) {
details.calendarID = det.calendarID;
details.repeat = det.repeat;
details.title = det.title;
details.timeEnd = det.timeEnd;
details.timeStart = det.timeStart;
details.startDate = det.startDate;
details.endDate = det.endDate;
}
}