public abstract class AutoReply extends FbBotMillBean implements Reply
FbBotMillEvent in order to handle an Facebook's
Messenger Platform callback automatically, using the delegation design
pattern.| Constructor and Description |
|---|
AutoReply() |
| Modifier and Type | Method and Description |
|---|---|
abstract FbBotMillResponse |
createResponse(MessageEnvelope envelope)
Method which defines the response to send back as a response to the
current message.
|
void |
reply(MessageEnvelope envelope)
Method which defines the reply flow.
|
String |
toString() |
eventKind, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic void reply(MessageEnvelope envelope)
envelope - the current callback messagepublic abstract FbBotMillResponse createResponse(MessageEnvelope envelope)
ReplycreateResponse in interface Replyenvelope - the current message.FbBotMillResponse which contains the response to the
current message.public String toString()
toString in class FbBotMillBeanCopyright © 2017 BotMill. All rights reserved.