forked from adein/hangouts_to_sms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.py
22 lines (20 loc) · 790 Bytes
/
message.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Message:
"""SMS or MMS message.
Model that describes a message.
"""
sender_gaia_id = None # This seems to be the ID to use
sender_chat_id = None # Not used
timestamp = None
medium_type = None # Not used
event_type = None # Not used
content = None # Message body
attachments = None # MMS attachments
def __init__(self, sender_gaia_id=None, sender_chat_id=None, timestamp=None,
medium_type=None, event_type=None, content=None, attachments=None):
self.sender_gaia_id = sender_gaia_id
self.sender_chat_id = sender_chat_id
self.timestamp = timestamp
self.medium_type = medium_type
self.event_type = event_type
self.content = content
self.attachments = attachments