Source code for pyjabber.plugins.xep_0060.enum from enum import Enum [docs]class NodeAttrib(Enum): NODE = 0 OWNER = 1 NAME = 2 TYPE = 3 MAXITEMS = 4 [docs]class SubscribersAttrib(Enum): NODE = 0 JID = 1 SUBID = 2 SUBSCRIPTION = 3 AFFILIATION = 4 [docs]class Subscription(Enum): NONE = 'none' PENDING = 'pending' UNCONFIGURED = 'unconfigured' SUBSCRIBED = 'subscribed' [docs]class NodeAccess(Enum): OPEN = 0 PRESENCE = 1 ROSTER = 2 AUTHORIZE = 3 WHITELIST = 4 [docs]class Affiliation: OWNER = 'owner' PUBLISHER = 'publisher' MEMBER = 'member' NONE = 'none' OUTCAST = 'outcast'