public class MessageEvent extends BaseStringEvent
FbBotMillEvent that triggers whenever the users sends a text
message that matches an exact String.caseSensitive, expectedString| Constructor and Description |
|---|
MessageEvent(String expectedMessage)
Instantiates a new MessageEvent.
|
MessageEvent(String expectedMessage,
boolean caseSensitive)
Instantiates a new MessageEvent.
|
| 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, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic MessageEvent(String expectedMessage, boolean caseSensitive)
expectedMessage - the BaseStringEvent.expectedString.caseSensitive - the BaseStringEvent.caseSensitive.public MessageEvent(String expectedMessage)
expectedMessage - 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.