public class ChatServiceAccessor.MessagingService
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addParticipants(java.lang.String conversationId,
java.util.List<Participant> participants,
<any> callback)
Add a list of participants to a conversation.
|
void |
createConversation(ConversationCreate request,
<any> callback)
Create a conversation.
|
void |
deleteConversation(java.lang.String conversationId,
java.lang.String eTag,
<any> callback)
Create a conversation.
|
void |
getParticipants(java.lang.String conversationId,
<any> callback)
Gets conversation participants.
|
void |
getPreviousMessages(java.lang.String conversationId,
<any> callback)
Queries the next message page in conversation and delivers messages to store implementation.
|
void |
isTyping(java.lang.String conversationId,
boolean isTyping,
<any> callback)
Sends participant is typing in conversation event.
|
void |
markMessagesAsRead(java.lang.String conversationId,
java.util.List<java.lang.String> messageIds,
<any> callback)
Sets statuses for sets of messages to 'read'.
|
void |
removeParticipants(java.lang.String conversationId,
java.util.List<java.lang.String> ids,
<any> callback)
Remove list of participants from a conversation.
|
void |
sendMessage(java.lang.String conversationId,
MessageToSend message,
<any> callback)
Send message to the conversation.
|
void |
sendMessage(java.lang.String conversationId,
java.lang.String body,
<any> callback)
Send message to the chanel.
|
void |
synchroniseConversation(java.lang.String conversationId,
<any> callback)
Check for missing messages and other events and update local store.
|
void |
synchroniseStore(<any> callback)
Check for missing messages and other events and update local store.
|
void |
updateConversation(java.lang.String conversationId,
java.lang.String eTag,
ConversationUpdate request,
<any> callback)
Update a conversation.
|
public void createConversation(ConversationCreate request,
<any> callback)
request - Request with conversation details to create.callback - Callback with the result.public void deleteConversation(java.lang.String conversationId,
java.lang.String eTag,
<any> callback)
conversationId - ID of a conversation to delete.callback - Callback with the result.public void updateConversation(java.lang.String conversationId,
java.lang.String eTag,
ConversationUpdate request,
<any> callback)
conversationId - ID of a conversation to update.request - Request with conversation details to update.callback - Callback with the result.public void getParticipants(java.lang.String conversationId,
<any> callback)
conversationId - ID of a conversation to query participant list.callback - Callback with the result.public void removeParticipants(java.lang.String conversationId,
java.util.List<java.lang.String> ids,
<any> callback)
conversationId - ID of a conversation to delete.ids - List of participant ids to be removed.callback - Callback with the result.public void addParticipants(java.lang.String conversationId,
java.util.List<Participant> participants,
<any> callback)
conversationId - ID of a conversation to update.participants - New conversation participants details.callback - Callback with the result.public void sendMessage(java.lang.String conversationId,
MessageToSend message,
<any> callback)
conversationId - ID of a conversation to send a message to.message - Message to be send.callback - Callback with the result.public void sendMessage(java.lang.String conversationId,
java.lang.String body,
<any> callback)
conversationId - ID of a conversation to send a message to.body - Message body to be send.callback - Callback with the result.public void markMessagesAsRead(java.lang.String conversationId,
java.util.List<java.lang.String> messageIds,
<any> callback)
conversationId - ID of a conversation to modify.messageIds - List of message ids for which the status should be updated.callback - Callback with the result.public void getPreviousMessages(java.lang.String conversationId,
<any> callback)
conversationId - ID of a conversation to query messages in.callback - Callback with the result.public void synchroniseStore(<any> callback)
callback - Callback with the result.public void synchroniseConversation(java.lang.String conversationId,
<any> callback)
conversationId - Unique conversationId.callback - Callback with the result.public void isTyping(java.lang.String conversationId,
boolean isTyping,
<any> callback)
conversationId - ID of a conversation in which participant is typing a message.isTyping - True if user started typing, false if he finished typing.callback - Callback with the result.