public class StatusMoodsService extends Service
| Constructor and Description |
|---|
StatusMoodsService() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
getFriendStatuses(String guid)
Returns a new Request instance which, when submitted, fetches the status
and mood of all of the specified user's friends and makes this data
available as a List of StatusMood objects.
|
static Request |
getFriendStatusHistories()
Returns a new Request instance which, when submitted, fetches the previous
statuses and moods for all of the current viewer's friends and makes this
data available as a List of StatusMood objects.
|
static Request |
getFriendStatusHistory(String friendId)
Returns a new Request instance which, when submitted, fetches the previous
statuses and moods for the specified friend and makes this data available
as a List of StatusMood objects.
|
static Request |
getStatus()
Returns a new Request instance which, when submitted, fetches the current
viewer's status and mood and makes this data available as a StatusMood
object.
|
static Request |
getStatus(String guid)
Returns a new Request instance which, when submitted, fetches the
specified user's status and mood and makes this data available as a
StatusMood object.
|
static Request |
getStatusHistory()
Returns a new Request instance which, when submitted, fetches the current
viewer's previous statuses and moods and makes this data available as a
List of StatusMood objects.
|
static Request |
getSupportedMood(long moodId)
Returns a new Request instance which, when submitted, fetches the
specified mood and makes this data available as a StatusMood object.
|
static Request |
getSupportedMoods()
Returns a new Request instance which, when submitted, fetches all moods
supported by and available on MySpace and makes this data available as a
List of StatusMood objects.
|
static Request |
updateStatus(StatusMood statusMood)
Returns a new Request instance which, when submitted, updates the current
viewer's status and/or mood.
|
public static Request getStatus()
StatusMoodpublic static Request getStatus(String guid)
guid - OpenSocial ID of the user whose status is to be fetchedStatusMoodpublic static Request getFriendStatuses(String guid)
guid - OpenSocial ID of the user whose friends' statuses and moods
are to be fetchedStatusMoodpublic static Request getStatusHistory()
StatusMoodpublic static Request getFriendStatusHistories()
StatusMoodpublic static Request getFriendStatusHistory(String friendId)
friendId - OpenSocial ID of the current viewer's friend whose
previous statuses/moods are to be fetchedStatusMoodpublic static Request getSupportedMoods()
StatusMoodpublic static Request getSupportedMood(long moodId)
moodId - ID of mood to fetchStatusMoodpublic static Request updateStatus(StatusMood statusMood)
statusMood - StatusMood object specifying the status and/or mood
parameters to pass into the request; typically, status
and moodId are setCopyright © 2012. All Rights Reserved.