Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 17dc6f85 authored by ROSPARS Benoit's avatar ROSPARS Benoit
Browse files

Rename explanation to feedback and remove deprecated easierScoring property

parent b0098be5
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,5 @@ export interface Chapter {
export interface Parameters {
chapterParameter?: string;
easierScoring?: boolean;
openQuestionButton?: string;
}
......@@ -7,8 +7,17 @@ export interface Question {
label: string;
responses: Array<Response>;
correctResponse: string|Array<string>|Array<{label: string, values: string[]}>;
/**
* The explanation of the correction of the question
* @deprecated use feedback property
*/
explanation: html;
easierScoring?: boolean;
/**
* The global feedback of the question
*/
feedback: html;
}
export interface DragAndDropquestion extends Question{
......@@ -49,5 +58,6 @@ export interface CustomQuestion extends Question {
export interface Response {
label: string;
value: string;
explanation?: string;
feedback?: string;
score?:number;
}
\ No newline at end of file
......@@ -37,8 +37,14 @@ export interface Question {
/**
* The explanation of the correction of the question
* @deprecated use feedback property
*/
explanation: html;
/**
* The global feedback of the question
*/
feedback: html;
}
/**
......@@ -54,6 +60,16 @@ export interface Response {
* The hidden value of the response
*/
value: string;
/**
* The feedback of this specific response
*/
feedback?: string;
/**
* The partial score of this particular response. If set the question total score is based on the sum of partial scores
*/
score?: number
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment