mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
updated quiz form edtor
This commit is contained in:
28
Management/Models/Local/LocalQuizQuestion.cs
Normal file
28
Management/Models/Local/LocalQuizQuestion.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace LocalModels;
|
||||
|
||||
public record LocalQuizQuestion
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Text { get; init; } = string.Empty;
|
||||
public string QuestionType { get; init; } = string.Empty;
|
||||
public int Points { get; init; }
|
||||
public IEnumerable<LocalQuizQuestionAnswer> Answers { get; init; } =
|
||||
Enumerable.Empty<LocalQuizQuestionAnswer>();
|
||||
}
|
||||
|
||||
public static class QuestionType
|
||||
{
|
||||
public static readonly string MULTIPLE_ANSWERS = "multiple_answers";
|
||||
public static readonly string MULTIPLE_CHOICE = "multiple_choice";
|
||||
public static readonly string ESSAY = "essay";
|
||||
public static readonly string SHORT_ANSWER = "short_answer";
|
||||
|
||||
// possible support for: calculated, file_upload, fill_in_multiple_blanks, matching, multiple_dropdowns, numerical, text_only, true_false,
|
||||
public static readonly IEnumerable<string> AllTypes = new string[]
|
||||
{
|
||||
MULTIPLE_ANSWERS,
|
||||
MULTIPLE_CHOICE,
|
||||
ESSAY,
|
||||
SHORT_ANSWER,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user