public class Mood extends Object
Mood describes the mood of the user when the activity was performed. This is usually collected via an extra field in the user interface used to perform the activity. For the purpose of this schema, a mood is a freeform, short mood keyword or phrase along with an optional mood icon image.
Moods are included via a mood element in the namespace http://activitystrea.ms/context/.
The content of the mood element is the mood keyword or phrase.
The mood element may have an optional icon attribute which contains the URL of a mood icon image. The mood icon image SHOULD be small and appropriate to be displayed alongside the mood keyword at a normal text size.
Constructor and Description |
---|
Mood() |
Modifier and Type | Method and Description |
---|---|
String |
getIconUrl()
Get the value of iconUrl
|
String |
getText()
Get the value of text
|
void |
setIconUrl(String newiconUrl)
Set the value of iconUrl
|
void |
setText(String newtext)
Set the value of text
|
public void setIconUrl(String newiconUrl)
newiconUrl
- new value of iconUrlpublic String getIconUrl()
public void setText(String newtext)
newtext
- new value of textpublic String getText()
Copyright © 2016. All rights reserved.