public class ConversationAPI extends BaseAPI
| Constructor and Description |
|---|
ConversationAPI(ResourceFactory resourceFactory) |
| Modifier and Type | Method and Description |
|---|---|
int |
addReply(int conversationId,
String text)
Creates a reply to the conversation.
|
int |
createConversation(String subject,
String text,
List<Integer> participants)
Creates a new conversation with a list of users.
|
int |
createConversation(String subject,
String text,
List<Integer> participants,
Reference reference)
Creates a new conversation with a list of users.
|
Conversation |
getConversation(int conversationId)
Gets the conversation including participants and messages with the the
given id.
|
List<Conversation> |
getConversationsOnObject(Reference object)
Returns a list of all the conversations on the object that the active
user is part of.
|
getResourceFactorypublic ConversationAPI(ResourceFactory resourceFactory)
public int createConversation(String subject, String text, List<Integer> participants)
subject - The subject of the conversationtext - The text of the first message in the conversationparticipants - List of participants in the conversation (not including the
sender)public int createConversation(String subject, String text, List<Integer> participants, Reference reference)
subject - The subject of the conversationtext - The text of the first message in the conversationparticipants - List of participants in the conversation (not including the
sender)reference - The object the conversation should be created on, if anypublic Conversation getConversation(int conversationId)
conversationId - The id of the conversation to getpublic List<Conversation> getConversationsOnObject(Reference object)
object - The object to get conversations onpublic int addReply(int conversationId,
String text)
conversationId - The id of the conversation to reply totext - The text of the replyCopyright © 2014. All Rights Reserved.