# Slixmpp: The Slick XMPP Library# Copyright (C) 2021 Mathieu Pasquet# This file is part of Slixmpp.# See the file LICENSE for copying permissiofromtypingimport(Iterable,Set,)fromslixmpp.jidimportJIDfromslixmpp.xmlstreamimportElementBase,ET
[docs]classPreferences(ElementBase):"""MAM Preferences payload. .. code-block:: xml <iq type='set' id='juliet3'> <prefs xmlns='urn:xmpp:mam:2' default='roster'> <always> <jid>romeo@montague.lit</jid> </always> <never> <jid>montague@montague.lit</jid> </never> </prefs> </iq> """name='prefs'namespace='urn:xmpp:mam:2'plugin_attrib='mam_prefs'#: Available interfaces:#:#: - ``default``: Default MAM policy (must be one of 'roster', 'always',#: 'never'#: - ``always`` (``List[JID]``): list of JIDs to always store#: conversations with.#: - ``never`` (``List[JID]``): list of JIDs to never store#: conversations with.interfaces={'default','always','never'}sub_interfaces={'always','never'}