mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
got basic question and answer creation from canvas
This commit is contained in:
@@ -11,7 +11,14 @@ public record LocalQuiz
|
||||
public DateTime DueAt { get; init; }
|
||||
public bool ShuffleAnswers { get; init; }
|
||||
public bool OneQuestionAtATime { get; init; }
|
||||
public int AllowedAttempts { get; init; }
|
||||
public int AllowedAttempts { get; init; } = -1; // -1 is infinite
|
||||
public bool ShowCorrectAnswers { get; init; }
|
||||
public int? TimeLimit { get; init; } = null;
|
||||
public string? HideResults { get; init; } = null;
|
||||
|
||||
// If null, students can see their results after any attempt.
|
||||
// If “always”, students can never see their results.
|
||||
// If “until_after_last_attempt”, students can only see results after their last attempt. (Only valid if allowed_attempts > 1). Defaults to null.
|
||||
public IEnumerable<LocalQuizQuestion> Questions { get; init; } =
|
||||
Enumerable.Empty<LocalQuizQuestion>();
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ namespace LocalModels;
|
||||
|
||||
public record LocalQuizQuestion
|
||||
{
|
||||
public ulong? CanvasId { get; set; }
|
||||
public string Id { get; set; } = "";
|
||||
public string Text { get; init; } = string.Empty;
|
||||
public string QuestionType { get; init; } = string.Empty;
|
||||
|
||||
@@ -2,7 +2,8 @@ namespace LocalModels;
|
||||
|
||||
public record LocalQuizQuestionAnswer
|
||||
{
|
||||
public string Id { get; set; } = string.Empty;
|
||||
public ulong? CanvasId { get; init; }
|
||||
public string Id { get; init; } = string.Empty;
|
||||
|
||||
//correct gets a weight of 100 in canvas
|
||||
public bool Correct { get; init; }
|
||||
|
||||
Reference in New Issue
Block a user