mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
restructured components so that there are more components in the pages
This commit is contained in:
32
Management/Models/CanvasModels/Pages/CanvasPage.cs
Normal file
32
Management/Models/CanvasModels/Pages/CanvasPage.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
namespace CanvasModel.Pages;
|
||||
public record PageModel (
|
||||
[property: JsonPropertyName("page_id")] string PageId,
|
||||
[property: JsonPropertyName("url")] string Url,
|
||||
[property: JsonPropertyName("title")] string Title,
|
||||
[property: JsonPropertyName("published")] bool Published,
|
||||
[property: JsonPropertyName("front_page")] bool FrontPage,
|
||||
[property: JsonPropertyName("body")] string? Body
|
||||
);
|
||||
// [JsonPropertyName("created_at")]
|
||||
// public DateTime CreatedAt { get; set; }
|
||||
|
||||
// [JsonPropertyName("updated_at")]
|
||||
// public DateTime UpdatedAt { get; set; }
|
||||
|
||||
// [JsonPropertyName("editing_roles")]
|
||||
// public string EditingRoles { get; set; }
|
||||
|
||||
// [JsonPropertyName("last_edited_by")]
|
||||
// public UserDisplayModel LastEditedBy { get; set; }
|
||||
|
||||
// [JsonPropertyName("locked_for_user")]
|
||||
// public bool LockedForUser { get; set; }
|
||||
|
||||
// [JsonPropertyName("lock_info")]
|
||||
// public LockInfoModel? LockInfo { get; set; }
|
||||
|
||||
// [JsonPropertyName("lock_explanation")]
|
||||
// public string? LockExplanation { get; set; }
|
||||
|
||||
|
||||
8
Management/Models/Local/LocalCoursePage.cs
Normal file
8
Management/Models/Local/LocalCoursePage.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace LocalModels;
|
||||
|
||||
public record LocalCoursePage
|
||||
{
|
||||
public required string Title { get; init; }
|
||||
public required string Text { get; set; }
|
||||
public DateTime? DueDateForOrdering { get; init; }
|
||||
}
|
||||
@@ -4,9 +4,7 @@ public record LocalModule
|
||||
{
|
||||
public string Name { get; init; } = string.Empty;
|
||||
public string Notes { get; set; } = string.Empty;
|
||||
public IEnumerable<LocalAssignment> Assignments { get; init; } =
|
||||
Enumerable.Empty<LocalAssignment>();
|
||||
|
||||
public IEnumerable<LocalQuiz> Quizzes { get; init; } = Enumerable.Empty<LocalQuiz>();
|
||||
|
||||
public IEnumerable<LocalAssignment> Assignments { get; init; } = [];
|
||||
public IEnumerable<LocalQuiz> Quizzes { get; init; } = [];
|
||||
public IEnumerable<LocalCoursePage> Pages { get; init; } = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user