mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
testing markdown storage and retrieval
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace LocalModels;
|
||||
|
||||
public static class AssignmentSubmissionType
|
||||
{
|
||||
public static readonly string ONLINE_TEXT_ENTRY = "online_text_entry";
|
||||
public static readonly string ONLINE_UPLOAD = "online_upload";
|
||||
public static readonly string ONLINE_QUIZ = "online_quiz";
|
||||
// public static readonly string ON_PAPER = "on_paper";
|
||||
public static readonly string DISCUSSION_TOPIC = "discussion_topic";
|
||||
// public static readonly string EXTERNAL_TOOL = "external_tool";
|
||||
public static readonly string ONLINE_URL = "online_url";
|
||||
// public static readonly string MEDIA_RECORDING = "media_recording";
|
||||
// public static readonly string STUDENT_ANNOTATION = "student_annotation";
|
||||
public static readonly string NONE = "none";
|
||||
public static readonly IEnumerable<string> AllTypes = new string[]
|
||||
{
|
||||
ONLINE_TEXT_ENTRY,
|
||||
ONLINE_UPLOAD,
|
||||
ONLINE_QUIZ,
|
||||
// ON_PAPER,
|
||||
DISCUSSION_TOPIC,
|
||||
// EXTERNAL_TOOL,
|
||||
ONLINE_URL,
|
||||
// MEDIA_RECORDING,
|
||||
// STUDENT_ANNOTATION,
|
||||
NONE,
|
||||
};
|
||||
}
|
||||
@@ -6,41 +6,6 @@ using YamlDotNet.Serialization;
|
||||
|
||||
namespace LocalModels;
|
||||
|
||||
public record RubricItem
|
||||
{
|
||||
public static readonly string extraCredit = "(Extra Credit) ";
|
||||
public required string Label { get; set; }
|
||||
public required int Points { get; set; }
|
||||
public bool IsExtraCredit => Label.Contains(extraCredit.ToLower(), StringComparison.CurrentCultureIgnoreCase);
|
||||
}
|
||||
|
||||
public static class AssignmentSubmissionType
|
||||
{
|
||||
public static readonly string ONLINE_TEXT_ENTRY = "online_text_entry";
|
||||
public static readonly string ONLINE_UPLOAD = "online_upload";
|
||||
public static readonly string ONLINE_QUIZ = "online_quiz";
|
||||
// public static readonly string ON_PAPER = "on_paper";
|
||||
public static readonly string DISCUSSION_TOPIC = "discussion_topic";
|
||||
// public static readonly string EXTERNAL_TOOL = "external_tool";
|
||||
public static readonly string ONLINE_URL = "online_url";
|
||||
// public static readonly string MEDIA_RECORDING = "media_recording";
|
||||
// public static readonly string STUDENT_ANNOTATION = "student_annotation";
|
||||
public static readonly string NONE = "none";
|
||||
public static readonly IEnumerable<string> AllTypes = new string[]
|
||||
{
|
||||
ONLINE_TEXT_ENTRY,
|
||||
ONLINE_UPLOAD,
|
||||
ONLINE_QUIZ,
|
||||
// ON_PAPER,
|
||||
DISCUSSION_TOPIC,
|
||||
// EXTERNAL_TOOL,
|
||||
ONLINE_URL,
|
||||
// MEDIA_RECORDING,
|
||||
// STUDENT_ANNOTATION,
|
||||
NONE,
|
||||
};
|
||||
}
|
||||
|
||||
public record LocalAssignment
|
||||
{
|
||||
// public ulong? CanvasId { get; init; } = null;
|
||||
9
Management/Models/Local/Assignment/RubricItem.cs
Normal file
9
Management/Models/Local/Assignment/RubricItem.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LocalModels;
|
||||
|
||||
public record RubricItem
|
||||
{
|
||||
public static readonly string extraCredit = "(Extra Credit) ";
|
||||
public required string Label { get; set; }
|
||||
public required int Points { get; set; }
|
||||
public bool IsExtraCredit => Label.Contains(extraCredit.ToLower(), StringComparison.CurrentCultureIgnoreCase);
|
||||
}
|
||||
@@ -18,8 +18,6 @@ public record LocalCourseSettings
|
||||
public DateTime StartDate { get; init; }
|
||||
public DateTime EndDate { get; init; }
|
||||
public SimpleTimeOnly DefaultDueTime { get; init; } = new SimpleTimeOnly();
|
||||
public IEnumerable<AssignmentTemplate> AssignmentTemplates { get; init; } =
|
||||
Enumerable.Empty<AssignmentTemplate>();
|
||||
|
||||
public string ToYaml()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user