tock / ai.tock.bot.connector.web / WebConnector

# WebConnector

`class WebConnector : ConnectorBase, OrchestrationConnector` (source)

### Properties

#### applicationId | `val applicationId: String`
#### path | `val path: String`

### Functions

#### addSuggestions | Returns a ConnectorMessage with the specified list of suggestions. If the connector does not support suggestions, returns null. `fun addSuggestions(text: CharSequence, suggestions: List<CharSequence>): BotBus.() -> ConnectorMessage?` Updates a ConnectorMessage with the specified list of suggestions. Default returns message unmodified. `fun addSuggestions(message: ConnectorMessage, suggestions: List<CharSequence>): BotBus.() -> ConnectorMessage?`
#### getOrchestrationHandlers | `fun getOrchestrationHandlers(): OrchestrationHandlers`
#### loadProfile | Load user preferences - default implementation returns null. `fun loadProfile(callback: ConnectorCallback, userId: PlayerId): UserPreferences`
#### register | Registers the connector for the specified controller. `fun register(controller: ConnectorController): Unit`
#### send | Send an event with this connector for the specified delay. `fun send(event: Event, callback: ConnectorCallback, delayInMs: Long): Unit`
#### toConnectorMessage | Maps a MediaMessage into a ConnectorMessage. If toConnectorMessage returns an empty list, the mapping is not supported for this connector. Default returns an empty list. `fun toConnectorMessage(message: MediaMessage): BotBus.() -> List<ConnectorMessage>`