utiliser kahootpartie au lieu de partie

front
Gwenael PLANCHON 1 year ago
parent ef1575ecdf
commit 289371b741

@ -3,6 +3,7 @@ import { Difficultes } from '@/data/difficulte';
import KahootListeParties from './KahootListeParties.vue' import KahootListeParties from './KahootListeParties.vue'
import {Partie} from "@/data/partie" import {Partie} from "@/data/partie"
import { Thematiques } from '@/data/thematique'; import { Thematiques } from '@/data/thematique';
import {KahootPartie} from '@/data/kahoot';
//TODO définir les méthodes -> à définir grâce à l'API //TODO définir les méthodes -> à définir grâce à l'API
export default { export default {
@ -41,11 +42,9 @@ export default {
//this.titreKahoot et this.nbQuestions synchronisés avec v-model //this.titreKahoot et this.nbQuestions synchronisés avec v-model
console.log(this.titreKahoot); console.log(this.titreKahoot);
console.log(this.nbQuestions); console.log(this.nbQuestions);
const partie=new Partie({ const partie=new KahootPartie({
"idJeu": 1, "thematiques": this.choixThematiques,
"idJoueur": 1, "idDifficulte": this.choixDifficulte
"thematiques": [1],
"idDifficulte": 1
}) })
partie.creerPartie().then(a=>console.log(a)) partie.creerPartie().then(a=>console.log(a))
}, },

Loading…
Cancel
Save