public class ActionFrame extends Object
FbBotMillEvent and the AutoReply to
it.| Constructor and Description |
|---|
ActionFrame(FbBotMillEvent event,
AutoReply... replies)
Instantiates a new action frame with multiple / collection replies.
|
ActionFrame(FbBotMillEvent event,
AutoReply reply)
Instantiates a new action frame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterReply(MessageEnvelope envelope)
Convenience method executed after the reply is sent to the user.
|
void |
beforeReply(MessageEnvelope envelope)
Convenience method executed before the reply is sent to the user.
|
boolean |
equals(Object obj) |
AutoReply[] |
getReplies()
Gets the replies.
|
AutoReply |
getReply()
Gets the reply.
|
int |
hashCode() |
boolean |
process(MessageEnvelope envelope)
Executes the reply if the event is triggered.
|
boolean |
processMultipleReply(MessageEnvelope envelope)
Executes multiple replies when multiple autoreply is set.
|
String |
toString() |
public ActionFrame(FbBotMillEvent event, AutoReply reply)
public ActionFrame(FbBotMillEvent event, AutoReply... replies)
public AutoReply getReply()
public AutoReply[] getReplies()
public boolean process(MessageEnvelope envelope)
envelope - the incoming message.public boolean processMultipleReply(MessageEnvelope envelope)
envelope - the incoming message.public void beforeReply(MessageEnvelope envelope)
envelope - the incoming message.public void afterReply(MessageEnvelope envelope)
envelope - the incoming message.Copyright © 2017 BotMill. All rights reserved.