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