File: xep_0153.rst

package info (click to toggle)
slixmpp 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,520 kB
  • sloc: python: 41,715; xml: 1,197; makefile: 120
file content (55 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

XEP-0153: vCard-Based Avatars
=============================

.. module:: slixmpp.plugins.xep_0153

.. autoclass:: XEP_0153
    :members:
    :exclude-members: session_bind, plugin_init, plugin_end

.. _api-0153:

Internal API methods
--------------------

The internal API is used here to maintain an in-memory JID→avatar hash
cache.

.. glossary::

    set_hash
        - **jid**: :class:`~.JID` of whom to retrieve the last activity
        - **node**: unused
        - **ifrom**: unused
        - **args**: ``str``, avatar hash

        Set the avatar hash for a JID.

    reset_hash
        - **jid**: :class:`~.JID` of whom to retrieve the last activity
        - **node**: unused
        - **ifrom**: :class:`~.JID` of the entity requesting the reset.
        - **args**: unused
        - **returns**
          information.

        Reset the avatar hash for a JID. This downloads the vcard and computes
        the hash.

    get_hash
        - **jid**: :class:`~.JID` of whom to retrieve the last activity
        - **node**: unused
        - **ifrom**: unused
        - **args**: unused
        - **returns**: ``Optional[str]``, the avatar hash

        Get the avatar hash for a JID.

Stanza elements
---------------

.. automodule:: slixmpp.plugins.xep_0153.stanza
    :members:
    :undoc-members: