boussole-pluss/frontend/repositories/models/quiz.model.ts

35 lines
620 B
TypeScript
Raw Normal View History

2022-10-07 14:15:53 +00:00
import {RestLinks} from "~/repositories/models/rest-response.model";
export interface Score {
scoreAvg: number;
axeIdentifier: number;
}
export interface ResponseWithQuestion extends RestLinks {
axeIdentifier: number;
question: string;
score: number;
comment: string;
}
2022-10-07 14:15:53 +00:00
export interface Quiz extends RestLinks {
id: number;
createdDate: string;
scores: Score[];
_embedded: {
responses: ResponseWithQuestion[]
};
2022-10-07 14:15:53 +00:00
}
export interface Response {
axeId: number;
questionId: number;
2022-10-07 14:15:53 +00:00
score?: number;
comment?: string;
}
export interface QuizRate {
score?: number;
comment?: string;
}