MessageBuilder

interface MessageBuilder

Builder for preparing new message.

See also

#prepareMessage()

#prepareMessage()

Functions

addMedia
Link copied to clipboard
abstract fun addMedia(inputStream: InputStream, contentType: String, filename: String, uploadListener: MediaUploadListener): Conversation.MessageBuilder
Adds attachment for the new message.
build
Link copied to clipboard
abstract fun build(): Conversation.UnsentMessage
Builds new UnsentMessage.
buildAndSend
Link copied to clipboard
abstract fun buildAndSend(listener: CallbackListener<Message>): CancellationToken
Builds new UnsentMessage and sends it immediately.
setAttributes
Link copied to clipboard
abstract fun setAttributes(attributes: Attributes): Conversation.MessageBuilder
Set new message attributes.
setBody
Link copied to clipboard
abstract fun setBody(body: String): Conversation.MessageBuilder
Set new message body.
setEmailBody
Link copied to clipboard
abstract fun setEmailBody(emailBody: String, contentType: String): Conversation.MessageBuilder
abstract fun setEmailBody(inputStream: InputStream, contentType: String, uploadListener: MediaUploadListener): Conversation.MessageBuilder
Set new message email body.
setEmailHistory
Link copied to clipboard
abstract fun setEmailHistory(emailHistory: String, contentType: String): Conversation.MessageBuilder
abstract fun setEmailHistory(inputStream: InputStream, contentType: String, uploadListener: MediaUploadListener): Conversation.MessageBuilder
Set new message email history.
setSubject
Link copied to clipboard
abstract fun setSubject(subject: String): Conversation.MessageBuilder
Set new message subject.