forked from tom.biard/ScienceQuest
RepositoryAndroid
parent
90947bcbfc
commit
c8fb640d18
@ -0,0 +1,11 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto.question
|
||||||
|
|
||||||
|
import fr.iut.sciencequest.model.dto.reponse.ReponseDTO
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
class QuestionWithSimpleResponseDTO(
|
||||||
|
val id: Int,
|
||||||
|
val question: String,
|
||||||
|
val reponses: List<ReponseDTO>
|
||||||
|
){}
|
@ -0,0 +1,9 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto.reponse
|
||||||
|
|
||||||
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
@Serializable
|
||||||
|
class ReponseSimpleDTO(
|
||||||
|
val id: Int,
|
||||||
|
val reponse: String,
|
||||||
|
)
|
Loading…
Reference in new issue