summaryrefslogtreecommitdiff
path: root/docs/api/plugins/xep_0319.rst
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-02-14 12:03:14 +0100
committermathieui <mathieui@mathieui.net>2021-02-26 00:08:56 +0100
commit2fed9f9ad26bc90b18cdcde28ca18a0c17c9ce55 (patch)
treee41ac38e0df53bdc0791f82fa2da574f230143b7 /docs/api/plugins/xep_0319.rst
parent9947d3db85e98a44a495f749d96b8632a10bde8d (diff)
downloadslixmpp-2fed9f9ad26bc90b18cdcde28ca18a0c17c9ce55.tar.gz
slixmpp-2fed9f9ad26bc90b18cdcde28ca18a0c17c9ce55.tar.bz2
slixmpp-2fed9f9ad26bc90b18cdcde28ca18a0c17c9ce55.tar.xz
slixmpp-2fed9f9ad26bc90b18cdcde28ca18a0c17c9ce55.zip
XEP-0319: API changes
- ``idle`` and ``active`` are now coroutines.
Diffstat (limited to 'docs/api/plugins/xep_0319.rst')
-rw-r--r--docs/api/plugins/xep_0319.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/api/plugins/xep_0319.rst b/docs/api/plugins/xep_0319.rst
index a3ab9d28..c89cea6f 100644
--- a/docs/api/plugins/xep_0319.rst
+++ b/docs/api/plugins/xep_0319.rst
@@ -8,6 +8,30 @@ XEP-0319: Last User Interaction in Presence
:members:
:exclude-members: session_bind, plugin_init, plugin_end
+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.
+
Stanza elements
---------------