summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0333/stanza.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-26 22:20:59 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-08-26 22:42:24 +0100
commitd099e353a4e2804a58153937719259518ab8439e (patch)
tree30871a2f44e437919a9e65d634434f98a582f442 /slixmpp/plugins/xep_0333/stanza.py
parent1e4a301c6e71e7a8ad9d2f927b19ba0d9e419e75 (diff)
downloadslixmpp-d099e353a4e2804a58153937719259518ab8439e.tar.gz
slixmpp-d099e353a4e2804a58153937719259518ab8439e.tar.bz2
slixmpp-d099e353a4e2804a58153937719259518ab8439e.tar.xz
slixmpp-d099e353a4e2804a58153937719259518ab8439e.zip
Implement XEP-0333: Chat Markers.
Diffstat (limited to 'slixmpp/plugins/xep_0333/stanza.py')
-rw-r--r--slixmpp/plugins/xep_0333/stanza.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0333/stanza.py b/slixmpp/plugins/xep_0333/stanza.py
new file mode 100644
index 00000000..42cfc21a
--- /dev/null
+++ b/slixmpp/plugins/xep_0333/stanza.py
@@ -0,0 +1,32 @@
+"""
+ slixmpp: The Slick XMPP Library
+ Copyright (C) 2016 Emmanuel Gil Peyrot
+ This file is part of slixmpp.
+
+ See the file LICENSE for copying permission.
+"""
+
+from slixmpp.xmlstream import ElementBase
+
+class Markable(ElementBase):
+ name = 'markable'
+ plugin_attrib = 'markable'
+ namespace = 'urn:xmpp:chat-markers:0'
+
+class Received(ElementBase):
+ name = 'received'
+ plugin_attrib = 'received'
+ namespace = 'urn:xmpp:chat-markers:0'
+ interfaces = {'id'}
+
+class Displayed(ElementBase):
+ name = 'displayed'
+ plugin_attrib = 'displayed'
+ namespace = 'urn:xmpp:chat-markers:0'
+ interfaces = {'id'}
+
+class Acknowledged(ElementBase):
+ name = 'acknowledged'
+ plugin_attrib = 'acknowledged'
+ namespace = 'urn:xmpp:chat-markers:0'
+ interfaces = {'id'}