public final class Mood extends Object
<mood/> element in the http://jabber.org/protocol/mood namespace.
This specification defines a payload format for communicating information about user moods, such as whether a person is currently happy, sad, angy, or annoyed. The payload format is typically transported using the personal eventing protocol, a profile of XMPP publish-subscribe specified in XEP-0163.
| Modifier and Type | Class and Description |
|---|---|
static class |
Mood.Value
Defines a mood value.
|
| Constructor and Description |
|---|
Mood(Mood.Value value)
Creates a mood with a specific value.
|
Mood(Mood.Value value,
String text)
Creates a mood with a specific value and a text.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Gets a natural-language description of, or reason for, the mood.
|
Mood.Value |
getValue()
Gets the mood value.
|
public Mood(Mood.Value value)
value - The mood value.public Mood(Mood.Value value, String text)
value - The mood value.text - A natural-language description of, or reason for, the mood.public String getText()
public Mood.Value getValue()
Copyright © 2014 XMPP.rocks. All rights reserved.