-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchat_room.py
More file actions
22 lines (19 loc) · 740 Bytes
/
Copy pathchat_room.py
File metadata and controls
22 lines (19 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
CS 544 - Computer Networks
5.26.2017
Group 5: Chat Service Protocol
File: chat_room.py
Members: Ted, Shivam, Meghna, Jeshuran
File summary:
The purpose of the file is to create a new chat room. When a new group is created, a chat_room object is created and
and added to the entire group list object. The updated list object is then converted to a string and then saved to a
file.
"""
"""Chat room objects stores all data pertaining to the group"""
class Chat_room:
def __init__(self, groupName, users, admins, banned_users=[], black_users=[]):
self.chat_name = groupName
self.users = users
self.admins = admins
self.banned_users = banned_users
self.black_users = black_users