forked from er0sin/hangouts_to_sms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment.py
More file actions
17 lines (15 loc) · 705 Bytes
/
attachment.py
File metadata and controls
17 lines (15 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Attachment:
"""MMS message attachment.
Model that describes an attachment to an MMS message.
"""
album_id = None # Google Photos ID (not used)
photo_id = None # Google Photos ID (not used)
media_type = None # Type of attachment: PHOTO, ANIMATED_PHOTO, VIDEO
original_content_url = None
download_url = None # This is used to get file extension
def __init__(self, album_id=None, photo_id=None, media_type=None, original_content_url=None, download_url=None):
self.album_id = album_id
self.photo_id = photo_id
self.media_type = media_type
self.original_content_url = original_content_url
self.download_url = download_url