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-01-29 00:16:46 +0300
committerPhilipp Hörist <philipp@hoerist.com>2019-01-29 00:16:46 +0300
commit6e946d5f2b3e378155ce8ded81d00dca435314f5 (patch)
tree31c671f8460caee4c5777c6ce441adcb538993ac /nbxmpp/structs.py
parent396c27a9462edc4fd4288b1ed7ee1b7ff64c2112 (diff)
Add PubSub (XEP-0060) module
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 ecbcfd3..c6e86e3 100644
--- a/nbxmpp/structs.py
+++ b/nbxmpp/structs.py
@@ -58,6 +58,8 @@ HTTPAuthData.__new__.__defaults__ = (None, None, None, None)
StanzaIDData = namedtuple('StanzaIDData', 'id by')
StanzaIDData.__new__.__defaults__ = (None, None)
+PubSubEventData = namedtuple('PubSubEventData', 'node id item data')
+
class MAMData(namedtuple('MAMData', 'id query_id archive namespace timestamp')):
@@ -103,6 +105,11 @@ class MessageProperties:
self.voice_request = None
self.self_message = False
self.mam = None
+ self.pubsub_event = None
+
+ @property
+ def is_pubsub_event(self):
+ return self.pubsub_event is not None
@property
def is_mam_message(self):