-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUser.py
31 lines (22 loc) · 895 Bytes
/
User.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
### Import libraries ###
import sys
### User Class ###
class User:
### Init method (constructor)
def __init__ (self, userId, userName, userHour, userMinute):
# get user id
self.userId = userId
# get user name
self.userName = userName
# time to receive alerts everyday
self.hour = userHour
self.minute = userMinute
# select the time to receive alert today (can change if user forget to take the pills)
self.messageHour = userHour
self.messageMinute = userMinute
# This flag is up when the bot is asking for the user to answer 'yes' or 'no'
# This flas is down after the user answer it
self.askFlag = 0
# This flag is up when the bot is asking for the user to answer 'yes' or 'no'
# This flas is down after the user answer it
self.timeFlag = 0