User tune.

This represents a user's mood, as defined in XEP-0118.

Instance Variable artist The artist or performer of the song or piece. (type: unicode)
Instance Variable length The duration of the song or piece in seconds. (type: int)
Instance Variable source The collection (e.g. album) or other source. (type: unicode)
Instance Variable title The title of the song or piece (type: unicode)
Instance Variable track A unique identifier for the tune; e.g. the track number within the collection or the specific URI for the object. (type: unicode)
Instance Variable uri A URI pointing to information about the song, collection, or artist. (type: str)
Class Method fromXml Get a Tune instance from an XML representation.
artist =
The artist or performer of the song or piece. (type: unicode)
length =
The duration of the song or piece in seconds. (type: int)
source =
The collection (e.g. album) or other source. (type: unicode)
title =
The title of the song or piece (type: unicode)
track =
A unique identifier for the tune; e.g. the track number within the collection or the specific URI for the object. (type: unicode)
uri =
A URI pointing to information about the song, collection, or artist. (type: str)
@classmethod
def fromXml(self, element): (source)

Get a Tune instance from an XML representation.

This class method parses the given XML document into a Tune instances.

ParameterselementThe XML tune document. (type: object providing IElement)
ReturnsA Tune instance or None if element was not a tune document.
API Documentation for wokkel, generated by pydoctor at 2018-12-06 14:45:46.