-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
62 lines (45 loc) · 1.26 KB
/
User.java
File metadata and controls
62 lines (45 loc) · 1.26 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package CalendarApp;
import java.util.*;
import java.util.Calendar;
import java.util.HashMap;
public class User {
String ID = UUID.randomUUID().toString();
boolean darkTheme = false;
boolean makePrivate = false;
String timeZone;
HashMap<String, Calendar> calendars = new HashMap<>();
HashMap<String, Event> eventsTitleList = new HashMap<>();
HashMap<String, String> privatelist = new HashMap<>();
void sUserID(String ID) {
this.ID = ID;
}
String gUserID() {
return this.ID;
}
void addCalendar(Calendar myCalendar) {
myCalendar = new GregorianCalendar();
}
void removeCalendar(String ID) {
calendars.remove(ID);
}
Calendar getCalendar(String cID) {
return this.calendars.get(cID);
}
void addEvent(String ID) {
EventDetails info = new EventDetails();
Event theEvent = new Event();
theEvent.sEventInfo(info);
}
void sTimezone(String timeZone) {
this.timeZone = timeZone;
}
String gTimezone() {
return this.timeZone;
}
void sDarkThemeActive() {
darkTheme = true;
}
void sPrivate() {
makePrivate = true;
}
}