public class FbBotMillMockMediator extends Object
| Constructor and Description |
|---|
FbBotMillMockMediator(String facebookMockId,
co.aurasphere.botmill.core.BotDefinition... botDefinitions)
Constructor that registers a mocked page-scoped user ID as a recipient
and a list of
BotDefinition. |
FbBotMillMockMediator(String facebookMockId,
Class<? extends co.aurasphere.botmill.core.BotDefinition>... botDefinitions)
Constructor that registers a mocked page-scoped user ID as a recipient
and instantiates and registers a list of
BotDefinition classes. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
forward(MessageEnvelope envelope)
Forwards an envelope to the registered bots.
|
String |
getFacebookMockId()
Gets the
facebookMockId. |
int |
hashCode() |
void |
interactiveTest()
Starts an interactive test that simulates the behavior of the bot
according to the chat inputs.
|
void |
sendPayload(String payload)
Sends a payload to all the registered bots.
|
void |
sendQuickReplyPayload(String payload)
Sends a quickreply to all the registered bots.
|
void |
sendTextMessage(String message)
Sends a text message to all the registered bots.
|
String |
toString() |
public FbBotMillMockMediator(String facebookMockId, co.aurasphere.botmill.core.BotDefinition... botDefinitions)
BotDefinition.facebookMockId - the facebookMockId.botDefinitions - a list of BotDefinition to register.public FbBotMillMockMediator(String facebookMockId, Class<? extends co.aurasphere.botmill.core.BotDefinition>... botDefinitions)
BotDefinition classes.facebookMockId - the facebookMockId.botDefinitions - a list of classes implementing BotDefinition.public void sendTextMessage(String message)
message - the message to send.public void sendPayload(String payload)
payload - the payload to send.public void sendQuickReplyPayload(String payload)
payload - the payload to send.public void forward(MessageEnvelope envelope)
envelope - the envelope to forward.public void interactiveTest()
public String getFacebookMockId()
facebookMockId.facebookMockId.Copyright © 2017 BotMill. All rights reserved.