diff --git a/src/app/answer-option.ts b/src/app/answer-option.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce6c6e0ab1c83b395ce581e14b862594ada7816d --- /dev/null +++ b/src/app/answer-option.ts @@ -0,0 +1,4 @@ +export class AnswerOption { + label: string; + points: string; +} diff --git a/src/app/choice-answer.ts b/src/app/choice-answer.ts new file mode 100644 index 0000000000000000000000000000000000000000..7ca2c72285a057b21ce90be3de8519e4f0cb35e3 --- /dev/null +++ b/src/app/choice-answer.ts @@ -0,0 +1,7 @@ +export class ChoiceAnswer { + id: string; + revision: string; + contentId: string; + round: number; + selectedChoiceIndexes: number[]; +} diff --git a/src/app/choice-content.ts b/src/app/choice-content.ts new file mode 100644 index 0000000000000000000000000000000000000000..74fc7a339e8af0157a89ad16b471064db088209a --- /dev/null +++ b/src/app/choice-content.ts @@ -0,0 +1,7 @@ +import { AnswerOption } from './answer-option'; + +export class ChoiceContent { + options: AnswerOption[]; + correctOtionIndexes: number[]; + multiple: boolean; +} diff --git a/src/app/content.ts b/src/app/content.ts new file mode 100644 index 0000000000000000000000000000000000000000..4b75ceb17fad81abac090104d3a8ee36ca935f0d --- /dev/null +++ b/src/app/content.ts @@ -0,0 +1,20 @@ +enum Format { + CHOICE, + BINARY, + SCALE, + NUMBER, + TEXT, + GRID +} + +export class Content { + id: string; + revision: string; + roomId: string; + subject: string; + body: string; + round: number; + format: Format; + formatAttributes: Map<string, string>; +} + diff --git a/src/app/test-answer.ts b/src/app/test-answer.ts new file mode 100644 index 0000000000000000000000000000000000000000..c1afbd92637134ee92cbbc99c1beb23212fcb94d --- /dev/null +++ b/src/app/test-answer.ts @@ -0,0 +1,10 @@ +export class TestAnswer { + id: string; + revision: string; + contendId: string; + round: number; + subject: string; + body: string; + read: string; + creationTimestamp: Date; +}