chore: remove concept
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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[] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user