Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <philipp@hoerist.com>2019-10-13 12:57:29 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-10-13 12:57:29 +0300
commitaf360130ec8655f9c947fc97bee2c033d62d2798 (patch)
treecba8cb1211733d5dd09408f4daec32dbd135d390 /nbxmpp/structs.py
parenta15b98aec870e0e6c8fac08f102b5da182aa0470 (diff)
Add OOB (XEP-0066) support
Diffstat (limited to 'nbxmpp/structs.py')
-rw-r--r--nbxmpp/structs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nbxmpp/structs.py b/nbxmpp/structs.py
index a6fe984..bfb0cdf 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -121,6 +121,8 @@ DiscoItems = namedtuple('DiscoItems', 'jid node items')
DiscoItem = namedtuple('DiscoItem', 'jid name node')
DiscoItem.__new__.__defaults__ = (None, None)
+OOBData = namedtuple('OOBData', 'url desc')
+
class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms timestamp')):
@@ -545,6 +547,7 @@ class MessageProperties:
self.pgp_legacy = None
self.marker = None
self.receipt = None
+ self.oob = None
@property
def has_user_delay(self):
@@ -625,6 +628,10 @@ class MessageProperties:
def is_receipt(self):
return self.receipt is not None
+ @property
+ def is_oob(self):
+ return self.oob is not None
+
class IqProperties:
def __init__(self):