forked from tom.biard/ScienceQuest
parent
506c1df396
commit
a3972b743f
@ -0,0 +1,7 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto
|
||||||
|
|
||||||
|
class JeuDTO (
|
||||||
|
val id: Int,
|
||||||
|
val nom: String,
|
||||||
|
val nbrParties: UInt
|
||||||
|
)
|
@ -0,0 +1,11 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto
|
||||||
|
|
||||||
|
import fr.iut.sciencequest.model.dto.joueur.JoueurSimpleDTO
|
||||||
|
|
||||||
|
class PartieDTO (
|
||||||
|
val id: Int,
|
||||||
|
val codeInvitation: String,
|
||||||
|
val joueurs: List<JoueurSimpleDTO>,
|
||||||
|
val jeu: JeuDTO,
|
||||||
|
val thematiques: List<ThematiqueDTO>
|
||||||
|
)
|
@ -1,4 +1,4 @@
|
|||||||
package fr.iut.sciencequest.model.dto
|
package fr.iut.sciencequest.model.dto.difficulte
|
||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
@ -0,0 +1,6 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto.difficulte
|
||||||
|
|
||||||
|
class DifficulteSimpleDTO (
|
||||||
|
val id: Int,
|
||||||
|
val libelle: String
|
||||||
|
)
|
@ -0,0 +1,9 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto.joueur
|
||||||
|
|
||||||
|
import fr.iut.sciencequest.model.dto.PartieDTO
|
||||||
|
|
||||||
|
class JoueurDTO (
|
||||||
|
val id: Int,
|
||||||
|
val pseudo: String,
|
||||||
|
val partie: PartieDTO
|
||||||
|
)
|
@ -0,0 +1,6 @@
|
|||||||
|
package fr.iut.sciencequest.model.dto.joueur
|
||||||
|
|
||||||
|
class JoueurSimpleDTO (
|
||||||
|
val id: Int,
|
||||||
|
val pseudo: String,
|
||||||
|
)
|
Loading…
Reference in new issue