public class AttachmentController
extends java.lang.Object
| Constructor and Description |
|---|
AttachmentController(Logger log,
int maxPartSize)
Recommended constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MessageProcessor |
createMessageProcessor(MessageToSend message,
java.util.List<Attachment> attachments,
java.lang.String conversationId,
java.lang.String profileId)
Create instance of message processor to handle sending process of a message with attachments.
|
<any> |
uploadAttachments(java.util.List<Attachment> data,
RxComapiClient c)
Create observable to perform attachments upload.
|
public AttachmentController(Logger log,
int maxPartSize)
log - Logger instance.maxPartSize - Maximum size (number of characters) of a single Part data.public <any> uploadAttachments(java.util.List<Attachment> data, RxComapiClient c)
data - List of Attachments to upload.c - Comapi client to acces service APIs.public MessageProcessor createMessageProcessor(MessageToSend message, java.util.List<Attachment> attachments, java.lang.String conversationId, java.lang.String profileId)
message - Message to send.attachments - Attachments to upload with a message.conversationId - Unique conversation id.profileId - User profile id.