public class AiResponder
extends java.lang.Object
| Constructor and Description |
|---|
AiResponder(SymphonyClient symClient) |
| Modifier and Type | Method and Description |
|---|---|
SymphonyClient |
getSymClient()
Return Symphony client used with responder
|
void |
respond(java.util.Set<AiResponseSequence> responseLists,
java.lang.String streamId)
Respond to stream (all users), based on the values and ids given in the set of responses
|
void |
respondToEachUserWith(java.util.Set<AiResponseSequence> responseLists)
Respond to the user, based on the values and ids given in the set of responses
|
void |
sendMessage(java.lang.String message,
java.lang.Long userID,
SymphonyClient symClient)
Sends a message to a user
|
void |
sendMessage(java.lang.String message,
SymStream stream,
SymphonyClient symClient)
Sends a message to a user
|
void |
sendMessage(SymMessage message,
SymStream stream,
SymphonyClient symClient)
Sends a message to a user
|
void |
sendNoPermission(SymMessage message)
Send a message back to the user, informing them that they do not have the
required permission
|
void |
sendSuggestionMessage(AiLastCommand suggestion,
SymMessage message)
Send a message back to the user, suggesting a command
|
void |
sendUsage(SymMessage message,
MlMessageParser mlMessageParser,
java.util.ArrayList<AiCommand> activeCommands)
Sends the command usage menu back to the user
|
void |
setSymClient(SymphonyClient symClient)
Set symphony client supporting internal calls
|
public AiResponder(SymphonyClient symClient)
public void sendMessage(java.lang.String message,
java.lang.Long userID,
SymphonyClient symClient)
message - the message received from the useruserID - the id of the usersymClient - the org.org.symphonyoss.ai's sym clientpublic void sendMessage(java.lang.String message,
SymStream stream,
SymphonyClient symClient)
message - the message received from the userstream - the message streamsymClient - the org.org.symphonyoss.ai's sym clientpublic void sendMessage(SymMessage message, SymStream stream, SymphonyClient symClient)
message - the message received from the userstream - the message streamsymClient - the org.org.symphonyoss.ai's sym clientpublic void respondToEachUserWith(java.util.Set<AiResponseSequence> responseLists)
responseLists - the set of responsespublic void respond(java.util.Set<AiResponseSequence> responseLists, java.lang.String streamId)
responseLists - the set of responsesstreamId - Stream IDpublic void sendSuggestionMessage(AiLastCommand suggestion, SymMessage message)
suggestion - the suggested commandmessage - the message received from the userpublic void sendUsage(SymMessage message, MlMessageParser mlMessageParser, java.util.ArrayList<AiCommand> activeCommands)
message - the message received from the usermlMessageParser - a parser that contains the input in MLactiveCommands - the active set of commands within the org.org.symphonyoss.ai command listenerpublic void sendNoPermission(SymMessage message)
message - the message received back from the userpublic SymphonyClient getSymClient()
SymphonyClientpublic void setSymClient(SymphonyClient symClient)
symClient - Symphony client