public abstract class BasePatternEvent extends FbBotMillBean implements FbBotMillEvent
FbBotMillEvent that triggers when a pattern is
matched.| Modifier and Type | Field and Description |
|---|---|
Pattern |
expectedPattern
The expected pattern to match in order to trigger this event.
|
| Modifier | Constructor and Description |
|---|---|
protected |
BasePatternEvent(Pattern expectedPattern)
Instantiates a new BasePatternEvent.
|
protected |
BasePatternEvent(String expectedPattern)
Instantiates a new BasePatternEvent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
protected boolean |
verifyPatternMatch(String text)
Verify pattern match.
|
eventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitverifyEventConditionpublic Pattern expectedPattern
protected BasePatternEvent(Pattern expectedPattern)
expectedPattern - the expectedPattern.protected BasePatternEvent(String expectedPattern)
expectedPattern - the expectedPattern.protected boolean verifyPatternMatch(String text)
text - the string that we match against the expectedPattern
object.public String toString()
toString in class FbBotMillBeanCopyright © 2017 BotMill. All rights reserved.