Skip to content
Snippets Groups Projects
Commit f8521650 authored by Lorenz Detterbeck's avatar Lorenz Detterbeck
Browse files

Add data model for content

parent c54ac687
No related merge requests found
export class AnswerOption {
label: string;
points: string;
}
import { AnswerOption } from './answerOption';
export class ChoiceContent {
options: AnswerOption[];
correctOtionIndexes: number[];
multiple: boolean;
}
export class ChoiceAnswer {
id: string;
revision: string;
contentId: string;
round: number;
selectedChoiceIndexes: number[];
}
...@@ -6,7 +6,6 @@ enum Format { ...@@ -6,7 +6,6 @@ enum Format {
TEXT, TEXT,
GRID GRID
} }
export class Content { export class Content {
id: string; id: string;
revision: string; revision: string;
......
export class TextAnswer {
id: string;
revision: string;
contendId: string;
round: number;
subject: string;
body: string;
read: string;
creationTimestamp: Date;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment