src/app/core/models/answer.model.ts
answer |
answer: |
Type : Answer
|
answer_id |
answer_id: |
Type : number
|
answered |
answered: |
Type : boolean
|
game_id |
game_id: |
Type : number
|
is_correct |
is_correct: |
Type : boolean
|
question_id |
question_id: |
Type : number
|
question_index |
question_index: |
Type : number
|
short_answer |
short_answer: |
Type : string
|
user_id |
user_id: |
Type : number
|
export class Answer {
constructor(description: string, is_correct: boolean) {
this.description = description;
this.is_correct = is_correct;
}
id?: number;
description: string='';
is_correct: boolean=false;
}
export interface AnswerResult {
game_id: number;
user_id: number;
question_id: number;
answer_id?: number;
answer?: Answer;
short_answer?: string;
question_index: number;
answered: boolean;
is_correct?: boolean;
}