You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
554 B
16 lines
554 B
2 years ago
|
|
||
|
|
||
|
class ChatItem:
|
||
|
def __init__(self, event_id, timestamp, user_name, is_own_message, relates_to_event, message):
|
||
|
self.event_id = event_id
|
||
|
self.timestamp = timestamp
|
||
|
self.user_name = user_name
|
||
|
self.is_own_message = is_own_message
|
||
|
self.relates_to_event = relates_to_event
|
||
|
self.message = message
|
||
|
self.num_tokens = None
|
||
|
def __str__(self):
|
||
|
return str("{}: {}".format(self.user_name, self.message))
|
||
|
def getLine(self):
|
||
|
return str("{}: {}".format(self.user_name, self.message))
|