public abstract class FbBotMillMockableBuilder extends FbBotMillResponseBuilder
FbBotMillResponseBuilder that can be populated
with a mock recipient for testing.| Constructor and Description |
|---|
FbBotMillMockableBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected User |
getRecipient(MessageEnvelope envelope)
Returns the recipient of the envelope.
|
String |
toString() |
eventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validateprotected User getRecipient(MessageEnvelope envelope)
FbBotMillMockMediator.isMockEnabled() evaluates to true returns a
mock recipient with ID of
FbBotMillMockMediator.getFacebookMockId() , otherwise gets the
recipient as the sender of the received envelope to reply.envelope - the incoming envelope.public String toString()
toString in class FbBotMillResponseBuilderCopyright © 2017 BotMill. All rights reserved.