public class MessagePatternEvent extends BasePatternEvent
FbBotMillEvent that triggers whenever the users sends a text
message that matches a Pattern.expectedPattern| Constructor and Description |
|---|
MessagePatternEvent(Pattern expectedPattern)
Instantiates a new MessagePatternEvent.
|
MessagePatternEvent(String expectedPattern)
Instantiates a new MessagePatternEvent.
|
| 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, verifyPatternMatcheventKind, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic MessagePatternEvent(Pattern expectedPattern)
expectedPattern - the BasePatternEvent.expectedPattern.public MessagePatternEvent(String expectedPattern)
expectedPattern - the BasePatternEvent.expectedPattern.public final boolean verifyEventCondition(MessageEnvelope envelope)
FbBotMillEventenvelope - the callback message.public String toString()
toString in class BasePatternEventCopyright © 2017 BotMill. All rights reserved.