remove concept

This commit is contained in:
2025-05-06 14:49:29 +02:00
parent 7d72c2685a
commit 1d1d420a34
+1 -10
View File
@@ -1,10 +1,9 @@
import { UserResponseDTO } from './userresponse.dto';
import { PlayerResponseDTO } from './playerresponse.dto';
import { ConceptInTurnResponseDTO } from './conceptinturnresponse.dto';
import { MessageResponseDTO } from './messageresponse.dto';
export class GameResponseDTO {
constructor(partial: Partial<GameResponseDTO>) {
constructor(partial: GameResponseDTO) {
this.id = partial.id;
this.started = partial.started;
this.ownerId = partial.ownerId;
@@ -15,12 +14,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 +29,5 @@ export class GameResponseDTO {
started: boolean;
currentConcepts: ConceptInTurnResponseDTO[] = [];
messages: MessageResponseDTO[] = [];
}