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

32 lines
562 B
TypeScript

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