Template
add player hasGuessed
This commit is contained in:
@@ -2,10 +2,10 @@ export class MessageResponseDTO {
|
||||
constructor(partial: Partial<MessageResponseDTO>) {
|
||||
this.id = partial.id;
|
||||
this.value = partial.value;
|
||||
this.authorId = partial.authorId;
|
||||
if (partial.authorId) this.authorId = partial.authorId;
|
||||
}
|
||||
|
||||
id: number;
|
||||
value: string;
|
||||
authorId: string;
|
||||
authorId?: string;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
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.hasGuessed = partial.hasGuessed;
|
||||
// this.user = new UserResponseDTO(partial.user);
|
||||
}
|
||||
|
||||
id: number;
|
||||
userId: string;
|
||||
|
||||
score: number;
|
||||
hasGuessed: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user