tock / ai.tock.bot.connector.alexa / AlexaTockMapper

# AlexaTockMapper

`open class AlexaTockMapper` (source)

An Alexa model to Tock model mapper. Provided via addAlexaConnector.alexaTockMapper parameter.

### Constructors

#### <init> | An Alexa model to Tock model mapper. Provided via addAlexaConnector.alexaTockMapper parameter. `AlexaTockMapper(applicationId: String)`

### Properties

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

### Functions

#### alexaEntityToTockEntity | Returns a Tock entity from an Alexa slot. `open fun alexaEntityToTockEntity(request: IntentRequest, intent: String, slot: String, botDefinition: BotDefinition): Entity?`
#### alexaEntityToTockEntityValue | Returns a Tock NlpEntityValue from an Alexa slot. `open fun alexaEntityToTockEntityValue(request: IntentRequest, intent: String, slot: Slot, botDefinition: BotDefinition, index: Int): NlpEntityValue`
#### alexaIntentToTockIntent | Returns a Tock intent from an Alexa intent. `open fun alexaIntentToTockIntent(request: IntentRequest, botDefinition: BotDefinition): String`
#### getSlots | Gets slots from the intent request. `open fun getSlots(request: IntentRequest): Map<String, Slot>?`
#### toEndSessionEvent | Returns a EndSessionEvent from an Alexa SessionEndedRequest. `open fun toEndSessionEvent(requestEnvelope: SpeechletRequestEnvelope<SessionEndedRequest>): EndSessionEvent`
#### toEvent | Returns an Event from an Alexa IntentRequest. `open fun toEvent(userId: String, request: IntentRequest, botDefinition: BotDefinition): Event`
#### toStartSessionEvent | Returns a StartSessionEvent from an Alexa SessionStartedRequest. `open fun toStartSessionEvent(requestEnvelope: SpeechletRequestEnvelope<SessionStartedRequest>): StartSessionEvent`