diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-02-03 02:06:21 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-02-03 02:06:33 +0300 |
commit | 4a7ecc26df815af67f0fc7987be0309556c04b37 (patch) | |
tree | 81b24711c26550b0eecd047b7b2f645ff5d2ff1f /nbxmpp/structs.py | |
parent | 40ff2a82fffb708da1b0e5cb916b680dba0667ea (diff) |
Add UserAvatar (XEP-0084) module
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index 895b01d..edd4d23 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -68,6 +68,12 @@ ActivityData = namedtuple('ActivityData', 'activity subactivity text') LocationData = namedtuple('LocationData', LOCATION_DATA) LocationData.__new__.__defaults__ = (None,) * len(LocationData._fields) +AvatarMetaData = namedtuple('AvatarMetaData', 'bytes height width id type url') +AvatarMetaData.__new__.__defaults__ = (None,) * len(AvatarMetaData._fields) + +AvatarData = namedtuple('AvatarData', 'jid sha data') +AvatarData.__new__.__defaults__ = (None,) * len(AvatarData._fields) + class TuneData(namedtuple('TuneData', 'artist length rating source title track uri')): |