-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser.py
21 lines (19 loc) · 823 Bytes
/
user.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
CS 544 - Computer Networks
5.26.2017
Group 5: Chat Service Protocol
File: user.py
Members: Ted, Shivam, Meghna, Jeshuran
File summary:
The purpose of the file is to create a new client. When a new client is created, a new user object is created and
and added to the entire user list object. The updated user object is then converted to a string and then saved to a
file.
"""
"""User objects stores data pertaining to the client"""
class User:
"""Constructor of User class"""
def __init__(self, username, password, adminGroups=[], bannedGroups=[]):
self.username = username
self.password = password
self.adminGroups = adminGroups # List of groups that the client is an admin
self.bannedGroups = bannedGroups # List of groups that the client is banned from