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 - } - ] - } - ] -} - */