Package io.constructor.data.model.quiz

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizConversionRequestBody(    @Json(name = "quiz_id") val quizId: String,     @Json(name = "quiz_version_id") val quizVersionId: String,     @Json(name = "quiz_session_id") val quizSessionId: String,     @Json(name = "display_name") val displayName: String?,     @Json(name = "type") val type: String?,     @Json(name = "is_custom_type") val isCustomType: Boolean?,     @Json(name = "item_id") val itemId: String,     @Json(name = "item_name") val itemName: String?,     @Json(name = "variation_id") val variationId: String?,     @Json(name = "revenue") val Revenue: String?,     @Json(name = "c") val c: String,     @Json(name = "i") val i: String,     @Json(name = "s") val s: Int,     @Json(name = "key") val key: String,     @Json(name = "ui") val ui: String?,     @Json(name = "us") val us: List<String?>,     @Json(name = "analytics_tags") val analyticsTags: Map<String, String>?,     @Json(name = "beacon") val beacon: Boolean?,     @Json(name = "section") val section: String?,     @Json(name = "_dt") val _dt: Long?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizImages(    @Json(name = "primary_url") val primaryUrl: String?,     @Json(name = "primary_alt") val primaryAlt: String?,     @Json(name = "secondary_url") val secondaryUrl: String?,     @Json(name = "secondary_alt") val secondaryAlt: String?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizOption(    @Json(name = "id") val id: Int?,     @Json(name = "value") val value: String?,     @Json(name = "attribute") val attribute: QuizOptionAttribute?,     @Json(name = "images") val images: QuizImages?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
class QuizOptionAttribute(@Json(name = "name") val name: String?, @Json(name = "value") val value: String?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizQuestion(    @Json(name = "id") val id: Int?,     @Json(name = "title") val title: String?,     @Json(name = "description") val description: String?,     @Json(name = "type") val type: String?,     @Json(name = "cta_text") val ctaText: String?,     @Json(name = "images") val images: QuizImages?,     @Json(name = "options") val options: List<QuizOption>?,     @Json(name = "input_placeholder") val inputPlaceholder: String?) : Serializable

Models quiz question data

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizQuestionResponse(    @Json(name = "next_question") val nextQuestion: QuizQuestion?,     @Json(name = "quiz_version_id") val quizVersionId: String?,     @Json(name = "quiz_session_id") val quizSessionId: String?,     @Json(name = "quiz_id") val quizId: String,     var rawData: String?) : Serializable

Models quiz question response

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizResultClickRequestBody(    @Json(name = "quiz_id") val quizId: String,     @Json(name = "quiz_version_id") val quizVersionId: String,     @Json(name = "quiz_session_id") val quizSessionId: String,     @Json(name = "result_page") val resultPage: Int?,     @Json(name = "result_count") val resultCount: Int?,     @Json(name = "num_results_per_page") val numResultsPerPage: Int?,     @Json(name = "result_position_on_page") val resultPositionOnPage: Int?,     @Json(name = "result_id") val resultId: String?,     @Json(name = "item_id") val itemId: String,     @Json(name = "item_name") val itemName: String?,     @Json(name = "variation_id") val variationId: String?,     @Json(name = "c") val c: String,     @Json(name = "i") val i: String,     @Json(name = "s") val s: Int,     @Json(name = "key") val key: String,     @Json(name = "ui") val ui: String?,     @Json(name = "us") val us: List<String?>,     @Json(name = "analytics_tags") val analyticsTags: Map<String, String>?,     @Json(name = "beacon") val beacon: Boolean?,     @Json(name = "section") val section: String?,     @Json(name = "_dt") val _dt: Long?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizResultLoadRequestBody(    @Json(name = "quiz_id") val quizId: String,     @Json(name = "quiz_version_id") val quizVersionId: String,     @Json(name = "quiz_session_id") val quizSessionId: String,     @Json(name = "url") val url: String,     @Json(name = "result_page") val resultPage: Int?,     @Json(name = "result_count") val resultCount: Int?,     @Json(name = "result_id") val resultId: String?,     @Json(name = "c") val c: String,     @Json(name = "i") val i: String,     @Json(name = "s") val s: Int,     @Json(name = "key") val key: String,     @Json(name = "ui") val ui: String?,     @Json(name = "us") val us: List<String?>,     @Json(name = "analytics_tags") val analyticsTags: Map<String, String>?,     @Json(name = "beacon") val beacon: Boolean?,     @Json(name = "section") val section: String?,     @Json(name = "_dt") val _dt: Long?) : Serializable
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizResultsResponse(    @Json(name = "request") val request: Map<String, Any>,     @Json(name = "response") val response: QuizResultsResponseInner,     @Json(name = "result_id") val resultId: String,     @Json(name = "quiz_version_id") val quizVersionId: String,     @Json(name = "quiz_session_id") val quizSessionId: String,     @Json(name = "quiz_id") val quizId: String,     var rawData: String?) : Serializable

Models quiz results response

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class QuizResultsResponseInner(    @Json(name = "facets") val facets: List<FilterFacet>?,     @Json(name = "groups") val groups: List<FilterGroup>?,     @Json(name = "results") val results: List<Result>?,     @Json(name = "sort_options") val filterSortOptions: List<FilterSortOption>? = null,     @Json(name = "total_num_results") val resultCount: Int,     @Json(name = "refined_content") val refinedContent: List<RefinedContent>?,     @Json(name = "features") val features: List<Feature>?,     @Json(name = "result_sources") val resultSources: ResultSources?) : Serializable

Models quiz results response