parent
e911683662
commit
189cde5ae3
@ -1,6 +1,6 @@
|
||||
package fr.iut.sciencequest.model.dto
|
||||
|
||||
import kotlinx.serialization.Serializable;
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class DifficulteDTO (
|
@ -0,0 +1,10 @@
|
||||
package fr.iut.sciencequest.model.dto
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
class QuestionDTO (
|
||||
val id: Int,
|
||||
val question: String,
|
||||
val reponses: List<ReponseDTO>
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
package fr.iut.sciencequest.model.dto
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
class ReponseDTO (
|
||||
val id: Int,
|
||||
val reponse: String,
|
||||
val question: QuestionDTO,
|
||||
val scientifique: ScientifiqueDTO
|
||||
)
|
@ -1,7 +1,7 @@
|
||||
package fr.iut.sciencequest.model.dto
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable;
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class ScientifiqueDTO (
|
@ -1,6 +1,6 @@
|
||||
package fr.iut.sciencequest.model.dto
|
||||
|
||||
import kotlinx.serialization.Serializable;
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class ThematiqueDTO (
|
@ -0,0 +1,7 @@
|
||||
package fr.iut.sciencequest.model.metier
|
||||
class Question(
|
||||
val id: Int,
|
||||
val question: String,
|
||||
val reponses: List<Reponse>
|
||||
) {}
|
||||
|
@ -0,0 +1,9 @@
|
||||
package fr.iut.sciencequest.model.metier
|
||||
|
||||
class Reponse (
|
||||
val id: Int,
|
||||
val reponse: String,
|
||||
val question: Question,
|
||||
val scientifique: Scientifique
|
||||
) {}
|
||||
|
Loading…
Reference in new issue