Bump to 1.3.1
[slixmpp.git] / sleekxmpp / plugins / xep_0118 / stanza.py
blob3fdab284c6aac5529d1031965ffb1a36f6531919
1 """
2 SleekXMPP: The Sleek XMPP Library
3 Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout
4 This file is part of SleekXMPP.
6 See the file LICENSE for copying permission.
7 """
9 from sleekxmpp.xmlstream import ElementBase, ET
12 class UserTune(ElementBase):
14 name = 'tune'
15 namespace = 'http://jabber.org/protocol/tune'
16 plugin_attrib = 'tune'
17 interfaces = set(['artist', 'length', 'rating', 'source',
18 'title', 'track', 'uri'])
19 sub_interfaces = interfaces
21 def set_length(self, value):
22 self._set_sub_text('length', str(value))
24 def set_rating(self, value):
25 self._set_sub_text('rating', str(value))