public class MessagesService extends Service
| Constructor and Description |
|---|
MessagesService() |
| Modifier and Type | Method and Description |
|---|---|
static Request |
createMessage(Message message)
Returns a new Request instance which, when submitted, generates a new
message for the current application associated with the current viewer.
|
static Request |
createMessageCollection(MessageCollection messageCollection)
Returns a new Request instance which, when submitted, generates a new
messageCollection for the current application associated with the current viewer.
|
static Request |
getMessages()
Returns a new Request instance which, when submitted, fetches the current
viewer's activities previously generated by the current application and
makes this data available as a List of Message objects.
|
static Request |
getMessages(String guid)
Returns a new Request instance which, when submitted, fetches the specified
user's activities previously generated by the current application and makes
this data available as a List of Message objects.
|
public static Request getMessages()
Messagepublic static Request getMessages(String guid)
guid - OpenSocial ID of the user whose messages are to be fetchedMessagepublic static Request createMessage(Message message)
message - Activity object specifying the activity parameters to pass into
the request; typically, title, titleId, and body are setMessagepublic static Request createMessageCollection(MessageCollection messageCollection)
messageCollection - MessageCollection object specifying the activity parameters to pass into
the request; only title is setMessageCollectionCopyright © 2012. All Rights Reserved.