tock / ai.tock.bot.admin.story.dump / ScriptAnswerConfigurationDump

# ScriptAnswerConfigurationDump

`data class ScriptAnswerConfigurationDump : AnswerConfigurationDump` (source)

An AnswerConfigurationDump defined by a Kotlin script.

### Constructors

#### <init> | `ScriptAnswerConfigurationDump(conf: ScriptAnswerConfiguration)` An AnswerConfigurationDump defined by a Kotlin script. `ScriptAnswerConfigurationDump(scriptVersions: List<ScriptAnswerVersionedConfigurationDump>, current: ScriptAnswerVersionedConfigurationDump = scriptVersions.maxByOrNull { it.date } ?: error("no script version found"))`

### Properties

#### current | `val current: ScriptAnswerVersionedConfigurationDump`
#### scriptVersions | `val scriptVersions: List<ScriptAnswerVersionedConfigurationDump>`

### Functions

#### toAnswer | `fun toAnswer(currentType: AnswerConfigurationType, controller: StoryDefinitionConfigurationDumpController): AnswerConfiguration`