public class PostbackEvent extends BaseStringEvent
FbBotMillEvent that triggers whenever the users sends a a payload
back by pressing a button or similar that matches an exact String.caseSensitive, expectedString| Constructor and Description |
|---|
PostbackEvent(String expectedPayload)
Instantiates a new PostbackEvent.
|
PostbackEvent(String expectedPayload,
boolean caseSensitive)
Instantiates a new PostbackEvent.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
boolean |
verifyEventCondition(MessageEnvelope envelope)
A method which evaluates whether the event is verified or not.
|
equals, hashCode, verifyStringMatcheventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic PostbackEvent(String expectedPayload, boolean caseSensitive)
expectedPayload - the BaseStringEvent.expectedString.caseSensitive - the BaseStringEvent.caseSensitive.public PostbackEvent(String expectedPayload)
expectedPayload - the BaseStringEvent.expectedString.public final boolean verifyEventCondition(MessageEnvelope envelope)
FbBotMillEventenvelope - the callback message.public String toString()
toString in class BaseStringEventCopyright © 2017 BotMill. All rights reserved.