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.
9 from sleekxmpp
.xmlstream
import ElementBase
, ET
12 class UserTune(ElementBase
):
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
))