public abstract class BaseStringEvent extends FbBotMillBean implements FbBotMillEvent
FbBotMillEvent that triggers when an exact text is
matched, case sensitive or not.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
caseSensitive
Whether the match should be case sensitive or not.
|
protected String |
expectedString
The text to be matched in order to trigger this event.
|
| Constructor and Description |
|---|
BaseStringEvent(String expectedString)
Instantiates a new BaseStringEvent.
|
BaseStringEvent(String expectedString,
boolean caseSensitive)
Instantiates a new BaseStringEvent.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
protected boolean |
verifyStringMatch(String text)
Verify string match.
|
eventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitverifyEventConditionprotected String expectedString
protected boolean caseSensitive
public BaseStringEvent(String expectedString, boolean caseSensitive)
expectedString - the expectedString.caseSensitive - the caseSensitive.public BaseStringEvent(String expectedString)
expectedString - the expectedString.protected boolean verifyStringMatch(String text)
text - the string used to check if it matches the event string.public String toString()
toString in class FbBotMillBeanCopyright © 2017 BotMill. All rights reserved.