Class MessageClient
java.lang.Object
org.gcube.social_networking.social_networking_client_library.BaseClient
org.gcube.social_networking.social_networking_client_library.MessageClient
Messages client.
- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.gcube.social_networking.socialnetworking.model.beans.MessageInbox>Get received messagesList<org.gcube.social_networking.socialnetworking.model.beans.MessageInbox>Get sent messagesmarkMessageRead(String messageId, boolean read) mark the message read or notwriteMessage(org.gcube.social_networking.socialnetworking.model.beans.MessageInputBean m) Write messageMethods inherited from class org.gcube.social_networking.social_networking_client_library.BaseClient
getServiceEndpoint
-
Constructor Details
-
MessageClient
- Throws:
Exception
-
-
Method Details
-
getSentMessages
public List<org.gcube.social_networking.socialnetworking.model.beans.MessageInbox> getSentMessages()Get sent messages- Returns:
-
getReceivedMessages
public List<org.gcube.social_networking.socialnetworking.model.beans.MessageInbox> getReceivedMessages()Get received messages- Returns:
-
writeMessage
public String writeMessage(org.gcube.social_networking.socialnetworking.model.beans.MessageInputBean m) Write message- Returns:
- message id
-
markMessageRead
mark the message read or not- Parameters:
messageId- the message identifierread- true to set read, false to set unread- Returns:
- the result of the operation
-