User mood.

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

Instance Variable value The mood value.
Instance Variable text The optional natural-language description of, or reason for the mood.
Method __init__ Undocumented
Class Method fromXml Get a Mood instance from an XML representation.
value =
The mood value.
text =
The optional natural-language description of, or reason for the mood.
def __init__(self, value, text=None): (source)
Undocumented
@classmethod
def fromXml(self, element): (source)

Get a Mood instance from an XML representation.

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

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