Files
events/dto/playerresponse.dto.ts
T
2024-12-30 12:06:49 +01:00

16 lines
344 B
TypeScript

import { UserResponseDTO } from './userresponse.dto';
export class PlayerResponseDTO {
constructor(partial: Partial<PlayerResponseDTO>) {
this.score = partial.score;
this.userId = partial.userId;
this.id = partial.id;
// this.user = new UserResponseDTO(partial.user);
}
id: number;
userId: string;
score: number;
}