diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-05-19 16:33:48 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-05-19 16:33:48 +0300 |
commit | ac23d278b5323960b9054535eaac0310cfeae2dd (patch) | |
tree | 188879a5975d28e63f4d5cf727ced48dbf94a0cd /nbxmpp/structs.py | |
parent | 0a116941254d652808a2ec954bbf72aa196a872a (diff) |
Add IBB (XEP-0047) module
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r-- | nbxmpp/structs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py index d751663..a614541 100644 --- a/nbxmpp/structs.py +++ b/nbxmpp/structs.py @@ -109,6 +109,9 @@ SoftwareVersionResult = namedtuple('SoftwareVersionResult', 'name version os') AdHocCommandNote = namedtuple('AdHocCommandNote', 'text type') +IBBData = namedtuple('IBBData', 'block_size sid seq type data') +IBBData.__new__.__defaults__ = (None, None, None, None, None) + class AdHocCommand(namedtuple('AdHocCommand', 'jid node name sessionid status data actions notes')): __slots__ = [] @@ -285,11 +288,16 @@ class IqProperties: self.query = None self.payload = None self.http_auth = None + self.ibb = None @property def is_http_auth(self): return self.http_auth is not None + @property + def is_ibb(self): + return self.ibb is not None + class PresenceProperties: def __init__(self): |