-
- All Implemented Interfaces:
-
ai.tock.bot.connector.Connector
public final class SlackConnector extends ConnectorBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classSlackConnector.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringapplicationIdprivate final Stringpathprivate final StringoutToken1private final StringoutToken2private final StringoutToken3private final SlackClientclientprivate final ConnectorTypeconnectorTypeprivate final Set<ConnectorFeature>supportedFeatures
-
Constructor Summary
Constructors Constructor Description SlackConnector(String applicationId, String path, String outToken1, String outToken2, String outToken3, SlackClient client)
-
Method Summary
Modifier and Type Method Description Unitregister(ConnectorController controller)Unitsend(Event event, ConnectorCallback callback, Long delayInMs)Function1<BotBus, ConnectorMessage>addSuggestions(CharSequence text, List<CharSequence> suggestions)Function1<BotBus, ConnectorMessage>addSuggestions(ConnectorMessage message, List<CharSequence> suggestions)Function1<BotBus, List<ConnectorMessage>>toConnectorMessage(MediaMessage message)final StringgetApplicationId()final StringgetPath()final StringgetOutToken1()final StringgetOutToken2()final StringgetOutToken3()final SlackClientgetClient()ConnectorTypegetConnectorType()Set<ConnectorFeature>getSupportedFeatures()-
Methods inherited from class ai.tock.bot.connector.Connector
equals, hashCode -
Methods inherited from class ai.tock.bot.connector.ConnectorBase
hasFeature, loadProfile, notify, refreshProfile, unregister -
Methods inherited from class ai.tock.bot.connector.slack.SlackConnector
toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
addSuggestions
Function1<BotBus, ConnectorMessage> addSuggestions(CharSequence text, List<CharSequence> suggestions)
-
addSuggestions
Function1<BotBus, ConnectorMessage> addSuggestions(ConnectorMessage message, List<CharSequence> suggestions)
-
toConnectorMessage
Function1<BotBus, List<ConnectorMessage>> toConnectorMessage(MediaMessage message)
-
getApplicationId
final String getApplicationId()
-
getOutToken1
final String getOutToken1()
-
getOutToken2
final String getOutToken2()
-
getOutToken3
final String getOutToken3()
-
getClient
final SlackClient getClient()
-
getConnectorType
ConnectorType getConnectorType()
-
getSupportedFeatures
Set<ConnectorFeature> getSupportedFeatures()
-
-
-
-