XEP 0108¶
-
class
slixmpp.plugins.xep_0108.
XEP_0108
(xmpp, config=None)[source]¶ XEP-0108: User Activity
-
publish_activity
(general, specific=None, text=None, options=None, ifrom=None, callback=None, timeout=None, timeout_callback=None)[source]¶ Publish the user’s current activity.
- Parameters
general – The required general category of the activity.
specific – Optional specific activity being done as part of the general category.
text – Optional natural-language description or reason for the activity.
options – Optional form of publish options.
-
stanza
= <module 'slixmpp.plugins.xep_0108.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0108/stanza.py'>¶
-
Stanza elements¶
Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp.
See the file LICENSE for copying permission.
-
class
slixmpp.plugins.xep_0108.stanza.
UserActivity
(xml=None, parent=None)[source]¶ -
-
general
= {'doing_chores', 'drinking', 'eating', 'exercising', 'grooming', 'having_appointment', 'inactive', 'relaxing', 'talking', 'traveling', 'undefined', 'working'}¶
-
interfaces
= {'text', 'value'}¶
-
name
= 'activity'¶
-
namespace
= 'http://jabber.org/protocol/activity'¶
-
plugin_attrib
= 'activity'¶
-
specific
= {'at_the_spa', 'brushing_teeth', 'buying_groceries', 'cleaning', 'coding', 'commuting', 'cooking', 'cycling', 'dancing', 'day_off', 'doing_maintenance', 'doing_the_dishes', 'doing_the_laundry', 'driving', 'fishing', 'gaming', 'gardening', 'getting_a_haircut', 'going_out', 'hanging_out', 'having_a_beer', 'having_a_snack', 'having_breakfast', 'having_coffee', 'having_dinner', 'having_lunch', 'having_tea', 'hiding', 'hiking', 'in_a_car', 'in_a_meeting', 'in_real_life', 'jogging', 'on_a_bus', 'on_a_plane', 'on_a_train', 'on_a_trip', 'on_the_phone', 'on_vacation', 'on_video_phone', 'other', 'partying', 'playing_sports', 'praying', 'reading', 'rehearsing', 'running', 'running_an_errand', 'scheduled_holiday', 'shaving', 'shopping', 'skiing', 'sleeping', 'smoking', 'socializing', 'studying', 'sunbathing', 'swimming', 'taking_a_bath', 'taking_a_shower', 'thinking', 'walking', 'walking_the_dog', 'watching_a_movie', 'watching_tv', 'working_out', 'writing'}¶
-
sub_interfaces
= {'text'}¶
-