-
Notifications
You must be signed in to change notification settings - Fork 0
/
serveruser.py
95 lines (61 loc) · 2.33 KB
/
serveruser.py
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Filename: serveruser.py
# import into another file by using "from serveruser import User"
#=============================================
#= ServerUser Class =
#=============================================
from discord import ClientUser
from event import Event
class User():
#===================================================
#= Variables =
#===================================================
__discordID:str = None
__firstName:str = None
__faculty:str = None
__programYear:int = None
__username:str = None
__myEvents = [None]*2
#==========================================================
#= Public Functions =
#==========================================================
def __init__(self): # Default Constructor for User
pass
def __init__(self, discordID, firstName, faculty, programYear, username):
self.__discordID = discordID
self.__firstName = firstName
self.__faculty = faculty
self.__programYear = programYear
self.__username = username
def getDiscordID(self): # Get User Discord ID
return
def firstName(self, name:str): # Get User Name
return
def getFirstName(self): # Set User Name
return self.__firstName
def setFaculty(self): # Get User Faculty
pass
def getFaculty(self): # Get User Faculty
return self.__faculty
def programYear(self): # Get User Program Year
return self.__programYear
def getProgramYear(self): # Get User Program Year
return
def getUsername(self): # Get User Discord Name
return self.__username
# ==== Primary Methods From Deliverables ====
def getMyEvents(self): # Get ServerUser Events
return self.__myEvents
def setMyEvents(self, event): # Set ServerUser Events
if self.__myEvents(len()) < 2:
if self.__myEvents[0] == None:
self.__myEvents[0] == event
else:
self.__myEvents[1] == event
return
else:
# No spot available code here
return
def createEvent(self): # Create ServerUser Event
pass
def deleteEvent(self): # Delete ServerUser Event
pass