diff options
author | mathieui <mathieui@mathieui.net> | 2020-12-06 21:45:22 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-12-06 21:45:22 +0100 |
commit | b3e2a8eb91f5521b7dc43020e388de8918aaa33e (patch) | |
tree | e7d3634a4e6b16092b2b059cd4c2893e920f55ad /slixmpp/plugins/xep_0333/stanza.py | |
parent | 11ac5867fff9b53b432793a834bf24a8bd3ff1e2 (diff) | |
download | slixmpp-b3e2a8eb91f5521b7dc43020e388de8918aaa33e.tar.gz slixmpp-b3e2a8eb91f5521b7dc43020e388de8918aaa33e.tar.bz2 slixmpp-b3e2a8eb91f5521b7dc43020e388de8918aaa33e.tar.xz slixmpp-b3e2a8eb91f5521b7dc43020e388de8918aaa33e.zip |
XEP-0333: Add missing feature, and a send_marker method
Diffstat (limited to 'slixmpp/plugins/xep_0333/stanza.py')
-rw-r--r-- | slixmpp/plugins/xep_0333/stanza.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0333/stanza.py b/slixmpp/plugins/xep_0333/stanza.py index 42cfc21a..77cd47a4 100644 --- a/slixmpp/plugins/xep_0333/stanza.py +++ b/slixmpp/plugins/xep_0333/stanza.py @@ -8,25 +8,30 @@ from slixmpp.xmlstream import ElementBase +NS ='urn:xmpp:chat-markers:0' + class Markable(ElementBase): name = 'markable' plugin_attrib = 'markable' - namespace = 'urn:xmpp:chat-markers:0' + namespace = NS + class Received(ElementBase): name = 'received' plugin_attrib = 'received' - namespace = 'urn:xmpp:chat-markers:0' + namespace = NS interfaces = {'id'} + class Displayed(ElementBase): name = 'displayed' plugin_attrib = 'displayed' - namespace = 'urn:xmpp:chat-markers:0' + namespace = NS interfaces = {'id'} + class Acknowledged(ElementBase): name = 'acknowledged' plugin_attrib = 'acknowledged' - namespace = 'urn:xmpp:chat-markers:0' + namespace = NS interfaces = {'id'} |