export interface Qcm {
    name: string;
    categories: Array<QcmCategory>;
}

export interface QcmCategory {
    num: number;
    name: string;
    questions: Array<QcmQuestion>;
}

export interface QcmQuestion {
    num: number;
    libelle: string;
    choices: Array<QcmChoice>;
}

export enum QcmQuestionState {
    UNANSWERED = "unanswered",
    DEFERED = "defer",
    VALID = "valid",
    ERROR = "error"
}

export interface QcmChoice {
    index: string;
    libelle: string;
    correct: boolean;
}
