Files
WTP-dto/dto/playerresponse.dto.ts
2025-05-06 12:42:05 +00:00

15 lines
353 B
TypeScript

export class PlayerResponseDTO {
constructor(partial: Partial<PlayerResponseDTO>) {
this.score = partial.score;
this.userId = partial.userId;
this.id = partial.id;
this.hasGuessed = partial.hasGuessed;
// this.user = new UserResponseDTO(partial.user);
}
id: number;
userId: string;
score: number;
hasGuessed: boolean;
}