slixmpp/docs/api/plugins/xep_0319.rst

46 lines
954 B
ReStructuredText
Raw Normal View History

2020-12-09 17:09:19 +00:00
2021-01-30 18:01:38 +00:00
XEP-0319: Last User Interaction in Presence
===========================================
2020-12-09 17:09:19 +00:00
.. module:: slixmpp.plugins.xep_0319
.. autoclass:: XEP_0319
:members:
:exclude-members: session_bind, plugin_init, plugin_end
2021-02-25 23:07:47 +00:00
.. _api-0319:
Internal API methods
--------------------
The default API manages an in-memory cache of idle periods.
.. glossary::
set_idle
- **jid**: :class:`~.JID` who has been idling
- **node**: unused
- **ifrom**: unused
- **args**: :class:`datetime`, timestamp of the idle start
Set the idle start for a JID.
get_idle
- **jid**: :class:`~.JID` to get the idle time of
- **node**: unused
- **ifrom**: unused
- **args**: : unused
- **returns**: :class:`datetime`
Get the idle start timestamp for a JID.
2020-12-09 17:09:19 +00:00
Stanza elements
---------------
.. automodule:: slixmpp.plugins.xep_0319.stanza
:members:
:undoc-members: