|
|
@ -1,11 +1,13 @@
|
|
|
|
package fr.iut.sciencequest.ViewModels.UiStates
|
|
|
|
package fr.iut.sciencequest.ViewModels.UiStates
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import fr.iut.sciencequest.model.dto.extensions.ToModel
|
|
|
|
import fr.iut.sciencequest.model.dto.question.QuestionWithSimpleResponseDTO
|
|
|
|
import fr.iut.sciencequest.model.dto.question.QuestionWithSimpleResponseDTO
|
|
|
|
import fr.iut.sciencequest.model.dto.reponse.ReponseSimpleDTO
|
|
|
|
import fr.iut.sciencequest.model.dto.reponse.ReponseSimpleDTO
|
|
|
|
|
|
|
|
import fr.iut.sciencequest.model.metier.question.QuestionWithSimpleReponse
|
|
|
|
import fr.iut.sciencequest.stub.StubQuestionWithReponses
|
|
|
|
import fr.iut.sciencequest.stub.StubQuestionWithReponses
|
|
|
|
|
|
|
|
|
|
|
|
data class KahootUIState (
|
|
|
|
data class KahootUIState (
|
|
|
|
val question: QuestionWithSimpleResponseDTO = StubQuestionWithReponses,
|
|
|
|
val question: QuestionWithSimpleReponse = StubQuestionWithReponses.ToModel(),
|
|
|
|
val reponseChoisie: Boolean = false,
|
|
|
|
val reponseChoisie: Boolean = false,
|
|
|
|
// NOTE : Supposé en millisecondes
|
|
|
|
// NOTE : Supposé en millisecondes
|
|
|
|
val duréePartie: Long = 10_000,
|
|
|
|
val duréePartie: Long = 10_000,
|
|
|
|