From 289371b74155420ca4341e2312d0808bec16a582 Mon Sep 17 00:00:00 2001 From: "gwenael.planchon" Date: Tue, 2 Apr 2024 16:57:37 +0200 Subject: [PATCH] utiliser kahootpartie au lieu de partie --- science-quest/src/components/jeux/kahoot/Kahoot.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/science-quest/src/components/jeux/kahoot/Kahoot.vue b/science-quest/src/components/jeux/kahoot/Kahoot.vue index a34fb1a..a5b4a87 100644 --- a/science-quest/src/components/jeux/kahoot/Kahoot.vue +++ b/science-quest/src/components/jeux/kahoot/Kahoot.vue @@ -3,6 +3,7 @@ import { Difficultes } from '@/data/difficulte'; import KahootListeParties from './KahootListeParties.vue' import {Partie} from "@/data/partie" import { Thematiques } from '@/data/thematique'; +import {KahootPartie} from '@/data/kahoot'; //TODO définir les méthodes -> à définir grâce à l'API export default { @@ -41,11 +42,9 @@ export default { //this.titreKahoot et this.nbQuestions synchronisés avec v-model console.log(this.titreKahoot); console.log(this.nbQuestions); - const partie=new Partie({ - "idJeu": 1, - "idJoueur": 1, - "thematiques": [1], - "idDifficulte": 1 + const partie=new KahootPartie({ + "thematiques": this.choixThematiques, + "idDifficulte": this.choixDifficulte }) partie.creerPartie().then(a=>console.log(a)) },