mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
running first test
This commit is contained in:
15
nextjs/src/models/local/quiz/localQuiz.ts
Normal file
15
nextjs/src/models/local/quiz/localQuiz.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LocalQuizQuestion } from "./localQuizQuestion";
|
||||
|
||||
export interface LocalQuiz {
|
||||
name: string;
|
||||
description: string;
|
||||
password?: string;
|
||||
lockAt?: string; // ISO 8601 date string
|
||||
dueAt: string; // ISO 8601 date string
|
||||
shuffleAnswers: boolean;
|
||||
showCorrectAnswers: boolean;
|
||||
oneQuestionAtATime: boolean;
|
||||
localAssignmentGroupName?: string;
|
||||
allowedAttempts: number;
|
||||
questions: LocalQuizQuestion[];
|
||||
}
|
||||
16
nextjs/src/models/local/quiz/localQuizQuestion.ts
Normal file
16
nextjs/src/models/local/quiz/localQuizQuestion.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { LocalQuizQuestionAnswer } from "./localQuizQuestionAnswer";
|
||||
|
||||
export interface LocalQuizQuestion {
|
||||
text: string;
|
||||
questionType: QuestionType;
|
||||
points: number;
|
||||
answers: LocalQuizQuestionAnswer[];
|
||||
}
|
||||
|
||||
export enum QuestionType {
|
||||
MultipleAnswers = "multiple_answers",
|
||||
MultipleChoice = "multiple_choice",
|
||||
Essay = "essay",
|
||||
ShortAnswer = "short_answer",
|
||||
Matching = "matching"
|
||||
}
|
||||
6
nextjs/src/models/local/quiz/localQuizQuestionAnswer.ts
Normal file
6
nextjs/src/models/local/quiz/localQuizQuestionAnswer.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface LocalQuizQuestionAnswer {
|
||||
correct: boolean;
|
||||
text: string;
|
||||
matchedText?: string;
|
||||
htmlText: string;
|
||||
}
|
||||
Reference in New Issue
Block a user