From 9b8b2463a3fb311d78676001294ee0ef3014eeb9 Mon Sep 17 00:00:00 2001 From: Laurent <58115082+naaturel@users.noreply.github.com> Date: Tue, 18 Mar 2025 13:54:22 +0100 Subject: [PATCH] Oopsie --- front/src/models/Event.ts | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/front/src/models/Event.ts b/front/src/models/Event.ts index bbb5b52..1cdd81a 100644 --- a/front/src/models/Event.ts +++ b/front/src/models/Event.ts @@ -1,32 +1,15 @@ +import type {Participant} from "@/models/Participant.ts"; + export class Event { private name: string; private token: string; private participants: Participant[]; - public constructor(name: string, token : string, participants: Participant[]) { + public constructor(name: string, token: string, participants: Participant[]) { this.name = name; + this.token = token; this.participants = participants; } } - -/* - -{ - "name": "Event for test 2", - "participants": [ - { - "name": "tony", - "dates": [ - { - "timestamp": 0 - }, - { - "timestamp": 2 - } - ] - } - ] -} - */