chore: remove concept

This commit is contained in:
2025-05-06 14:23:53 +02:00
parent 24c39d23d6
commit 913c82994a
7 changed files with 25 additions and 105 deletions
-18
View File
@@ -1,18 +0,0 @@
import { ConceptResponseDTO } from './conceptresponse.dto';
export class ConceptInTurnResponseDTO {
constructor(partial: Partial<ConceptInTurnResponseDTO>) {
this.order = partial.order;
this.subconcept = partial.subconcept;
this.markers = partial.markers;
this.concept = new ConceptResponseDTO(partial.concept);
}
concept: ConceptResponseDTO;
order: number;
subconcept: number;
markers: number;
}
-22
View File
@@ -1,22 +0,0 @@
import { ApiRequestTimeoutResponse } from '@nestjs/swagger';
export class ConceptResponseDTO {
constructor(partial: Partial<ConceptResponseDTO>) {
this.id = partial.id;
this.value = partial.value;
this.type = new ConceptTypeResponseDTO(partial.type);
}
id: number;
value: string;
type: ConceptTypeResponseDTO;
}
export class ConceptTypeResponseDTO {
constructor(partial: Partial<ConceptTypeResponseDTO>) {
this.id = partial.id;
this.value = partial.value;
}
id: number;
value: string;
}
-10
View File
@@ -1,6 +1,4 @@
import { UserResponseDTO } from './userresponse.dto';
import { PlayerResponseDTO } from './playerresponse.dto';
import { ConceptInTurnResponseDTO } from './conceptinturnresponse.dto';
import { MessageResponseDTO } from './messageresponse.dto';
export class GameResponseDTO {
@@ -15,12 +13,6 @@ export class GameResponseDTO {
this.players = partial.players.map((p) => new PlayerResponseDTO(p));
}
if (partial.currentConcepts) {
this.currentConcepts = partial.currentConcepts.map(
(c) => new ConceptInTurnResponseDTO(c),
);
}
if (partial.currentPlayer) {
this.currentPlayer = new PlayerResponseDTO(partial.currentPlayer);
}
@@ -36,7 +28,5 @@ export class GameResponseDTO {
started: boolean;
currentConcepts: ConceptInTurnResponseDTO[] = [];
messages: MessageResponseDTO[] = [];
}