MessageBuilder

interface MessageBuilder

Builder for preparing new message.

See also

Functions

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