public class Messages extends Object
Modifier and Type | Method and Description |
---|---|
Results<MessageInfo> |
get(int start,
int limit) |
MessageInfo |
get(long id) |
int |
getNewMessageCount(Account account) |
int |
markMessageAsRead(long id)
Marks a message as read and returns the number of unread messages
|
boolean |
send(MessageInfo info)
Sends message contained in the MessageInfo to the specified recipients.
|
public Messages(String userId)
public int markMessageAsRead(long id)
id
- identifier for message to be marked as readpublic boolean send(MessageInfo info)
info
- details of message including recipient(s)public Results<MessageInfo> get(int start, int limit)
public MessageInfo get(long id)
public int getNewMessageCount(Account account)
Copyright © 2017. All rights reserved.