From ac23d278b5323960b9054535eaac0310cfeae2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 19 May 2019 15:33:48 +0200 Subject: Add IBB (XEP-0047) module --- nbxmpp/structs.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nbxmpp/structs.py') 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): -- cgit v1.2.3