XEP-0490: Message Displayed Synchronization¶
- class slixmpp.plugins.xep_0490.XEP_0490(xmpp, config=None)[source]¶
XEP-0490: Message Displayed Synchronization
- catch_up(**kwargs)[source]¶
Get all displayed status.
Can take any keyword parameters from XEP-0060’s
get_items().- Return type:
Future[Iq]
- dependencies: ClassVar[set[str]] = {'xep_0060', 'xep_0163', 'xep_0223', 'xep_0359'}¶
Some plugins may depend on others in order to function properly. Any plugin names included in
dependencieswill be initialized as needed if this plugin is enabled.
- description: str = 'XEP-0490: Message Displayed Synchronization'¶
A longer name for the plugin, describing its purpose. For example, a plugin for XEP-0030 would use ‘Service Discovery’ as its description value.
- name: str = 'xep_0490'¶
A short name for the plugin based on the implemented specification. For example, a plugin for XEP-0030 would use ‘xep_0030’.
Stanza elements¶
- class slixmpp.plugins.xep_0490.stanza.Displayed(xml=None, parent=None)[source]¶
Displayed element.
<displayed xmlns='urn:xmpp:mds:displayed:0'> <stanza-id xmlns='urn:xmpp:sid:0' id='ca21deaf-812c-48f1-8f16-339a674f2864' by='example@conference.shakespeare.lit'/> </displayed>
- name: ClassVar[str] = 'displayed'¶
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:mds:displayed:0'¶
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- plugin_attrib: ClassVar[str] = 'displayed'¶
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']