public class MessageProcessor
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ChatMessage |
createFinalMessage(MessageSentResponse response)
Create a final message for a conversation.
|
ChatMessage |
createTempMessage()
Create a temporary message to be displayed while the message is being send.
|
java.util.List<Attachment> |
getAttachments()
Gets list of attachments to be sent with a message.
|
java.lang.String |
getConversationId()
Conversation id to which the message belongs.
|
MessageToSend |
getMessage()
Get message.
|
java.lang.String |
getSender()
Profile id of the current user to be set as a sender.
|
java.lang.String |
getTempId()
Message id of an temporary message.
|
MessageToSend |
prepareMessageToSend()
Prepare message to be sent through messaging service.
|
void |
preparePostUpload(java.util.List<Attachment> attachments)
Replace temporary attachment parts with final parts with upload details or error message.
|
void |
preparePreUpload()
Add a temporary message part per not uet uploaded attachment.
|
public void preparePreUpload()
public void preparePostUpload(java.util.List<Attachment> attachments)
attachments - List of attachments details.public java.util.List<Attachment> getAttachments()
public MessageToSend getMessage()
prepareMessageToSend() before sending to the server.public MessageToSend prepareMessageToSend()
public ChatMessage createTempMessage()
public ChatMessage createFinalMessage(MessageSentResponse response)
response - Response from sending message call.public java.lang.String getConversationId()
public java.lang.String getTempId()
public java.lang.String getSender()