1
0
mirror of https://github.com/gryf/slack-backup.git synced 2025-12-17 11:30:25 +01:00

Added Messages object and started Reactions object

This commit is contained in:
2016-11-18 19:08:29 +01:00
parent 15568ef593
commit 1d90ee6d9f

View File

@@ -105,3 +105,19 @@ class User(BaseObject):
self.tz_offset = data_dict.get("tz_offset", "") self.tz_offset = data_dict.get("tz_offset", "")
self.profile = UserProfile(data_dict.get("profile")) self.profile = UserProfile(data_dict.get("profile"))
class Reactions(object):
def __init__(self, data_dict=None):
data_dict = data_dict or {}
class Messages(object):
def __init__(self, data_dict=None):
data_dict = data_dict or {}
self.ts = data_dict.get('ts', '')
self.user_id = data_dict.get('user', '')
self.type = data_dict.get('type', '')
self.text = data_dict.get('text', '')
self.reactions = Reactions(data_dict.get('reactions', ''))