tock / ai.tock.bot.connector / ConnectorConfiguration

ConnectorConfiguration

data class ConnectorConfiguration (source)

Configuration parameters used by a ConnectorProvider to create a new Connector instance.

Constructors

<init>

ConnectorConfiguration(connectorId: String, path: String, type: ConnectorType, applicationName: String, baseUrl: String?, ownerConnectorType: ConnectorType? = null, parameters: Map<String, String> = emptyMap())

Configuration parameters used by a ConnectorProvider to create a new Connector instance.

ConnectorConfiguration(connectorId: String, path: String, type: ConnectorType, ownerConnectorType: ConnectorType? = null, parameters: Map<String, String> = emptyMap())

Properties

connectorId

The connector id - unique for a given bot.

val connectorId: String

ownerConnectorType

The underlying connector type. For example, you can have connectorType=rest and ownerConnectorType=messenger.

val ownerConnectorType: ConnectorType?

parameters

Additional parameters for this connector.

val parameters: Map<String, String>

path

The relative REST path of the connector.

val path: String

type

The connector type.

val type: ConnectorType

Functions

getBaseUrl

The base url of the connector.

fun getBaseUrl(): String

getName

The name of application.

fun getName(): String