-
- 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 BooleanpersistProfileLoadedprivate 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 final StringgetApplicationId()final StringgetPath()final StringgetOutToken1()final StringgetOutToken2()final StringgetOutToken3()final SlackClientgetClient()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)-
Methods inherited from class ai.tock.bot.connector.ConnectorBase
getConnectorType, getSupportedFeatures, toString -
Methods inherited from class ai.tock.bot.connector.Connector
canHandleMessageFor, getPersistProfileLoaded, hasFeature, loadProfile, notify, refreshProfile, unregister -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getApplicationId
final String getApplicationId()
-
getOutToken1
final String getOutToken1()
-
getOutToken2
final String getOutToken2()
-
getOutToken3
final String getOutToken3()
-
getClient
final SlackClient getClient()
-
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)
-
-
-
-