16 lines
344 B
TypeScript
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;
|
|
}
|