StoryImageQuizComponent

data class StoryImageQuizComponent(id: String, title: String?, options: List<String>?, rightAnswerIndex: Int?, selectedOptionIndex: Int, customPayload: String?) : StoryComponent

This data class represents the ImageQuiz component.

Constructors

StoryImageQuizComponent
Link copied to clipboard
fun StoryImageQuizComponent(id: String, title: String?, options: List<String>?, rightAnswerIndex: Int?, selectedOptionIndex: Int, customPayload: String?)

Properties

customPayload
Link copied to clipboard
val customPayload: String?

Custom payload for this image quiz if exists *

id
Link copied to clipboard
open override val id: String

Id of the interactive component

options
Link copied to clipboard
val options: List<String>?

List of texts of the options if exists, otherwise list of image urls

rightAnswerIndex
Link copied to clipboard
val rightAnswerIndex: Int?

Index of the right answer if exists

selectedOptionIndex
Link copied to clipboard
val selectedOptionIndex: Int

Option index that the user selected

title
Link copied to clipboard
val title: String?

Title of the image quiz if exists

type
Link copied to clipboard
val type: StoryComponentType

Type of the interactive component