use of co.aurasphere.botmill.fb.model.outcoming.message.Message in project fb-botmill by BotMill.
the class AttachmentMessageBuilder method build.
/**
* {@inheritDoc} Returns a response containing an {@link Attachment}.
*/
public FbBotMillResponse build(MessageEnvelope envelope) {
User recipient = getRecipient(envelope);
Message message = new AttachmentMessage(attachment);
message.setQuickReplies(quickReplies);
return new FbBotMillMessageResponse(recipient, message);
}
use of co.aurasphere.botmill.fb.model.outcoming.message.Message in project fb-botmill by BotMill.
the class TextMessageBuilder method build.
/**
* {@inheritDoc} Returns a response containing a plain text message.
*/
public FbBotMillResponse build(MessageEnvelope envelope) {
User recipient = getRecipient(envelope);
Message message = new TextMessage(messageText);
message.setQuickReplies(quickReplies);
return new FbBotMillMessageResponse(recipient, message);
}
Aggregations