mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
reformatted models
This commit is contained in:
10
Management.Test/SemesterPlannerTests.cs
Normal file
10
Management.Test/SemesterPlannerTests.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Management.Test;
|
||||
|
||||
public class SemesterPlannerTests
|
||||
{
|
||||
[Test]
|
||||
public void TestCanCreatePlannerFromCanvasSemester()
|
||||
{
|
||||
var
|
||||
}
|
||||
}
|
||||
4
Management/Features/Calendar/SemesterPlanner.cs
Normal file
4
Management/Features/Calendar/SemesterPlanner.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
public class SemesterPlanner
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,47 +1,46 @@
|
||||
|
||||
|
||||
|
||||
namespace Model.Accounts {
|
||||
namespace CanvasModel.Accounts;
|
||||
public class AccountModel
|
||||
{
|
||||
|
||||
public class AccountModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
[JsonPropertyName("parent_account_id")]
|
||||
public ulong? ParentAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("parent_account_id")]
|
||||
public ulong? ParentAccountId { get; set; }
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong? RootAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong? RootAccountId { get; set; }
|
||||
[JsonPropertyName("default_user_storage_quota_mb")]
|
||||
public ulong? DefaultUserStorageQuotaMb { get; set; }
|
||||
|
||||
[JsonPropertyName("default_user_storage_quota_mb")]
|
||||
public ulong? DefaultUserStorageQuotaMb { get; set; }
|
||||
[JsonPropertyName("default_group_storage_quota_mb")]
|
||||
public ulong? DefaultGroupStorageQuotaMb { get; set; }
|
||||
|
||||
[JsonPropertyName("default_group_storage_quota_mb")]
|
||||
public ulong? DefaultGroupStorageQuotaMb { get; set; }
|
||||
[JsonPropertyName("default_time_zone")]
|
||||
public string DefaultTimeZone { get; set; }
|
||||
|
||||
[JsonPropertyName("default_time_zone")]
|
||||
public string DefaultTimeZone { get; set; }
|
||||
[JsonPropertyName("sis_account_id")]
|
||||
public string? SisAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_account_id")]
|
||||
public string? SisAccountId { get; set; }
|
||||
[JsonPropertyName("integrationI-d")]
|
||||
public string? IntegrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("integrationI-d")]
|
||||
public string? IntegrationId { get; set; }
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public string? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public string? SisImportId { get; set; }
|
||||
[JsonPropertyName("lti_guid")]
|
||||
public string LtiGuid { get; set; }
|
||||
|
||||
[JsonPropertyName("lti_guid")]
|
||||
public string LtiGuid { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
}
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
}
|
||||
@@ -1,23 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Accounts {
|
||||
namespace CanvasModel.Accounts;
|
||||
public class HelpLinkModel
|
||||
{
|
||||
|
||||
public class HelpLinkModel {
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
[JsonPropertyName("subtext")]
|
||||
public string Subtext { get; set; }
|
||||
|
||||
[JsonPropertyName("subtext")]
|
||||
public string Subtext { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("available_to")]
|
||||
public IEnumerable<string> AvailableTo { get; set; }
|
||||
}
|
||||
[JsonPropertyName("available_to")]
|
||||
public IEnumerable<string> AvailableTo { get; set; }
|
||||
}
|
||||
@@ -1,20 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Accounts {
|
||||
namespace CanvasModel.Accounts;
|
||||
public class HelpLinksModel
|
||||
{
|
||||
|
||||
public class HelpLinksModel {
|
||||
[JsonPropertyName("help_link_name")]
|
||||
public string HelpLinkName { get; set; }
|
||||
|
||||
[JsonPropertyName("help_link_name")]
|
||||
public string HelpLinkName { get; set; }
|
||||
[JsonPropertyName("help_link_icon")]
|
||||
public string HelpLinkIcon { get; set; }
|
||||
|
||||
[JsonPropertyName("help_link_icon")]
|
||||
public string HelpLinkIcon { get; set; }
|
||||
[JsonPropertyName("custom_help_links")]
|
||||
public IEnumerable<HelpLinkModel> CustomHelpLinks { get; set; }
|
||||
|
||||
[JsonPropertyName("custom_help_links")]
|
||||
public IEnumerable<HelpLinkModel> CustomHelpLinks { get; set; }
|
||||
|
||||
[JsonPropertyName("default_help_links")]
|
||||
public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; }
|
||||
}
|
||||
[JsonPropertyName("default_help_links")]
|
||||
public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; }
|
||||
}
|
||||
@@ -1,22 +1,21 @@
|
||||
|
||||
|
||||
namespace Model.Accounts {
|
||||
namespace CanvasModel.Accounts;
|
||||
public class TermsOfServiceModel
|
||||
{
|
||||
|
||||
public class TermsOfServiceModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("terms_type")]
|
||||
public string TermsType { get; set; }
|
||||
|
||||
[JsonPropertyName("terms_type")]
|
||||
public string TermsType { get; set; }
|
||||
[JsonPropertyName("passive")]
|
||||
public bool Passive { get; set; }
|
||||
|
||||
[JsonPropertyName("passive")]
|
||||
public bool Passive { get; set; }
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; set; }
|
||||
}
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; set; }
|
||||
}
|
||||
@@ -1,47 +1,46 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
public class CourseAssignmentSummaryModel
|
||||
{
|
||||
|
||||
public class CourseAssignmentSummaryModel {
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime DueAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("muted")]
|
||||
public bool Muted { get; set; }
|
||||
|
||||
[JsonPropertyName("muted")]
|
||||
public bool Muted { get; set; }
|
||||
[JsonPropertyName("points_possible")]
|
||||
public decimal PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public decimal PointsPossible { get; set; }
|
||||
[JsonPropertyName("non_digital_submission")]
|
||||
public bool? NonDigitalSubmission { get; set; }
|
||||
|
||||
[JsonPropertyName("non_digital_submission")]
|
||||
public bool? NonDigitalSubmission { get; set; }
|
||||
[JsonPropertyName("max_score")]
|
||||
public decimal? MaxScore { get; set; }
|
||||
|
||||
[JsonPropertyName("max_score")]
|
||||
public decimal? MaxScore { get; set; }
|
||||
[JsonPropertyName("min_score")]
|
||||
public decimal? MinScore { get; set; }
|
||||
|
||||
[JsonPropertyName("min_score")]
|
||||
public decimal? MinScore { get; set; }
|
||||
[JsonPropertyName("first_quartile")]
|
||||
public decimal? FirstQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("first_quartile")]
|
||||
public decimal? FirstQuartile { get; set; }
|
||||
[JsonPropertyName("median")]
|
||||
public decimal? Median { get; set; }
|
||||
|
||||
[JsonPropertyName("median")]
|
||||
public decimal? Median { get; set; }
|
||||
[JsonPropertyName("third_quartile")]
|
||||
public decimal? ThirdQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("third_quartile")]
|
||||
public decimal? ThirdQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("tardiness_breakdown")]
|
||||
public TardinessModel TardinessBreakdown { get; set; }
|
||||
}
|
||||
[JsonPropertyName("tardiness_breakdown")]
|
||||
public TardinessModel TardinessBreakdown { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,31 +1,30 @@
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
public class CourseStudentSummaryModel
|
||||
{
|
||||
|
||||
public class CourseStudentSummaryModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("page_views")]
|
||||
public uint PageViews { get; set; }
|
||||
|
||||
[JsonPropertyName("page_views")]
|
||||
public uint PageViews { get; set; }
|
||||
[JsonPropertyName("max_page_views")]
|
||||
public uint? MaxPageViews { get; set; }
|
||||
|
||||
[JsonPropertyName("max_page_views")]
|
||||
public uint? MaxPageViews { get; set; }
|
||||
[JsonPropertyName("page_views_level")]
|
||||
public uint? PageViewsLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("page_views_level")]
|
||||
public uint? PageViewsLevel { get; set; }
|
||||
[JsonPropertyName("participations")]
|
||||
public uint Participations { get; set; }
|
||||
|
||||
[JsonPropertyName("participations")]
|
||||
public uint Participations { get; set; }
|
||||
[JsonPropertyName("max_participations")]
|
||||
public uint? MaxParticipations { get; set; }
|
||||
|
||||
[JsonPropertyName("max_participations")]
|
||||
public uint? MaxParticipations { get; set; }
|
||||
[JsonPropertyName("participations_level")]
|
||||
public uint? ParticipationsLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("participations_level")]
|
||||
public uint? ParticipationsLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("tardiness_breakdown")]
|
||||
public TardinessModel TardinessBreakdown { get; set; }
|
||||
}
|
||||
[JsonPropertyName("tardiness_breakdown")]
|
||||
public TardinessModel TardinessBreakdown { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,39 +2,40 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
// The format of this model in the documentation is COMPLETELY WRONG. Each property is an array of objects, not an object,
|
||||
// and each of those objects have some extra fields: {id, date, views, participations} in by_date and
|
||||
// {id, category, views} in by_category. In both cases, id seems to be null 100% of the time, so I am omitting that one.
|
||||
// The primary keys (date and category) are thankfully discrete, so we can trivially build the dictionary ourselves.
|
||||
public class DepartmentParticipationModel
|
||||
{
|
||||
|
||||
// The format of this model in the documentation is COMPLETELY WRONG. Each property is an array of objects, not an object,
|
||||
// and each of those objects have some extra fields: {id, date, views, participations} in by_date and
|
||||
// {id, category, views} in by_category. In both cases, id seems to be null 100% of the time, so I am omitting that one.
|
||||
// The primary keys (date and category) are thankfully discrete, so we can trivially build the dictionary ourselves.
|
||||
public class DepartmentParticipationModel {
|
||||
[JsonPropertyName("by_date")]
|
||||
public IEnumerable<DepartmentParticipationDateEntryModel> ByDate { get; set; }
|
||||
|
||||
[JsonPropertyName("by_date")]
|
||||
public IEnumerable<DepartmentParticipationDateEntryModel> ByDate { get; set; }
|
||||
|
||||
[JsonPropertyName("by_category")]
|
||||
public IEnumerable<DepartmentParticipationCategoryEntryModel> ByCategory { get; set; }
|
||||
}
|
||||
|
||||
public class DepartmentParticipationDateEntryModel {
|
||||
|
||||
[JsonPropertyName("date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[JsonPropertyName("views")]
|
||||
public ulong Views { get; set; }
|
||||
|
||||
[JsonPropertyName("participations")]
|
||||
public ulong Participations { get; set; }
|
||||
}
|
||||
|
||||
public class DepartmentParticipationCategoryEntryModel {
|
||||
|
||||
[JsonPropertyName("category")]
|
||||
public string Category { get; set; }
|
||||
|
||||
[JsonPropertyName("views")]
|
||||
public ulong Views { get; set; }
|
||||
}
|
||||
[JsonPropertyName("by_category")]
|
||||
public IEnumerable<DepartmentParticipationCategoryEntryModel> ByCategory { get; set; }
|
||||
}
|
||||
|
||||
public class DepartmentParticipationDateEntryModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[JsonPropertyName("views")]
|
||||
public ulong Views { get; set; }
|
||||
|
||||
[JsonPropertyName("participations")]
|
||||
public ulong Participations { get; set; }
|
||||
}
|
||||
|
||||
public class DepartmentParticipationCategoryEntryModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("category")]
|
||||
public string Category { get; set; }
|
||||
|
||||
[JsonPropertyName("views")]
|
||||
public ulong Views { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,31 +1,30 @@
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
public class DepartmentStatisticsModel
|
||||
{
|
||||
|
||||
public class DepartmentStatisticsModel {
|
||||
[JsonPropertyName("courses")]
|
||||
public ulong Courses { get; set; }
|
||||
|
||||
[JsonPropertyName("courses")]
|
||||
public ulong Courses { get; set; }
|
||||
[JsonPropertyName("subaccounts")]
|
||||
public ulong Subaccounts { get; set; }
|
||||
|
||||
[JsonPropertyName("subaccounts")]
|
||||
public ulong Subaccounts { get; set; }
|
||||
[JsonPropertyName("teacher")]
|
||||
public ulong Teachers { get; set; }
|
||||
|
||||
[JsonPropertyName("teacher")]
|
||||
public ulong Teachers { get; set; }
|
||||
[JsonPropertyName("students")]
|
||||
public ulong Students { get; set; }
|
||||
|
||||
[JsonPropertyName("students")]
|
||||
public ulong Students { get; set; }
|
||||
[JsonPropertyName("discussion_topics")]
|
||||
public ulong DiscussionTopics { get; set; }
|
||||
|
||||
[JsonPropertyName("discussion_topics")]
|
||||
public ulong DiscussionTopics { get; set; }
|
||||
[JsonPropertyName("media_objects")]
|
||||
public ulong MediaObjects { get; set; }
|
||||
|
||||
[JsonPropertyName("media_objects")]
|
||||
public ulong MediaObjects { get; set; }
|
||||
[JsonPropertyName("attachments")]
|
||||
public ulong Attachments { get; set; }
|
||||
|
||||
[JsonPropertyName("attachments")]
|
||||
public ulong Attachments { get; set; }
|
||||
|
||||
[JsonPropertyName("assignments")]
|
||||
public ulong Assignments { get; set; }
|
||||
}
|
||||
[JsonPropertyName("assignments")]
|
||||
public ulong Assignments { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
public class TardinessModel {
|
||||
namespace CanvasModel.Analytics;
|
||||
public class TardinessModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("missing")]
|
||||
public decimal Missing { get; set; }
|
||||
[JsonPropertyName("missing")]
|
||||
public decimal Missing { get; set; }
|
||||
|
||||
[JsonPropertyName("late")]
|
||||
public decimal Late { get; set; }
|
||||
[JsonPropertyName("late")]
|
||||
public decimal Late { get; set; }
|
||||
|
||||
[JsonPropertyName("on_time")]
|
||||
public decimal OnTime { get; set; }
|
||||
[JsonPropertyName("on_time")]
|
||||
public decimal OnTime { get; set; }
|
||||
|
||||
[JsonPropertyName("floating")]
|
||||
public decimal Floating { get; set; }
|
||||
[JsonPropertyName("floating")]
|
||||
public decimal Floating { get; set; }
|
||||
|
||||
[JsonPropertyName("total")]
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
[JsonPropertyName("total")]
|
||||
public decimal Total { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,56 +2,56 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
public struct UserAssignmentSubmissionDataModel
|
||||
{
|
||||
|
||||
public struct UserAssignmentSubmissionDataModel {
|
||||
[JsonPropertyName("submitted_at")]
|
||||
public DateTime? SubmittedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("submitted_at")]
|
||||
public DateTime? SubmittedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("score")]
|
||||
public double? Score { get; set; }
|
||||
}
|
||||
|
||||
public class UserAssignmentDataModel {
|
||||
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public double? PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("muted")]
|
||||
public bool? Muted { get; set; }
|
||||
|
||||
[JsonPropertyName("min_score")]
|
||||
public double? MinScore { get; set; }
|
||||
|
||||
[JsonPropertyName("max_score")]
|
||||
public double? MaxScore { get; set; }
|
||||
|
||||
[JsonPropertyName("median")]
|
||||
public double? Median { get; set; }
|
||||
|
||||
[JsonPropertyName("first_quartile")]
|
||||
public double? FirstQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("third_quartile")]
|
||||
public double? ThirdQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("module_ids")]
|
||||
public IEnumerable<ulong> ModuleIds { get; set; }
|
||||
|
||||
[JsonPropertyName("submission")]
|
||||
public UserAssignmentSubmissionDataModel? Submission { get; set; }
|
||||
}
|
||||
[JsonPropertyName("score")]
|
||||
public double? Score { get; set; }
|
||||
}
|
||||
|
||||
public class UserAssignmentDataModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public double? PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("muted")]
|
||||
public bool? Muted { get; set; }
|
||||
|
||||
[JsonPropertyName("min_score")]
|
||||
public double? MinScore { get; set; }
|
||||
|
||||
[JsonPropertyName("max_score")]
|
||||
public double? MaxScore { get; set; }
|
||||
|
||||
[JsonPropertyName("median")]
|
||||
public double? Median { get; set; }
|
||||
|
||||
[JsonPropertyName("first_quartile")]
|
||||
public double? FirstQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("third_quartile")]
|
||||
public double? ThirdQuartile { get; set; }
|
||||
|
||||
[JsonPropertyName("module_ids")]
|
||||
public IEnumerable<ulong> ModuleIds { get; set; }
|
||||
|
||||
[JsonPropertyName("submission")]
|
||||
public UserAssignmentSubmissionDataModel? Submission { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,23 +2,23 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Analytics {
|
||||
namespace CanvasModel.Analytics;
|
||||
public struct UserParticipationModel
|
||||
{
|
||||
|
||||
public struct UserParticipationModel {
|
||||
[JsonPropertyName("page_views")]
|
||||
public Dictionary<DateTime, ulong> PageViews { get; set; }
|
||||
|
||||
[JsonPropertyName("page_views")]
|
||||
public Dictionary<DateTime, ulong> PageViews { get; set; }
|
||||
|
||||
[JsonPropertyName("participations")]
|
||||
public IEnumerable<UserParticipationEventModel> Participations { get; set; }
|
||||
}
|
||||
|
||||
public struct UserParticipationEventModel {
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
[JsonPropertyName("participations")]
|
||||
public IEnumerable<UserParticipationEventModel> Participations { get; set; }
|
||||
}
|
||||
|
||||
public struct UserParticipationEventModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,85 +2,86 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Calendar;
|
||||
using CanvasModel.Calendar;
|
||||
|
||||
namespace Model.Appointments {
|
||||
namespace CanvasModel.Appointments;
|
||||
|
||||
public class AppointmentGroupModel {
|
||||
public class AppointmentGroupModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("location_name")]
|
||||
public string LocationName { get; set; }
|
||||
[JsonPropertyName("location_name")]
|
||||
public string LocationName { get; set; }
|
||||
|
||||
[JsonPropertyName("location_address")]
|
||||
public string LocationAddress { get; set; }
|
||||
[JsonPropertyName("location_address")]
|
||||
public string LocationAddress { get; set; }
|
||||
|
||||
[JsonPropertyName("participant_count")]
|
||||
public uint? ParticipantCount { get; set; }
|
||||
[JsonPropertyName("participant_count")]
|
||||
public uint? ParticipantCount { get; set; }
|
||||
|
||||
[JsonPropertyName("reserved_times")]
|
||||
public IEnumerable<AppointmentModel> ReservedTimes { get; set; }
|
||||
[JsonPropertyName("reserved_times")]
|
||||
public IEnumerable<AppointmentModel> ReservedTimes { get; set; }
|
||||
|
||||
[JsonPropertyName("context_codes")]
|
||||
public IEnumerable<string> ContextCodes { get; set; }
|
||||
[JsonPropertyName("context_codes")]
|
||||
public IEnumerable<string> ContextCodes { get; set; }
|
||||
|
||||
[JsonPropertyName("sub_context_codes")]
|
||||
public IEnumerable<string> SubContextCodes { get; set; }
|
||||
[JsonPropertyName("sub_context_codes")]
|
||||
public IEnumerable<string> SubContextCodes { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("requiring_action")]
|
||||
public bool? RequiringAction { get; set; }
|
||||
[JsonPropertyName("requiring_action")]
|
||||
public bool? RequiringAction { get; set; }
|
||||
|
||||
[JsonPropertyName("appointments_count")]
|
||||
public uint AppointmentsCount { get; set; }
|
||||
[JsonPropertyName("appointments_count")]
|
||||
public uint AppointmentsCount { get; set; }
|
||||
|
||||
[JsonPropertyName("appointments")]
|
||||
public IEnumerable<CalendarEventModel> Appointments { get; set; }
|
||||
[JsonPropertyName("appointments")]
|
||||
public IEnumerable<CalendarEventModel> Appointments { get; set; }
|
||||
|
||||
[JsonPropertyName("new_appointments")]
|
||||
public IEnumerable<CalendarEventModel>? NewAppointments { get; set; }
|
||||
[JsonPropertyName("new_appointments")]
|
||||
public IEnumerable<CalendarEventModel>? NewAppointments { get; set; }
|
||||
|
||||
[JsonPropertyName("max_appointments_per_participant")]
|
||||
public uint? MaxAppointmentsPerParticipant { get; set; }
|
||||
[JsonPropertyName("max_appointments_per_participant")]
|
||||
public uint? MaxAppointmentsPerParticipant { get; set; }
|
||||
|
||||
[JsonPropertyName("min_appointments_per_participant")]
|
||||
public uint? MinAppointmentsPerParticipant { get; set; }
|
||||
[JsonPropertyName("min_appointments_per_participant")]
|
||||
public uint? MinAppointmentsPerParticipant { get; set; }
|
||||
|
||||
[JsonPropertyName("participants_per_appointment")]
|
||||
public uint? ParticipantsPerAppointment { get; set; }
|
||||
[JsonPropertyName("participants_per_appointment")]
|
||||
public uint? ParticipantsPerAppointment { get; set; }
|
||||
|
||||
[JsonPropertyName("participant_visibility")]
|
||||
public string ParticipantVisibility { get; set; }
|
||||
[JsonPropertyName("participant_visibility")]
|
||||
public string ParticipantVisibility { get; set; }
|
||||
|
||||
[JsonPropertyName("participant_type")]
|
||||
public string ParticipantType { get; set; }
|
||||
[JsonPropertyName("participant_type")]
|
||||
public string ParticipantType { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("html")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("html")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Appointments {
|
||||
namespace CanvasModel.Appointments;
|
||||
|
||||
public class AppointmentModel {
|
||||
public class AppointmentModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -1,28 +1,26 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Assignments
|
||||
namespace CanvasModel.Assignments;
|
||||
|
||||
public class AssignmentDateModel
|
||||
{
|
||||
|
||||
public class AssignmentDateModel
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public ulong? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong? Id { get; set; }
|
||||
[JsonPropertyName("base")]
|
||||
public bool? Base { get; set; }
|
||||
|
||||
[JsonPropertyName("base")]
|
||||
public bool? Base { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
}
|
||||
@@ -2,212 +2,211 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Discussions;
|
||||
using Model.Submissions;
|
||||
using CanvasModel.Discussions;
|
||||
using CanvasModel.Submissions;
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class AssignmentModel
|
||||
{
|
||||
|
||||
public class AssignmentModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("has_overrides")]
|
||||
public bool HasOverrides { get; set; }
|
||||
|
||||
[JsonPropertyName("has_overrides")]
|
||||
public bool HasOverrides { get; set; }
|
||||
[JsonPropertyName("all_dates")]
|
||||
public IEnumerable<AssignmentDateModel>? AllDates { get; set; }
|
||||
|
||||
[JsonPropertyName("all_dates")]
|
||||
public IEnumerable<AssignmentDateModel>? AllDates { get; set; }
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong CourseId { get; set; }
|
||||
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong CourseId { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("submissions_download_url")]
|
||||
public string SubmissionsDownloadUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("submissions_download_url")]
|
||||
public string SubmissionsDownloadUrl { get; set; }
|
||||
[JsonPropertyName("assignment_group_id")]
|
||||
public ulong AssignmentGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_group_id")]
|
||||
public ulong AssignmentGroupId { get; set; }
|
||||
[JsonPropertyName("due_date_required")]
|
||||
public bool DueDateRequired { get; set; }
|
||||
|
||||
[JsonPropertyName("due_date_required")]
|
||||
public bool DueDateRequired { get; set; }
|
||||
[JsonPropertyName("allowed_extensions")]
|
||||
public IEnumerable<string>? AllowedExtensions { get; set; }
|
||||
|
||||
[JsonPropertyName("allowed_extensions")]
|
||||
public IEnumerable<string>? AllowedExtensions { get; set; }
|
||||
[JsonPropertyName("max_name_length")]
|
||||
public uint MaxNameLength { get; set; }
|
||||
|
||||
[JsonPropertyName("max_name_length")]
|
||||
public uint MaxNameLength { get; set; }
|
||||
[JsonPropertyName("turnitin_enabled")]
|
||||
public bool? TurnitinEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("turnitin_enabled")]
|
||||
public bool? TurnitinEnabled { get; set; }
|
||||
[JsonPropertyName("vericite_enabled")]
|
||||
public bool? VeriCiteEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("vericite_enabled")]
|
||||
public bool? VeriCiteEnabled { get; set; }
|
||||
[JsonPropertyName("turnitin_settings")]
|
||||
public TurnitinSettingsModel? TurnitinSettings { get; set; }
|
||||
|
||||
[JsonPropertyName("turnitin_settings")]
|
||||
public TurnitinSettingsModel? TurnitinSettings { get; set; }
|
||||
[JsonPropertyName("grade_group_students_individually")]
|
||||
public bool? GradeGroupStudentsIndividually { get; set; }
|
||||
|
||||
[JsonPropertyName("grade_group_students_individually")]
|
||||
public bool? GradeGroupStudentsIndividually { get; set; }
|
||||
[JsonPropertyName("external_tool_tag_attributes")]
|
||||
public ExternalToolTagAttributesModel? ExternalToolTagAttributes { get; set; }
|
||||
|
||||
[JsonPropertyName("external_tool_tag_attributes")]
|
||||
public ExternalToolTagAttributesModel? ExternalToolTagAttributes { get; set; }
|
||||
[JsonPropertyName("peer_reviews")]
|
||||
public bool PeerReviews { get; set; }
|
||||
|
||||
[JsonPropertyName("peer_reviews")]
|
||||
public bool PeerReviews { get; set; }
|
||||
[JsonPropertyName("automatic_peer_reviews")]
|
||||
public bool AutomaticPeerReviews { get; set; }
|
||||
|
||||
[JsonPropertyName("automatic_peer_reviews")]
|
||||
public bool AutomaticPeerReviews { get; set; }
|
||||
[JsonPropertyName("peer_review_count")]
|
||||
public uint? PeerReviewCount { get; set; }
|
||||
|
||||
[JsonPropertyName("peer_review_count")]
|
||||
public uint? PeerReviewCount { get; set; }
|
||||
[JsonPropertyName("peer_reviews_assign_at")]
|
||||
public DateTime? PeerReviewsAssignAt { get; set; }
|
||||
|
||||
[JsonPropertyName("peer_reviews_assign_at")]
|
||||
public DateTime? PeerReviewsAssignAt { get; set; }
|
||||
[JsonPropertyName("intra_group_peer_reviews")]
|
||||
public bool? IntraGroupPeerReviews { get; set; }
|
||||
|
||||
[JsonPropertyName("intra_group_peer_reviews")]
|
||||
public bool? IntraGroupPeerReviews { get; set; }
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong? GroupCategoryId { get; set; }
|
||||
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong? GroupCategoryId { get; set; }
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint? NeedsGradingCount { get; set; }
|
||||
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint? NeedsGradingCount { get; set; }
|
||||
[JsonPropertyName("needs_grading_count_be_section")]
|
||||
public IEnumerable<NeedsGradingCountModel>? NeedsGradingCountBySection { get; set; }
|
||||
|
||||
[JsonPropertyName("needs_grading_count_be_section")]
|
||||
public IEnumerable<NeedsGradingCountModel>? NeedsGradingCountBySection { get; set; }
|
||||
[JsonPropertyName("position")]
|
||||
public ulong Position { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public ulong Position { get; set; }
|
||||
[JsonPropertyName("post_to_sis")]
|
||||
public bool? PostToSis { get; set; }
|
||||
|
||||
[JsonPropertyName("post_to_sis")]
|
||||
public bool? PostToSis { get; set; }
|
||||
[JsonPropertyName("integration_id")]
|
||||
public string? IntegrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("integration_id")]
|
||||
public string? IntegrationId { get; set; }
|
||||
[JsonPropertyName("integration_data")]
|
||||
public object? IntegrationData { get; set; }
|
||||
|
||||
[JsonPropertyName("integration_data")]
|
||||
public object? IntegrationData { get; set; }
|
||||
[JsonPropertyName("muted")]
|
||||
public bool? Muted { get; set; }
|
||||
|
||||
[JsonPropertyName("muted")]
|
||||
public bool? Muted { get; set; }
|
||||
[JsonPropertyName("points_possible")]
|
||||
public double? PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public double? PointsPossible { get; set; }
|
||||
[JsonPropertyName("submission_types")]
|
||||
public IEnumerable<string> SubmissionTypes { get; set; }
|
||||
|
||||
[JsonPropertyName("submission_types")]
|
||||
public IEnumerable<string> SubmissionTypes { get; set; }
|
||||
[JsonPropertyName("has_submitted_submissions")]
|
||||
public bool? HasSubmittedSubmissions { get; set; }
|
||||
|
||||
[JsonPropertyName("has_submitted_submissions")]
|
||||
public bool? HasSubmittedSubmissions { get; set; }
|
||||
[JsonPropertyName("grading_type")]
|
||||
public string GradingType { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_type")]
|
||||
public string GradingType { get; set; }
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
[JsonPropertyName("published")]
|
||||
public bool Published { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool Published { get; set; }
|
||||
[JsonPropertyName("unpublishable")]
|
||||
public bool Unpublishable { get; set; }
|
||||
|
||||
[JsonPropertyName("unpublishable")]
|
||||
public bool Unpublishable { get; set; }
|
||||
[JsonPropertyName("only_visible_to_overrides")]
|
||||
public bool OnlyVisibleToOverrides { get; set; }
|
||||
|
||||
[JsonPropertyName("only_visible_to_overrides")]
|
||||
public bool OnlyVisibleToOverrides { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
[JsonPropertyName("quiz_id")]
|
||||
public ulong? QuizId { get; set; }
|
||||
|
||||
[JsonPropertyName("quiz_id")]
|
||||
public ulong? QuizId { get; set; }
|
||||
[JsonPropertyName("anonymous_submissions")]
|
||||
public bool? AnonymousSubmissions { get; set; }
|
||||
|
||||
[JsonPropertyName("anonymous_submissions")]
|
||||
public bool? AnonymousSubmissions { get; set; }
|
||||
[JsonPropertyName("discussion_topic")]
|
||||
public DiscussionTopicModel? DiscussionTopic { get; set; }
|
||||
|
||||
[JsonPropertyName("discussion_topic")]
|
||||
public DiscussionTopicModel? DiscussionTopic { get; set; }
|
||||
[JsonPropertyName("freeze_on_copy")]
|
||||
public bool? FreezeOnCopy { get; set; }
|
||||
|
||||
[JsonPropertyName("freeze_on_copy")]
|
||||
public bool? FreezeOnCopy { get; set; }
|
||||
[JsonPropertyName("frozen")]
|
||||
public bool? Frozen { get; set; }
|
||||
|
||||
[JsonPropertyName("frozen")]
|
||||
public bool? Frozen { get; set; }
|
||||
[JsonPropertyName("frozen_attributes")]
|
||||
public IEnumerable<string>? FrozenAttributes { get; set; }
|
||||
|
||||
[JsonPropertyName("frozen_attributes")]
|
||||
public IEnumerable<string>? FrozenAttributes { get; set; }
|
||||
[JsonPropertyName("submission")]
|
||||
public SubmissionModel? Submission { get; set; }
|
||||
|
||||
[JsonPropertyName("submission")]
|
||||
public SubmissionModel? Submission { get; set; }
|
||||
[JsonPropertyName("use_rubric_for_grading")]
|
||||
public bool? UseRubricForGrading { get; set; }
|
||||
|
||||
[JsonPropertyName("use_rubric_for_grading")]
|
||||
public bool? UseRubricForGrading { get; set; }
|
||||
[JsonPropertyName("rubric_settings")]
|
||||
public object? RubricSettings { get; set; } // again, docs give no concrete type.
|
||||
|
||||
[JsonPropertyName("rubric_settings")]
|
||||
public object? RubricSettings { get; set; } // again, docs give no concrete type.
|
||||
[JsonPropertyName("rubric")]
|
||||
public IEnumerable<RubricCriteriaModel>? Rubric { get; set; }
|
||||
|
||||
[JsonPropertyName("rubric")]
|
||||
public IEnumerable<RubricCriteriaModel>? Rubric { get; set; }
|
||||
[JsonPropertyName("assignment_visibility")]
|
||||
public IEnumerable<ulong>? AssignmentVisibility { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_visibility")]
|
||||
public IEnumerable<ulong>? AssignmentVisibility { get; set; }
|
||||
[JsonPropertyName("overrides")]
|
||||
public IEnumerable<AssignmentOverrideModel>? Overrides { get; set; }
|
||||
|
||||
[JsonPropertyName("overrides")]
|
||||
public IEnumerable<AssignmentOverrideModel>? Overrides { get; set; }
|
||||
[JsonPropertyName("omit_from_final_grade")]
|
||||
public bool? OmitFromFinalGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("omit_from_final_grade")]
|
||||
public bool? OmitFromFinalGrade { get; set; }
|
||||
[JsonPropertyName("moderated_grading")]
|
||||
public bool ModeratedGrading { get; set; }
|
||||
|
||||
[JsonPropertyName("moderated_grading")]
|
||||
public bool ModeratedGrading { get; set; }
|
||||
[JsonPropertyName("grader_count")]
|
||||
public uint GraderCount { get; set; }
|
||||
|
||||
[JsonPropertyName("grader_count")]
|
||||
public uint GraderCount { get; set; }
|
||||
[JsonPropertyName("final_grader_id")]
|
||||
public ulong? FinalGraderId { get; set; }
|
||||
|
||||
[JsonPropertyName("final_grader_id")]
|
||||
public ulong? FinalGraderId { get; set; }
|
||||
[JsonPropertyName("grader_comments_visible_to_graders")]
|
||||
public bool? GraderCommentsVisibleToGraders { get; set; }
|
||||
|
||||
[JsonPropertyName("grader_comments_visible_to_graders")]
|
||||
public bool? GraderCommentsVisibleToGraders { get; set; }
|
||||
[JsonPropertyName("graders_anonymous_to_graders")]
|
||||
public bool? GradersAnonymousToGraders { get; set; }
|
||||
|
||||
[JsonPropertyName("graders_anonymous_to_graders")]
|
||||
public bool? GradersAnonymousToGraders { get; set; }
|
||||
[JsonPropertyName("grader_names_anonymous_to_final_grader")]
|
||||
public bool? GraderNamesVisibleToFinalGrader { get; set; }
|
||||
|
||||
[JsonPropertyName("grader_names_anonymous_to_final_grader")]
|
||||
public bool? GraderNamesVisibleToFinalGrader { get; set; }
|
||||
[JsonPropertyName("anonymous_grading")]
|
||||
public bool? AnonymousGrading { get; set; }
|
||||
|
||||
[JsonPropertyName("anonymous_grading")]
|
||||
public bool? AnonymousGrading { get; set; }
|
||||
|
||||
[JsonPropertyName("allowed_attempts")]
|
||||
public int AllowedAttempts { get; set; }
|
||||
}
|
||||
[JsonPropertyName("allowed_attempts")]
|
||||
public int AllowedAttempts { get; set; }
|
||||
}
|
||||
@@ -3,41 +3,40 @@ using System.Collections.Generic;
|
||||
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class AssignmentOverrideModel
|
||||
{
|
||||
|
||||
public class AssignmentOverrideModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public ulong AssignmentId { get; set; }
|
||||
[JsonPropertyName("student_ids")]
|
||||
public IEnumerable<ulong>? StudentIds { get; set; }
|
||||
|
||||
[JsonPropertyName("student_ids")]
|
||||
public IEnumerable<ulong>? StudentIds { get; set; }
|
||||
[JsonPropertyName("group_id")]
|
||||
public ulong? GroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("group_id")]
|
||||
public ulong? GroupId { get; set; }
|
||||
[JsonPropertyName("course_section_ids")]
|
||||
public ulong CourseSectionId { get; set; }
|
||||
|
||||
[JsonPropertyName("course_section_ids")]
|
||||
public ulong CourseSectionId { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
[JsonPropertyName("all_day")]
|
||||
public bool? AllDay { get; set; }
|
||||
|
||||
[JsonPropertyName("all_day")]
|
||||
public bool? AllDay { get; set; }
|
||||
[JsonPropertyName("all_day_date")]
|
||||
public DateTime? AllDayDate { get; set; }
|
||||
|
||||
[JsonPropertyName("all_day_date")]
|
||||
public DateTime? AllDayDate { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
}
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class ExternalToolTagAttributesModel
|
||||
{
|
||||
|
||||
public class ExternalToolTagAttributesModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("new_tab")]
|
||||
public bool? NewTab { get; set; }
|
||||
|
||||
[JsonPropertyName("new_tab")]
|
||||
public bool? NewTab { get; set; }
|
||||
|
||||
[JsonPropertyName("resource_link_id")]
|
||||
public string ResourceLinkId { get; set; }
|
||||
}
|
||||
[JsonPropertyName("resource_link_id")]
|
||||
public string ResourceLinkId { get; set; }
|
||||
}
|
||||
@@ -2,23 +2,22 @@ using System;
|
||||
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class LockInfoModel
|
||||
{
|
||||
|
||||
public class LockInfoModel {
|
||||
[JsonPropertyName("asset_string")]
|
||||
public string AssetString { get; set; }
|
||||
|
||||
[JsonPropertyName("asset_string")]
|
||||
public string AssetString { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("context_module")]
|
||||
public object? ContextModule { get; set; }
|
||||
|
||||
[JsonPropertyName("context_module")]
|
||||
public object? ContextModule { get; set; }
|
||||
|
||||
[JsonPropertyName("manually_locked")]
|
||||
public bool? ManuallyLocked { get; set; }
|
||||
}
|
||||
[JsonPropertyName("manually_locked")]
|
||||
public bool? ManuallyLocked { get; set; }
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class NeedsGradingCountModel
|
||||
{
|
||||
|
||||
public class NeedsGradingCountModel {
|
||||
[JsonPropertyName("section_id")]
|
||||
public string SectionId { get; set; }
|
||||
|
||||
[JsonPropertyName("section_id")]
|
||||
public string SectionId { get; set; }
|
||||
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint NeedsGradingCount { get; set; }
|
||||
}
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint NeedsGradingCount { get; set; }
|
||||
}
|
||||
@@ -2,37 +2,35 @@ using System.Collections.Generic;
|
||||
|
||||
|
||||
|
||||
namespace Model.Assignments
|
||||
namespace CanvasModel.Assignments;
|
||||
|
||||
public class RubricCriteriaModel
|
||||
{
|
||||
|
||||
public class RubricCriteriaModel
|
||||
{
|
||||
[JsonPropertyName("points")]
|
||||
public double? Points { get; set; }
|
||||
|
||||
[JsonPropertyName("points")]
|
||||
public double? Points { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("learning_outcome_id")]
|
||||
public string? LearningOutcomeId { get; set; }
|
||||
|
||||
[JsonPropertyName("learning_outcome_id")]
|
||||
public string? LearningOutcomeId { get; set; }
|
||||
[JsonPropertyName("vendor_guid")]
|
||||
public string? VendorGuid { get; set; }
|
||||
|
||||
[JsonPropertyName("vendor_guid")]
|
||||
public string? VendorGuid { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("long_description")]
|
||||
public string LongDescription { get; set; }
|
||||
|
||||
[JsonPropertyName("long_description")]
|
||||
public string LongDescription { get; set; }
|
||||
[JsonPropertyName("criterion_use_range")]
|
||||
public bool? CriterionUseRange { get; set; }
|
||||
|
||||
[JsonPropertyName("criterion_use_range")]
|
||||
public bool? CriterionUseRange { get; set; }
|
||||
[JsonPropertyName("ratings")]
|
||||
public IEnumerable<RubricRatingModel>? Ratings { get; set; }
|
||||
|
||||
[JsonPropertyName("ratings")]
|
||||
public IEnumerable<RubricRatingModel>? Ratings { get; set; }
|
||||
|
||||
[JsonPropertyName("ignore_for_scoring")]
|
||||
public bool? IgnoreForScoring { get; set; }
|
||||
}
|
||||
[JsonPropertyName("ignore_for_scoring")]
|
||||
public bool? IgnoreForScoring { get; set; }
|
||||
}
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class RubricRatingModel
|
||||
{
|
||||
|
||||
public class RubricRatingModel {
|
||||
[JsonPropertyName("points")]
|
||||
public double Points { get; set; }
|
||||
|
||||
[JsonPropertyName("points")]
|
||||
public double Points { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("long_description")]
|
||||
public string LongDescription { get; set; }
|
||||
}
|
||||
[JsonPropertyName("long_description")]
|
||||
public string LongDescription { get; set; }
|
||||
}
|
||||
@@ -1,31 +1,30 @@
|
||||
|
||||
|
||||
namespace Model.Assignments {
|
||||
namespace CanvasModel.Assignments;
|
||||
public class TurnitinSettingsModel
|
||||
{
|
||||
|
||||
public class TurnitinSettingsModel {
|
||||
[JsonPropertyName("originality_report_visibility")]
|
||||
public string OriginalityReportVisibility { get; set; }
|
||||
|
||||
[JsonPropertyName("originality_report_visibility")]
|
||||
public string OriginalityReportVisibility { get; set; }
|
||||
[JsonPropertyName("s_paper_check")]
|
||||
public bool SPaperCheck { get; set; }
|
||||
|
||||
[JsonPropertyName("s_paper_check")]
|
||||
public bool SPaperCheck { get; set; }
|
||||
[JsonPropertyName("internet_check")]
|
||||
public bool InternetCheck { get; set; }
|
||||
|
||||
[JsonPropertyName("internet_check")]
|
||||
public bool InternetCheck { get; set; }
|
||||
[JsonPropertyName("journal_check")]
|
||||
public bool JournalCheck { get; set; }
|
||||
|
||||
[JsonPropertyName("journal_check")]
|
||||
public bool JournalCheck { get; set; }
|
||||
[JsonPropertyName("exclude_biblio")]
|
||||
public bool ExcludeBiblio { get; set; }
|
||||
|
||||
[JsonPropertyName("exclude_biblio")]
|
||||
public bool ExcludeBiblio { get; set; }
|
||||
[JsonPropertyName("exclude_quoted")]
|
||||
public bool ExcludeQuoted { get; set; }
|
||||
|
||||
[JsonPropertyName("exclude_quoted")]
|
||||
public bool ExcludeQuoted { get; set; }
|
||||
[JsonPropertyName("exclude_small_matches_type")]
|
||||
public bool? ExcludeSmallMatchesType { get; set; }
|
||||
|
||||
[JsonPropertyName("exclude_small_matches_type")]
|
||||
public bool? ExcludeSmallMatchesType { get; set; }
|
||||
|
||||
[JsonPropertyName("exclude_small_matches_value")]
|
||||
public uint? ExcludeSmallMatchesValue { get; set; }
|
||||
}
|
||||
[JsonPropertyName("exclude_small_matches_value")]
|
||||
public uint? ExcludeSmallMatchesValue { get; set; }
|
||||
}
|
||||
@@ -1,36 +1,36 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Authentications {
|
||||
namespace CanvasModel.Authentications;
|
||||
// NOTE: the api documentation for this model is incorrect
|
||||
public class AuthenticationEventModel
|
||||
{
|
||||
|
||||
// NOTE: the api documentation for this model is incorrect
|
||||
public class AuthenticationEventModel {
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("event_type")]
|
||||
public string EventType { get; set; }
|
||||
|
||||
[JsonPropertyName("event_type")]
|
||||
public string EventType { get; set; }
|
||||
|
||||
[JsonPropertyName("links")]
|
||||
public AuthenticationEventLinksModel Links { get; set; }
|
||||
}
|
||||
|
||||
public struct AuthenticationEventLinksModel {
|
||||
|
||||
[JsonPropertyName("login")]
|
||||
public ulong Login { get; set; }
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public ulong Account { get; set; }
|
||||
|
||||
[JsonPropertyName("user")]
|
||||
public ulong User { get; set; }
|
||||
|
||||
[JsonPropertyName("page_view")]
|
||||
public ulong? PageView { get; set; }
|
||||
}
|
||||
[JsonPropertyName("links")]
|
||||
public AuthenticationEventLinksModel Links { get; set; }
|
||||
}
|
||||
|
||||
public struct AuthenticationEventLinksModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("login")]
|
||||
public ulong Login { get; set; }
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public ulong Account { get; set; }
|
||||
|
||||
[JsonPropertyName("user")]
|
||||
public ulong User { get; set; }
|
||||
|
||||
[JsonPropertyName("page_view")]
|
||||
public ulong? PageView { get; set; }
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Authentications {
|
||||
public struct AuthenticationEventsResponseModel {
|
||||
namespace CanvasModel.Authentications;
|
||||
public struct AuthenticationEventsResponseModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("events")]
|
||||
public IEnumerable<AuthenticationEventModel> Events { get; set; }
|
||||
[JsonPropertyName("events")]
|
||||
public IEnumerable<AuthenticationEventModel> Events { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,54 +1,53 @@
|
||||
namespace Model.Calendar
|
||||
namespace CanvasModel.Calendar;
|
||||
|
||||
public record AssignmentEventModel
|
||||
{
|
||||
public record AssignmentEventModel
|
||||
{
|
||||
|
||||
// // A synthetic ID for the assignment
|
||||
// "id": "assignment_987",
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
// // The title of the assignment
|
||||
// "title": "Essay",
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
// // The due_at timestamp of the assignment
|
||||
// "start_at": "2012-07-19T23:59:00-06:00",
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
// // The due_at timestamp of the assignment
|
||||
// "end_at": "2012-07-19T23:59:00-06:00",
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
// // The HTML description of the assignment
|
||||
// "description": "<b>Write an essay. Whatever you want.</b>",
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
// // the context code of the (course) calendar this assignment belongs to
|
||||
// "context_code": "course_123",
|
||||
// // Current state of the assignment ('published' or 'deleted')
|
||||
// "workflow_state": "published",
|
||||
// // URL for this assignment (note that updating/deleting should be done via the
|
||||
// // Assignments API)
|
||||
// "url": "https://example.com/api/v1/calendar_events/assignment_987",
|
||||
// // URL for a user to view this assignment
|
||||
// "html_url": "http://example.com/courses/123/assignments/987",
|
||||
// // The due date of this assignment
|
||||
// "all_day_date": "2012-07-19",
|
||||
// // Boolean indicating whether this is an all-day event (e.g. assignment due at
|
||||
// // midnight)
|
||||
// "all_day": true,
|
||||
// // When the assignment was created
|
||||
// "created_at": "2012-07-12T10:55:20-06:00",
|
||||
// // When the assignment was last updated
|
||||
// "updated_at": "2012-07-12T10:55:20-06:00",
|
||||
// // The full assignment JSON data (See the Assignments API)
|
||||
// "assignment": null,
|
||||
// // The list of AssignmentOverrides that apply to this event (See the Assignments
|
||||
// // API). This information is useful for determining which students or sections
|
||||
// // this assignment-due event applies to.
|
||||
// "assignment_overrides": null,
|
||||
// // Boolean indicating whether this has important dates.
|
||||
// "important_dates": true
|
||||
// // A synthetic ID for the assignment
|
||||
// "id": "assignment_987",
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
// // The title of the assignment
|
||||
// "title": "Essay",
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
// // The due_at timestamp of the assignment
|
||||
// "start_at": "2012-07-19T23:59:00-06:00",
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
// // The due_at timestamp of the assignment
|
||||
// "end_at": "2012-07-19T23:59:00-06:00",
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
// // The HTML description of the assignment
|
||||
// "description": "<b>Write an essay. Whatever you want.</b>",
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
// // the context code of the (course) calendar this assignment belongs to
|
||||
// "context_code": "course_123",
|
||||
// // Current state of the assignment ('published' or 'deleted')
|
||||
// "workflow_state": "published",
|
||||
// // URL for this assignment (note that updating/deleting should be done via the
|
||||
// // Assignments API)
|
||||
// "url": "https://example.com/api/v1/calendar_events/assignment_987",
|
||||
// // URL for a user to view this assignment
|
||||
// "html_url": "http://example.com/courses/123/assignments/987",
|
||||
// // The due date of this assignment
|
||||
// "all_day_date": "2012-07-19",
|
||||
// // Boolean indicating whether this is an all-day event (e.g. assignment due at
|
||||
// // midnight)
|
||||
// "all_day": true,
|
||||
// // When the assignment was created
|
||||
// "created_at": "2012-07-12T10:55:20-06:00",
|
||||
// // When the assignment was last updated
|
||||
// "updated_at": "2012-07-12T10:55:20-06:00",
|
||||
// // The full assignment JSON data (See the Assignments API)
|
||||
// "assignment": null,
|
||||
// // The list of AssignmentOverrides that apply to this event (See the Assignments
|
||||
// // API). This information is useful for determining which students or sections
|
||||
// // this assignment-due event applies to.
|
||||
// "assignment_overrides": null,
|
||||
// // Boolean indicating whether this has important dates.
|
||||
// "important_dates": true
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,126 +2,125 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Assignments;
|
||||
using Model.Groups;
|
||||
using Model.Users;
|
||||
using CanvasModel.Assignments;
|
||||
using CanvasModel.Groups;
|
||||
using CanvasModel.Users;
|
||||
|
||||
namespace Model.Calendar
|
||||
namespace CanvasModel.Calendar;
|
||||
|
||||
/*
|
||||
* This class combines the fields of normal, reservation, time-slot, and assignment calendar events.
|
||||
* Concrete structure classes will specialize to these types and inherit from a common base.
|
||||
*/
|
||||
|
||||
public record CalendarEventModel
|
||||
{
|
||||
|
||||
/*
|
||||
* This class combines the fields of normal, reservation, time-slot, and assignment calendar events.
|
||||
* Concrete structure classes will specialize to these types and inherit from a common base.
|
||||
*/
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
public record CalendarEventModel {
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime StartAt { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime EndAt { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
[JsonPropertyName("location_name")]
|
||||
public string LocationName { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("location_address")]
|
||||
public string LocationAddress { get; set; }
|
||||
|
||||
[JsonPropertyName("location_name")]
|
||||
public string LocationName { get; set; }
|
||||
[JsonPropertyName("context_code")]
|
||||
public string ContextCode { get; set; }
|
||||
|
||||
[JsonPropertyName("location_address")]
|
||||
public string LocationAddress { get; set; }
|
||||
[JsonPropertyName("effective_context_code")]
|
||||
public string? EffectiveContextCode { get; set; }
|
||||
|
||||
[JsonPropertyName("context_code")]
|
||||
public string ContextCode { get; set; }
|
||||
[JsonPropertyName("all_context_codes")]
|
||||
public string AllContextCodes { get; set; } // comma separated
|
||||
|
||||
[JsonPropertyName("effective_context_code")]
|
||||
public string? EffectiveContextCode { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("all_context_codes")]
|
||||
public string AllContextCodes { get; set; } // comma separated
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("parent_event_id")]
|
||||
public string? ParentEventId { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool Hidden { get; set; }
|
||||
[JsonPropertyName("child_events_count")]
|
||||
public uint? ChildEventsCount { get; set; }
|
||||
|
||||
[JsonPropertyName("parent_event_id")]
|
||||
public string? ParentEventId { get; set; }
|
||||
[JsonPropertyName("child_events")]
|
||||
public IEnumerable<CalendarEventModel>? ChildEvents { get; set; }
|
||||
|
||||
[JsonPropertyName("child_events_count")]
|
||||
public uint? ChildEventsCount { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("child_events")]
|
||||
public IEnumerable<CalendarEventModel>? ChildEvents { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("all_day_date")]
|
||||
public DateTime? AllDayDate { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("all_day")]
|
||||
public bool AllDay { get; set; }
|
||||
|
||||
[JsonPropertyName("all_day_date")]
|
||||
public DateTime? AllDayDate { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("all_day")]
|
||||
public bool AllDay { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("appointment_group_id")]
|
||||
public ulong AppointmentGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
[JsonPropertyName("appointment_group_url")]
|
||||
public string AppointmentGroupUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("appointment_group_id")]
|
||||
public ulong AppointmentGroupId { get; set; }
|
||||
[JsonPropertyName("own_reservation")]
|
||||
public bool? OwnReservation { get; set; }
|
||||
|
||||
[JsonPropertyName("appointment_group_url")]
|
||||
public string AppointmentGroupUrl { get; set; }
|
||||
[JsonPropertyName("reserve_url")]
|
||||
public string? ReserveUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("own_reservation")]
|
||||
public bool? OwnReservation { get; set; }
|
||||
[JsonPropertyName("reserved")]
|
||||
public bool? Reserved { get; set; }
|
||||
|
||||
[JsonPropertyName("reserve_url")]
|
||||
public string? ReserveUrl { get; set; }
|
||||
[JsonPropertyName("participant_type")]
|
||||
public string ParticipantType { get; set; } // User|Group
|
||||
|
||||
[JsonPropertyName("reserved")]
|
||||
public bool? Reserved { get; set; }
|
||||
[JsonPropertyName("participant_limit")]
|
||||
public uint? ParticipantLimit { get; set; }
|
||||
|
||||
[JsonPropertyName("participant_type")]
|
||||
public string ParticipantType { get; set; } // User|Group
|
||||
[JsonPropertyName("available_slots")]
|
||||
public uint? AvailableSlots { get; set; }
|
||||
|
||||
[JsonPropertyName("participant_limit")]
|
||||
public uint? ParticipantLimit { get; set; }
|
||||
[JsonPropertyName("user")]
|
||||
public UserModel? User { get; set; }
|
||||
|
||||
[JsonPropertyName("available_slots")]
|
||||
public uint? AvailableSlots { get; set; }
|
||||
[JsonPropertyName("group")]
|
||||
public GroupModel? Group { get; set; }
|
||||
|
||||
[JsonPropertyName("user")]
|
||||
public UserModel? User { get; set; }
|
||||
[JsonPropertyName("assignment")]
|
||||
public AssignmentModel? Assignment { get; set; }
|
||||
|
||||
[JsonPropertyName("group")]
|
||||
public GroupModel? Group { get; set; }
|
||||
[JsonPropertyName("assignment_overrides")]
|
||||
public IEnumerable<AssignmentOverrideModel>? AssignmentOverrides { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment")]
|
||||
public AssignmentModel? Assignment { get; set; }
|
||||
[JsonPropertyName("can_manage_appointment_group")]
|
||||
public bool? CanManageAppointmentGroup { get; set; } // undocumented
|
||||
|
||||
[JsonPropertyName("assignment_overrides")]
|
||||
public IEnumerable<AssignmentOverrideModel>? AssignmentOverrides { get; set; }
|
||||
|
||||
[JsonPropertyName("can_manage_appointment_group")]
|
||||
public bool? CanManageAppointmentGroup { get; set; } // undocumented
|
||||
|
||||
[JsonPropertyName("participants_per_appointment")]
|
||||
public uint? ParticipantsPerAppointment { get; set; }
|
||||
}
|
||||
[JsonPropertyName("participants_per_appointment")]
|
||||
public uint? ParticipantsPerAppointment { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
|
||||
namespace Model.ContentShares {
|
||||
namespace CanvasModel.ContentShares;
|
||||
public struct ContentExportIdModel
|
||||
{
|
||||
|
||||
public struct ContentExportIdModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
}
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,44 +2,43 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Courses;
|
||||
using Model.Users;
|
||||
using CanvasModel.Courses;
|
||||
using CanvasModel.Users;
|
||||
|
||||
namespace Model.ContentShares {
|
||||
namespace CanvasModel.ContentShares;
|
||||
public class ContentShareModel
|
||||
{
|
||||
|
||||
public class ContentShareModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong? UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong? UserId { get; set; }
|
||||
[JsonPropertyName("sender")]
|
||||
public ShortUserModel? Sender { get; set; }
|
||||
|
||||
[JsonPropertyName("sender")]
|
||||
public ShortUserModel? Sender { get; set; }
|
||||
[JsonPropertyName("receivers")]
|
||||
public IEnumerable<ShortUserModel>? Receivers { get; set; }
|
||||
|
||||
[JsonPropertyName("receivers")]
|
||||
public IEnumerable<ShortUserModel>? Receivers { get; set; }
|
||||
[JsonPropertyName("source_course")]
|
||||
public ShortCourseModel? SourceCourse { get; set; }
|
||||
|
||||
[JsonPropertyName("source_course")]
|
||||
public ShortCourseModel? SourceCourse { get; set; }
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("content_export")]
|
||||
public ContentExportIdModel? ContentExport { get; set; }
|
||||
}
|
||||
[JsonPropertyName("content_export")]
|
||||
public ContentExportIdModel? ContentExport { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,35 +2,34 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Discussions;
|
||||
using Model.Submissions;
|
||||
using CanvasModel.Discussions;
|
||||
using CanvasModel.Submissions;
|
||||
|
||||
namespace Model.Conversations {
|
||||
namespace CanvasModel.Conversations;
|
||||
public class ConversationMessageModel
|
||||
{
|
||||
|
||||
public class ConversationMessageModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("body")]
|
||||
public string Body { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string Body { get; set; }
|
||||
[JsonPropertyName("author_id")]
|
||||
public ulong AuthorId { get; set; }
|
||||
|
||||
[JsonPropertyName("author_id")]
|
||||
public ulong AuthorId { get; set; }
|
||||
[JsonPropertyName("generated")]
|
||||
public bool Generated { get; set; }
|
||||
|
||||
[JsonPropertyName("generated")]
|
||||
public bool Generated { get; set; }
|
||||
[JsonPropertyName("media_comment")]
|
||||
public MediaCommentModel? MediaComment { get; set; }
|
||||
|
||||
[JsonPropertyName("media_comment")]
|
||||
public MediaCommentModel? MediaComment { get; set; }
|
||||
[JsonPropertyName("forwarded_messages")]
|
||||
public IEnumerable<ConversationMessageModel> ForwardedMessages { get; set; }
|
||||
|
||||
[JsonPropertyName("forwarded_messages")]
|
||||
public IEnumerable<ConversationMessageModel> ForwardedMessages { get; set; }
|
||||
|
||||
[JsonPropertyName("attachments")]
|
||||
public IEnumerable<FileAttachmentModel> Attachments { get; set; }
|
||||
}
|
||||
[JsonPropertyName("attachments")]
|
||||
public IEnumerable<FileAttachmentModel> Attachments { get; set; }
|
||||
}
|
||||
|
||||
@@ -3,56 +3,55 @@ using System.Collections.Generic;
|
||||
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
namespace CanvasModel.Conversations;
|
||||
public class ConversationModel
|
||||
{
|
||||
|
||||
public class ConversationModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("subject")]
|
||||
public string Subject { get; set; }
|
||||
|
||||
[JsonPropertyName("subject")]
|
||||
public string Subject { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("last_message")]
|
||||
public string LastMessage { get; set; }
|
||||
|
||||
[JsonPropertyName("last_message")]
|
||||
public string LastMessage { get; set; }
|
||||
[JsonPropertyName("last_message_at")]
|
||||
public DateTime? LastMessageAt { get; set; }
|
||||
|
||||
[JsonPropertyName("last_message_at")]
|
||||
public DateTime? LastMessageAt { get; set; }
|
||||
[JsonPropertyName("message_count")]
|
||||
public uint MessageCount { get; set; }
|
||||
|
||||
[JsonPropertyName("message_count")]
|
||||
public uint MessageCount { get; set; }
|
||||
[JsonPropertyName("subscribed")]
|
||||
public bool? Subscribed { get; set; }
|
||||
|
||||
[JsonPropertyName("subscribed")]
|
||||
public bool? Subscribed { get; set; }
|
||||
[JsonPropertyName("private")]
|
||||
public bool? Private { get; set; }
|
||||
|
||||
[JsonPropertyName("private")]
|
||||
public bool? Private { get; set; }
|
||||
[JsonPropertyName("starred")]
|
||||
public bool? Starred { get; set; }
|
||||
|
||||
[JsonPropertyName("starred")]
|
||||
public bool? Starred { get; set; }
|
||||
[JsonPropertyName("properties")]
|
||||
public IEnumerable<string>? Properties { get; set; }
|
||||
|
||||
[JsonPropertyName("properties")]
|
||||
public IEnumerable<string>? Properties { get; set; }
|
||||
[JsonPropertyName("audience")]
|
||||
public IEnumerable<ulong>? Audience { get; set; }
|
||||
|
||||
[JsonPropertyName("audience")]
|
||||
public IEnumerable<ulong>? Audience { get; set; }
|
||||
[JsonPropertyName("audience_contexts")]
|
||||
public Dictionary<string, Dictionary<string, IEnumerable<string>>>? AudienceContexts { get; set; }
|
||||
|
||||
[JsonPropertyName("audience_contexts")]
|
||||
public Dictionary<string, Dictionary<string, IEnumerable<string>>>? AudienceContexts { get; set; }
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string AvatarUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string AvatarUrl { get; set; }
|
||||
[JsonPropertyName("participants")]
|
||||
public IEnumerable<ConversationParticipantModel>? Participants { get; set; }
|
||||
|
||||
[JsonPropertyName("participants")]
|
||||
public IEnumerable<ConversationParticipantModel>? Participants { get; set; }
|
||||
[JsonPropertyName("visible")]
|
||||
public bool? Visible { get; set; }
|
||||
|
||||
[JsonPropertyName("visible")]
|
||||
public bool? Visible { get; set; }
|
||||
|
||||
[JsonPropertyName("context_name")]
|
||||
public string ContextName { get; set; }
|
||||
}
|
||||
[JsonPropertyName("context_name")]
|
||||
public string ContextName { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
namespace CanvasModel.Conversations;
|
||||
public class ConversationParticipantModel
|
||||
{
|
||||
|
||||
public class ConversationParticipantModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string? AvatarUrl { get; set; }
|
||||
}
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string? AvatarUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Conversations {
|
||||
namespace CanvasModel.Conversations;
|
||||
public class DetailedConversationModel : ConversationModel
|
||||
{
|
||||
|
||||
public class DetailedConversationModel : ConversationModel {
|
||||
[JsonPropertyName("messages")]
|
||||
public IEnumerable<ConversationMessageModel> Messages { get; set; }
|
||||
|
||||
[JsonPropertyName("messages")]
|
||||
public IEnumerable<ConversationMessageModel> Messages { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
|
||||
public struct CalendarLinkModel {
|
||||
[JsonPropertyName("ics")]
|
||||
public string Ics { get; set; }
|
||||
}
|
||||
namespace CanvasModel.Courses;
|
||||
public struct CalendarLinkModel
|
||||
{
|
||||
[JsonPropertyName("ics")]
|
||||
public string Ics { get; set; }
|
||||
}
|
||||
@@ -2,151 +2,150 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Enrollments;
|
||||
using CanvasModel.Enrollments;
|
||||
|
||||
namespace Model.Courses {
|
||||
namespace CanvasModel.Courses;
|
||||
public class CourseModel
|
||||
{
|
||||
|
||||
public class CourseModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("sis_course_id")]
|
||||
public string SisCourseId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_course_id")]
|
||||
public string SisCourseId { get; set; }
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
[JsonPropertyName("integration_id")]
|
||||
public string IntegrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("integration_id")]
|
||||
public string IntegrationId { get; set; }
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("course_code")]
|
||||
public string CourseCode { get; set; }
|
||||
|
||||
[JsonPropertyName("course_code")]
|
||||
public string CourseCode { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong AccountId { get; set; }
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong RootAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong RootAccountId { get; set; }
|
||||
[JsonPropertyName("enrollment_term_id")]
|
||||
public ulong EnrollmentTermId { get; set; }
|
||||
|
||||
[JsonPropertyName("enrollment_term_id")]
|
||||
public ulong EnrollmentTermId { get; set; }
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
[JsonPropertyName("locale")]
|
||||
public string Locale { get; set; }
|
||||
|
||||
[JsonPropertyName("locale")]
|
||||
public string Locale { get; set; }
|
||||
[JsonPropertyName("enrollments")]
|
||||
public IEnumerable<EnrollmentModel>? Enrollments { get; set; }
|
||||
|
||||
[JsonPropertyName("enrollments")]
|
||||
public IEnumerable<EnrollmentModel>? Enrollments { get; set; }
|
||||
[JsonPropertyName("total_students")]
|
||||
public ulong? TotalStudents { get; set; }
|
||||
|
||||
[JsonPropertyName("total_students")]
|
||||
public ulong? TotalStudents { get; set; }
|
||||
[JsonPropertyName("calendar")]
|
||||
public CalendarLinkModel Calendar { get; set; }
|
||||
|
||||
[JsonPropertyName("calendar")]
|
||||
public CalendarLinkModel Calendar { get; set; }
|
||||
[JsonPropertyName("default_view")]
|
||||
public string DefaultView { get; set; }
|
||||
|
||||
[JsonPropertyName("default_view")]
|
||||
public string DefaultView { get; set; }
|
||||
[JsonPropertyName("syllabus_body")]
|
||||
public string SyllabusBody { get; set; }
|
||||
|
||||
[JsonPropertyName("syllabus_body")]
|
||||
public string SyllabusBody { get; set; }
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint? NeedsGradingCount { get; set; }
|
||||
|
||||
[JsonPropertyName("needs_grading_count")]
|
||||
public uint? NeedsGradingCount { get; set; }
|
||||
[JsonPropertyName("term")]
|
||||
public TermModel? Term { get; set; }
|
||||
|
||||
[JsonPropertyName("term")]
|
||||
public TermModel? Term { get; set; }
|
||||
[JsonPropertyName("course_progress")]
|
||||
public CourseProgressModel? CourseProgress { get; set; }
|
||||
|
||||
[JsonPropertyName("course_progress")]
|
||||
public CourseProgressModel? CourseProgress { get; set; }
|
||||
[JsonPropertyName("apply_assignment_group_weights")]
|
||||
public bool? ApplyAssignmentGroupWeights { get; set; }
|
||||
|
||||
[JsonPropertyName("apply_assignment_group_weights")]
|
||||
public bool? ApplyAssignmentGroupWeights { get; set; }
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
[JsonPropertyName("is_public")]
|
||||
public bool? IsPublic { get; set; }
|
||||
|
||||
[JsonPropertyName("is_public")]
|
||||
public bool? IsPublic { get; set; }
|
||||
[JsonPropertyName("is_public_to_auth_users")]
|
||||
public bool? IsPublicToAuthUsers { get; set; }
|
||||
|
||||
[JsonPropertyName("is_public_to_auth_users")]
|
||||
public bool? IsPublicToAuthUsers { get; set; }
|
||||
[JsonPropertyName("public_syllabus")]
|
||||
public bool? PublicSyllabus { get; set; }
|
||||
|
||||
[JsonPropertyName("public_syllabus")]
|
||||
public bool? PublicSyllabus { get; set; }
|
||||
[JsonPropertyName("public_syllabus_to_auth")]
|
||||
public bool? PublicSyllabusToAuth { get; set; }
|
||||
|
||||
[JsonPropertyName("public_syllabus_to_auth")]
|
||||
public bool? PublicSyllabusToAuth { get; set; }
|
||||
[JsonPropertyName("public_description")]
|
||||
public string? PublicDescription { get; set; }
|
||||
|
||||
[JsonPropertyName("public_description")]
|
||||
public string? PublicDescription { get; set; }
|
||||
[JsonPropertyName("storage_quota_mb")]
|
||||
public ulong StorageQuotaMb { get; set; }
|
||||
|
||||
[JsonPropertyName("storage_quota_mb")]
|
||||
public ulong StorageQuotaMb { get; set; }
|
||||
[JsonPropertyName("storage_quota_used_mb")]
|
||||
public ulong StorageQuotaUsedMb { get; set; }
|
||||
|
||||
[JsonPropertyName("storage_quota_used_mb")]
|
||||
public ulong StorageQuotaUsedMb { get; set; }
|
||||
[JsonPropertyName("hide_final_grades")]
|
||||
public bool? HideFinalGrades { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_final_grades")]
|
||||
public bool? HideFinalGrades { get; set; }
|
||||
[JsonPropertyName("license")]
|
||||
public string License { get; set; }
|
||||
|
||||
[JsonPropertyName("license")]
|
||||
public string License { get; set; }
|
||||
[JsonPropertyName("allow_student_assignment_edits")]
|
||||
public bool? AllowStudentAssignmentEdits { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_assignment_edits")]
|
||||
public bool? AllowStudentAssignmentEdits { get; set; }
|
||||
[JsonPropertyName("allow_wiki_comments")]
|
||||
public bool? AllowWikiComments { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_wiki_comments")]
|
||||
public bool? AllowWikiComments { get; set; }
|
||||
[JsonPropertyName("allow_student_forum_attachments")]
|
||||
public bool? AllowStudentForumAttachments { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_forum_attachments")]
|
||||
public bool? AllowStudentForumAttachments { get; set; }
|
||||
[JsonPropertyName("open_enrollment")]
|
||||
public bool? OpenEnrollment { get; set; }
|
||||
|
||||
[JsonPropertyName("open_enrollment")]
|
||||
public bool? OpenEnrollment { get; set; }
|
||||
[JsonPropertyName("self_enrollment")]
|
||||
public bool? SelfEnrollment { get; set; }
|
||||
|
||||
[JsonPropertyName("self_enrollment")]
|
||||
public bool? SelfEnrollment { get; set; }
|
||||
[JsonPropertyName("restrict_enrollments_to_courses")]
|
||||
public bool? RestrictEnrollmentsToCourseDates { get; set; }
|
||||
|
||||
[JsonPropertyName("restrict_enrollments_to_courses")]
|
||||
public bool? RestrictEnrollmentsToCourseDates { get; set; }
|
||||
[JsonPropertyName("course_format")]
|
||||
public string CourseFormat { get; set; }
|
||||
|
||||
[JsonPropertyName("course_format")]
|
||||
public string CourseFormat { get; set; }
|
||||
[JsonPropertyName("access_restricted_by_date")]
|
||||
public bool? AccessRestrictedByDate { get; set; }
|
||||
|
||||
[JsonPropertyName("access_restricted_by_date")]
|
||||
public bool? AccessRestrictedByDate { get; set; }
|
||||
[JsonPropertyName("time_zone")]
|
||||
public string TimeZone { get; set; }
|
||||
|
||||
[JsonPropertyName("time_zone")]
|
||||
public string TimeZone { get; set; }
|
||||
[JsonPropertyName("blueprint")]
|
||||
public bool? Blueprint { get; set; }
|
||||
|
||||
[JsonPropertyName("blueprint")]
|
||||
public bool? Blueprint { get; set; }
|
||||
[JsonPropertyName("blueprint_restrictions")]
|
||||
public Dictionary<string, bool>? BlueprintRestrictions { get; set; }
|
||||
|
||||
[JsonPropertyName("blueprint_restrictions")]
|
||||
public Dictionary<string, bool>? BlueprintRestrictions { get; set; }
|
||||
|
||||
[JsonPropertyName("blueprint_restrictions_by_object_type")]
|
||||
public Dictionary<string, Dictionary<string, bool>>? BlueprintRestrictionsByObjectType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("blueprint_restrictions_by_object_type")]
|
||||
public Dictionary<string, Dictionary<string, bool>>? BlueprintRestrictionsByObjectType { get; set; }
|
||||
}
|
||||
@@ -2,20 +2,19 @@ using System;
|
||||
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
namespace CanvasModel.Courses;
|
||||
public class CourseProgressModel
|
||||
{
|
||||
|
||||
public class CourseProgressModel {
|
||||
[JsonPropertyName("requirement_count")]
|
||||
public uint? RequirementCount { get; set; }
|
||||
|
||||
[JsonPropertyName("requirement_count")]
|
||||
public uint? RequirementCount { get; set; }
|
||||
[JsonPropertyName("requirement_completed_count")]
|
||||
public uint? RequirementCompletedCount { get; set; }
|
||||
|
||||
[JsonPropertyName("requirement_completed_count")]
|
||||
public uint? RequirementCompletedCount { get; set; }
|
||||
[JsonPropertyName("next_requirement_url")]
|
||||
public string? NextRequirementUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("next_requirement_url")]
|
||||
public string? NextRequirementUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("completed_at")]
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("completed_at")]
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
}
|
||||
@@ -1,49 +1,48 @@
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
namespace CanvasModel.Courses;
|
||||
public class CourseSettingsModel
|
||||
{
|
||||
|
||||
public class CourseSettingsModel {
|
||||
[JsonPropertyName("allow_final_grade_override")]
|
||||
public bool AllowFinalGradeOverride { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_final_grade_override")]
|
||||
public bool AllowFinalGradeOverride { get; set; }
|
||||
[JsonPropertyName("allow_student_discussion_topics")]
|
||||
public bool AllowStudentDiscussionTopics { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_discussion_topics")]
|
||||
public bool AllowStudentDiscussionTopics { get; set; }
|
||||
[JsonPropertyName("allow_student_forum_attachments")]
|
||||
public bool AllowStudentForumAttachments { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_forum_attachments")]
|
||||
public bool AllowStudentForumAttachments { get; set; }
|
||||
[JsonPropertyName("allow_student_discussion_editing")]
|
||||
public bool AllowStudentDiscussionEditing { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_discussion_editing")]
|
||||
public bool AllowStudentDiscussionEditing { get; set; }
|
||||
[JsonPropertyName("grading_standard_enabled")]
|
||||
public bool GradingStandardEnabled { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_standard_enabled")]
|
||||
public bool GradingStandardEnabled { get; set; }
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_standard_id")]
|
||||
public ulong? GradingStandardId { get; set; }
|
||||
[JsonPropertyName("allow_student_organized_groups")]
|
||||
public bool AllowStudentOrganizedGroups { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_student_organized_groups")]
|
||||
public bool AllowStudentOrganizedGroups { get; set; }
|
||||
[JsonPropertyName("hide_final_groups")]
|
||||
public bool HideFinalGrades { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_final_groups")]
|
||||
public bool HideFinalGrades { get; set; }
|
||||
[JsonPropertyName("hide_distributor_graphs")]
|
||||
public bool HideDistributionGraphs { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_distributor_graphs")]
|
||||
public bool HideDistributionGraphs { get; set; }
|
||||
[JsonPropertyName("lock_all_announcements")]
|
||||
public bool LockAllAnnouncements { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_all_announcements")]
|
||||
public bool LockAllAnnouncements { get; set; }
|
||||
[JsonPropertyName("restrict_student_past_view")]
|
||||
public bool RestrictStudentPastView { get; set; }
|
||||
|
||||
[JsonPropertyName("restrict_student_past_view")]
|
||||
public bool RestrictStudentPastView { get; set; }
|
||||
[JsonPropertyName("restrict_student_future_view")]
|
||||
public bool RestrictStudentFutureView { get; set; }
|
||||
|
||||
[JsonPropertyName("restrict_student_future_view")]
|
||||
public bool RestrictStudentFutureView { get; set; }
|
||||
[JsonPropertyName("show_announcements_on_home_page")]
|
||||
public bool ShowAnnouncementsOnHomePage { get; set; }
|
||||
|
||||
[JsonPropertyName("show_announcements_on_home_page")]
|
||||
public bool ShowAnnouncementsOnHomePage { get; set; }
|
||||
|
||||
[JsonPropertyName("home_page_announcements_limit")]
|
||||
public long HomePageAnnouncementLimit { get; set; }
|
||||
}
|
||||
[JsonPropertyName("home_page_announcements_limit")]
|
||||
public long HomePageAnnouncementLimit { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
namespace CanvasModel.Courses;
|
||||
public class ShortCourseModel
|
||||
{
|
||||
|
||||
public class ShortCourseModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,20 +1,17 @@
|
||||
using System;
|
||||
|
||||
namespace CanvasModel.Courses;
|
||||
public class TermModel
|
||||
{
|
||||
|
||||
namespace Model.Courses {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
public class TermModel {
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
}
|
||||
@@ -1,13 +1,12 @@
|
||||
|
||||
|
||||
namespace Model.CustomGradebookColumns {
|
||||
namespace CanvasModel.CustomGradebookColumns;
|
||||
public struct ColumnDatumModel
|
||||
{
|
||||
|
||||
public struct ColumnDatumModel {
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; set; }
|
||||
|
||||
[JsonPropertyName("content")]
|
||||
public string Content { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
}
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.CustomGradebookColumns {
|
||||
namespace CanvasModel.CustomGradebookColumns;
|
||||
public class CustomColumnModel
|
||||
{
|
||||
|
||||
public class CustomColumnModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("teacher_notes")]
|
||||
public bool? TeacherNotes { get; set; }
|
||||
|
||||
[JsonPropertyName("teacher_notes")]
|
||||
public bool? TeacherNotes { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("position")]
|
||||
public int? Position { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public int? Position { get; set; }
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool? Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool? Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("read_only")]
|
||||
public bool? ReadOnly { get; set; }
|
||||
}
|
||||
[JsonPropertyName("read_only")]
|
||||
public bool? ReadOnly { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,116 +1,115 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Model.Users;
|
||||
using CanvasModel.Users;
|
||||
|
||||
|
||||
namespace Model.Discussions {
|
||||
namespace CanvasModel.Discussions;
|
||||
public class DiscussionTopicModel
|
||||
{
|
||||
|
||||
public class DiscussionTopicModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("posted_at")]
|
||||
public DateTime? PostedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("posted_at")]
|
||||
public DateTime? PostedAt { get; set; }
|
||||
[JsonPropertyName("last_reply_at")]
|
||||
public DateTime? LastReplyAt { get; set; }
|
||||
|
||||
[JsonPropertyName("last_reply_at")]
|
||||
public DateTime? LastReplyAt { get; set; }
|
||||
[JsonPropertyName("require_initial_post")]
|
||||
public bool? RequireInitialPost { get; set; }
|
||||
|
||||
[JsonPropertyName("require_initial_post")]
|
||||
public bool? RequireInitialPost { get; set; }
|
||||
[JsonPropertyName("user_can_see_posts")]
|
||||
public bool? UserCanSeePosts { get; set; }
|
||||
|
||||
[JsonPropertyName("user_can_see_posts")]
|
||||
public bool? UserCanSeePosts { get; set; }
|
||||
[JsonPropertyName("discussion_subentry_count")]
|
||||
public uint? DiscussionSubentryCount { get; set; }
|
||||
|
||||
[JsonPropertyName("discussion_subentry_count")]
|
||||
public uint? DiscussionSubentryCount { get; set; }
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
[JsonPropertyName("unread_count")]
|
||||
public uint? UnreadCount { get; set; }
|
||||
|
||||
[JsonPropertyName("unread_count")]
|
||||
public uint? UnreadCount { get; set; }
|
||||
[JsonPropertyName("subscribed")]
|
||||
public bool? Subscribed { get; set; }
|
||||
|
||||
[JsonPropertyName("subscribed")]
|
||||
public bool? Subscribed { get; set; }
|
||||
[JsonPropertyName("subscription_hold")]
|
||||
public string SubscriptionHold { get; set; }
|
||||
|
||||
[JsonPropertyName("subscription_hold")]
|
||||
public string SubscriptionHold { get; set; }
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public int AssignmentId { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_id")]
|
||||
public int AssignmentId { get; set; }
|
||||
[JsonPropertyName("delayed_post_at")]
|
||||
public DateTime? DelayedPostAt { get; set; }
|
||||
|
||||
[JsonPropertyName("delayed_post_at")]
|
||||
public DateTime? DelayedPostAt { get; set; }
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("locked")]
|
||||
public bool? Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("locked")]
|
||||
public bool? Locked { get; set; }
|
||||
[JsonPropertyName("pinned")]
|
||||
public bool? Pinned { get; set; }
|
||||
|
||||
[JsonPropertyName("pinned")]
|
||||
public bool? Pinned { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
[JsonPropertyName("lock_info")]
|
||||
public object LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
public object LockInfo { get; set; }
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string LockExplanation { get; set; }
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
[JsonPropertyName("topic_children")]
|
||||
public IEnumerable<uint> TopicChildren { get; set; }
|
||||
|
||||
[JsonPropertyName("topic_children")]
|
||||
public IEnumerable<uint> TopicChildren { get; set; }
|
||||
[JsonPropertyName("group_topic_children")]
|
||||
public object GroupTopicChildren { get; set; }
|
||||
|
||||
[JsonPropertyName("group_topic_children")]
|
||||
public object GroupTopicChildren { get; set; }
|
||||
[JsonPropertyName("root_topic_id")]
|
||||
public ulong? RootTopicId { get; set; }
|
||||
|
||||
[JsonPropertyName("root_topic_id")]
|
||||
public ulong? RootTopicId { get; set; }
|
||||
[JsonPropertyName("podcast_url")]
|
||||
public string PodcastUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("podcast_url")]
|
||||
public string PodcastUrl { get; set; }
|
||||
[JsonPropertyName("discussion_type")]
|
||||
public string DiscussionType { get; set; }
|
||||
|
||||
[JsonPropertyName("discussion_type")]
|
||||
public string DiscussionType { get; set; }
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong? GroupCategoryId { get; set; }
|
||||
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong? GroupCategoryId { get; set; }
|
||||
[JsonPropertyName("attachments")]
|
||||
public IEnumerable<FileAttachmentModel> Attachments { get; set; }
|
||||
|
||||
[JsonPropertyName("attachments")]
|
||||
public IEnumerable<FileAttachmentModel> Attachments { get; set; }
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
[JsonPropertyName("allow_rating")]
|
||||
public bool? AllowRating { get; set; }
|
||||
|
||||
[JsonPropertyName("allow_rating")]
|
||||
public bool? AllowRating { get; set; }
|
||||
[JsonPropertyName("only_graders_can_rate")]
|
||||
public bool? OnlyGradersCanRate { get; set; }
|
||||
|
||||
[JsonPropertyName("only_graders_can_rate")]
|
||||
public bool? OnlyGradersCanRate { get; set; }
|
||||
[JsonPropertyName("sort_by_rating")]
|
||||
public bool? SortByRating { get; set; }
|
||||
|
||||
[JsonPropertyName("sort_by_rating")]
|
||||
public bool? SortByRating { get; set; }
|
||||
|
||||
[JsonPropertyName("author")]
|
||||
public UserDisplayModel Author { get; set; }
|
||||
}
|
||||
[JsonPropertyName("author")]
|
||||
public UserDisplayModel Author { get; set; }
|
||||
}
|
||||
@@ -1,22 +1,21 @@
|
||||
|
||||
|
||||
|
||||
namespace Model.Discussions {
|
||||
namespace CanvasModel.Discussions;
|
||||
public class FileAttachmentModel
|
||||
{
|
||||
|
||||
public class FileAttachmentModel {
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("filename")]
|
||||
public string Filename { get; set; }
|
||||
|
||||
[JsonPropertyName("filename")]
|
||||
public string Filename { get; set; }
|
||||
|
||||
[JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
[JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -4,46 +4,45 @@ using System.Collections.Generic;
|
||||
|
||||
|
||||
|
||||
namespace Model.Discussions {
|
||||
namespace CanvasModel.Discussions;
|
||||
public class TopicEntryModel
|
||||
{
|
||||
|
||||
public class TopicEntryModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
[JsonPropertyName("editor_id")]
|
||||
public ulong? EditorId { get; set; }
|
||||
|
||||
[JsonPropertyName("editor_id")]
|
||||
public ulong? EditorId { get; set; }
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
[JsonPropertyName("forced_read_state")]
|
||||
public bool ForcedReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("forced_read_state")]
|
||||
public bool ForcedReadState { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
[JsonPropertyName("recent_replies")]
|
||||
public IEnumerable<TopicReplyModel>? RecentReplies { get; set; }
|
||||
|
||||
[JsonPropertyName("recent_replies")]
|
||||
public IEnumerable<TopicReplyModel>? RecentReplies { get; set; }
|
||||
|
||||
[JsonPropertyName("has_more_replies")]
|
||||
public bool? HasMoreReplies { get; set; }
|
||||
[JsonPropertyName("has_more_replies")]
|
||||
public bool? HasMoreReplies { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,34 +2,33 @@ using System;
|
||||
|
||||
|
||||
|
||||
namespace Model.Discussions {
|
||||
namespace CanvasModel.Discussions;
|
||||
public class TopicReplyModel
|
||||
{
|
||||
|
||||
public class TopicReplyModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
[JsonPropertyName("editor_id")]
|
||||
public ulong? EditorId { get; set; }
|
||||
|
||||
[JsonPropertyName("editor_id")]
|
||||
public ulong? EditorId { get; set; }
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[JsonPropertyName("user_name")]
|
||||
public string UserName { get; set; }
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("read_state")]
|
||||
public string ReadState { get; set; }
|
||||
[JsonPropertyName("forced_read_state")]
|
||||
public bool? ForcedReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("forced_read_state")]
|
||||
public bool? ForcedReadState { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -2,41 +2,42 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.EnrollmentTerms {
|
||||
public class EnrollmentTermModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
namespace CanvasModel.EnrollmentTerms;
|
||||
public class EnrollmentTermModel
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_term_id")]
|
||||
public string SisTermId { get; set; }
|
||||
[JsonPropertyName("sis_term_id")]
|
||||
public string SisTermId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
|
||||
[JsonPropertyName("grading_period_group_id")]
|
||||
public ulong? GradingPeriodGroupId { get; set; }
|
||||
[JsonPropertyName("grading_period_group_id")]
|
||||
public ulong? GradingPeriodGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("overrides")]
|
||||
public Dictionary<string, EnrollmentTermDateOverrideModel> Overrides { get; set; }
|
||||
}
|
||||
|
||||
public struct EnrollmentTermDateOverrideModel {
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
}
|
||||
[JsonPropertyName("overrides")]
|
||||
public Dictionary<string, EnrollmentTermDateOverrideModel> Overrides { get; set; }
|
||||
}
|
||||
|
||||
public struct EnrollmentTermDateOverrideModel
|
||||
{
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.EnrollmentTerms {
|
||||
public struct RedundantEnrollmentTermsResponse {
|
||||
[JsonPropertyName("enrollment_terms")]
|
||||
public IEnumerable<EnrollmentTermModel> EnrollmentTerms { get; set; }
|
||||
}
|
||||
namespace CanvasModel.EnrollmentTerms;
|
||||
public struct RedundantEnrollmentTermsResponse
|
||||
{
|
||||
[JsonPropertyName("enrollment_terms")]
|
||||
public IEnumerable<EnrollmentTermModel> EnrollmentTerms { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,139 +1,135 @@
|
||||
using System;
|
||||
using CanvasModel.Users;
|
||||
|
||||
namespace CanvasModel.Enrollments;
|
||||
public class EnrollmentModel
|
||||
{
|
||||
|
||||
using Model.Users;
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
namespace Model.Enrollments {
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong CourseId { get; set; }
|
||||
|
||||
public class EnrollmentModel {
|
||||
[JsonPropertyName("sis_course_id")]
|
||||
public string? SisCourseId { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("course_integration_id")]
|
||||
public string? CourseIntegrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong CourseId { get; set; }
|
||||
[JsonPropertyName("course_section_id")]
|
||||
public ulong? CourseSectionId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_course_id")]
|
||||
public string? SisCourseId { get; set; }
|
||||
[JsonPropertyName("section_integration_id")]
|
||||
public string? SectionIntegrationId { get; set; }
|
||||
|
||||
[JsonPropertyName("course_integration_id")]
|
||||
public string? CourseIntegrationId { get; set; }
|
||||
[JsonPropertyName("sis_account_id")]
|
||||
public string? SisAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("course_section_id")]
|
||||
public ulong? CourseSectionId { get; set; }
|
||||
[JsonPropertyName("sis_section_id")]
|
||||
public string? SisSectionId { get; set; }
|
||||
|
||||
[JsonPropertyName("section_integration_id")]
|
||||
public string? SectionIntegrationId { get; set; }
|
||||
[JsonPropertyName("sis_user_id")]
|
||||
public string? SisUserId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_account_id")]
|
||||
public string? SisAccountId { get; set; }
|
||||
[JsonPropertyName("enrollment_state")]
|
||||
public string EnrollmentState { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_section_id")]
|
||||
public string? SisSectionId { get; set; }
|
||||
[JsonPropertyName("limit_privileges_to_course_section")]
|
||||
public bool? LimitPrivilegesToCourseSection { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_user_id")]
|
||||
public string? SisUserId { get; set; }
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("enrollment_state")]
|
||||
public string EnrollmentState { get; set; }
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong? RootAccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("limit_privileges_to_course_section")]
|
||||
public bool? LimitPrivilegesToCourseSection { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("root_account_id")]
|
||||
public ulong? RootAccountId { get; set; }
|
||||
[JsonPropertyName("associated_user_id")]
|
||||
public ulong? AssociatedUserId { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
[JsonPropertyName("role")]
|
||||
public string Role { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
[JsonPropertyName("role_id")]
|
||||
public ulong RoleId { get; set; }
|
||||
|
||||
[JsonPropertyName("associated_user_id")]
|
||||
public ulong? AssociatedUserId { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("role")]
|
||||
public string Role { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("role_id")]
|
||||
public ulong RoleId { get; set; }
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("last_activity_at")]
|
||||
public DateTime? LastActivityAt { get; set; }
|
||||
|
||||
[JsonPropertyName("start_at")]
|
||||
public DateTime? StartAt { get; set; }
|
||||
[JsonPropertyName("last_attended_at")]
|
||||
public DateTime? LastAttendedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("end_at")]
|
||||
public DateTime? EndAt { get; set; }
|
||||
[JsonPropertyName("total_activity_time")]
|
||||
public ulong? TotalActivityTime { get; set; }
|
||||
|
||||
[JsonPropertyName("last_activity_at")]
|
||||
public DateTime? LastActivityAt { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("last_attended_at")]
|
||||
public DateTime? LastAttendedAt { get; set; }
|
||||
[JsonPropertyName("grades")]
|
||||
public GradeModel Grades { get; set; }
|
||||
|
||||
[JsonPropertyName("total_activity_time")]
|
||||
public ulong? TotalActivityTime { get; set; }
|
||||
[JsonPropertyName("user")]
|
||||
public UserDisplayModel User { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("override_grade")]
|
||||
public string OverrideGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("grades")]
|
||||
public GradeModel Grades { get; set; }
|
||||
[JsonPropertyName("override_score")]
|
||||
public decimal? OverrideScore { get; set; }
|
||||
|
||||
[JsonPropertyName("user")]
|
||||
public UserDisplayModel User { get; set; }
|
||||
[JsonPropertyName("unposted_current_grade")]
|
||||
public string? UnpostedCurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("override_grade")]
|
||||
public string OverrideGrade { get; set; }
|
||||
[JsonPropertyName("unposted_final_grade")]
|
||||
public string? UnpostedFinalGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("override_score")]
|
||||
public decimal? OverrideScore { get; set; }
|
||||
[JsonPropertyName("unposted_current_score")]
|
||||
public string? UnpostedCurrentScore { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_current_grade")]
|
||||
public string? UnpostedCurrentGrade { get; set; }
|
||||
[JsonPropertyName("unposted_final_score")]
|
||||
public string? UnpostedFinalScore { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_final_grade")]
|
||||
public string? UnpostedFinalGrade { get; set; }
|
||||
[JsonPropertyName("has_grading_periods")]
|
||||
public bool? HasGradingPeriods { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_current_score")]
|
||||
public string? UnpostedCurrentScore { get; set; }
|
||||
[JsonPropertyName("totals_for_all_grading_periods_option")]
|
||||
public bool? TotalsForAllGradingPeriodsOption { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_final_score")]
|
||||
public string? UnpostedFinalScore { get; set; }
|
||||
[JsonPropertyName("current_grading_period_title")]
|
||||
public string? CurrentGradingPeriodTitle { get; set; }
|
||||
|
||||
[JsonPropertyName("has_grading_periods")]
|
||||
public bool? HasGradingPeriods { get; set; }
|
||||
[JsonPropertyName("current_grading_period_id")]
|
||||
public ulong? CurrentGradingPeriodId { get; set; }
|
||||
|
||||
[JsonPropertyName("totals_for_all_grading_periods_option")]
|
||||
public bool? TotalsForAllGradingPeriodsOption { get; set; }
|
||||
[JsonPropertyName("current_period_override_grade")]
|
||||
public string? CurrentPeriodOverrideGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("current_grading_period_title")]
|
||||
public string? CurrentGradingPeriodTitle { get; set; }
|
||||
[JsonPropertyName("current_period_override_score")]
|
||||
public decimal? CurrentPeriodOverrideScore { get; set; }
|
||||
|
||||
[JsonPropertyName("current_grading_period_id")]
|
||||
public ulong? CurrentGradingPeriodId { get; set; }
|
||||
[JsonPropertyName("current_period_unposted_final_score")]
|
||||
public decimal? CurrentPeriodUnpostedFinalScore { get; set; }
|
||||
|
||||
[JsonPropertyName("current_period_override_grade")]
|
||||
public string? CurrentPeriodOverrideGrade { get; set; }
|
||||
[JsonPropertyName("current_period_unposted_current_grade")]
|
||||
public string? CurrentPeriodUnpostedCurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("current_period_override_score")]
|
||||
public decimal? CurrentPeriodOverrideScore { get; set; }
|
||||
|
||||
[JsonPropertyName("current_period_unposted_final_score")]
|
||||
public decimal? CurrentPeriodUnpostedFinalScore { get; set; }
|
||||
|
||||
[JsonPropertyName("current_period_unposted_current_grade")]
|
||||
public string? CurrentPeriodUnpostedCurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("current_period_unposted_final_grade")]
|
||||
public string? CurrentPeriodUnpostedFinalGrade { get; set; }
|
||||
}
|
||||
[JsonPropertyName("current_period_unposted_final_grade")]
|
||||
public string? CurrentPeriodUnpostedFinalGrade { get; set; }
|
||||
}
|
||||
@@ -1,35 +1,34 @@
|
||||
|
||||
|
||||
|
||||
namespace Model.Enrollments {
|
||||
namespace CanvasModel.Enrollments;
|
||||
public class GradeModel
|
||||
{
|
||||
|
||||
public class GradeModel {
|
||||
[JsonPropertyName("html_url")]
|
||||
public string? HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string? HtmlUrl { get; set; }
|
||||
[JsonPropertyName("current_grade")]
|
||||
public string? CurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("current_grade")]
|
||||
public string? CurrentGrade { get; set; }
|
||||
[JsonPropertyName("final_grade")]
|
||||
public string? FinalGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("final_grade")]
|
||||
public string? FinalGrade { get; set; }
|
||||
[JsonPropertyName("current_score")]
|
||||
public string? CurrentScore { get; set; }
|
||||
|
||||
[JsonPropertyName("current_score")]
|
||||
public string? CurrentScore { get; set; }
|
||||
[JsonPropertyName("final_score")]
|
||||
public string? FinalScore { get; set; }
|
||||
|
||||
[JsonPropertyName("final_score")]
|
||||
public string? FinalScore { get; set; }
|
||||
[JsonPropertyName("unposted_current_grade")]
|
||||
public string? UnpostedCurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_current_grade")]
|
||||
public string? UnpostedCurrentGrade { get; set; }
|
||||
[JsonPropertyName("unposted_final_grade")]
|
||||
public string? UnpostedFinalGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_final_grade")]
|
||||
public string? UnpostedFinalGrade { get; set; }
|
||||
[JsonPropertyName("unposted_current_score")]
|
||||
public string? UnpostedCurrentScore { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_current_score")]
|
||||
public string? UnpostedCurrentScore { get; set; }
|
||||
|
||||
[JsonPropertyName("unposted_final_score")]
|
||||
public string? UnpostedFinalScore { get; set; }
|
||||
}
|
||||
[JsonPropertyName("unposted_final_score")]
|
||||
public string? UnpostedFinalScore { get; set; }
|
||||
}
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class AccountNavigationModel
|
||||
{
|
||||
|
||||
public class AccountNavigationModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class CourseHomeSubNavigationModel
|
||||
{
|
||||
|
||||
public class CourseHomeSubNavigationModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
}
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class CourseNavigationModel
|
||||
{
|
||||
|
||||
public class CourseNavigationModel {
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
[JsonPropertyName("visible")]
|
||||
public string Visibility { get; set; }
|
||||
|
||||
[JsonPropertyName("visible")]
|
||||
public string Visibility { get; set; }
|
||||
[JsonPropertyName("window_target")]
|
||||
public string WindowTarget { get; set; }
|
||||
|
||||
[JsonPropertyName("window_target")]
|
||||
public string WindowTarget { get; set; }
|
||||
[JsonPropertyName("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
[JsonPropertyName("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class EditorButtonModel
|
||||
{
|
||||
|
||||
public class EditorButtonModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,74 +2,73 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ExternalToolModel
|
||||
{
|
||||
|
||||
public class ExternalToolModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("domain")]
|
||||
public string Domain { get; set; }
|
||||
|
||||
[JsonPropertyName("domain")]
|
||||
public string Domain { get; set; }
|
||||
[JsonPropertyName("consumer_key")]
|
||||
public string ConsumerKey { get; set; }
|
||||
|
||||
[JsonPropertyName("consumer_key")]
|
||||
public string ConsumerKey { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("privacy_level")]
|
||||
public string PrivacyLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("privacy_level")]
|
||||
public string PrivacyLevel { get; set; }
|
||||
[JsonPropertyName("custom_fields")]
|
||||
public Dictionary<string, string> CustomFields { get; set; }
|
||||
|
||||
[JsonPropertyName("custom_fields")]
|
||||
public Dictionary<string, string> CustomFields { get; set; }
|
||||
[JsonPropertyName("account_navigation")]
|
||||
public AccountNavigationModel AccountNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("account_navigation")]
|
||||
public AccountNavigationModel AccountNavigation { get; set; }
|
||||
[JsonPropertyName("course_home_sub_navigation")]
|
||||
public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_home_sub_navigation")]
|
||||
public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; }
|
||||
[JsonPropertyName("course_navigation")]
|
||||
public CourseNavigationModel CourseNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_navigation")]
|
||||
public CourseNavigationModel CourseNavigation { get; set; }
|
||||
[JsonPropertyName("editor_button")]
|
||||
public EditorButtonModel EditorButton { get; set; }
|
||||
|
||||
[JsonPropertyName("editor_button")]
|
||||
public EditorButtonModel EditorButton { get; set; }
|
||||
[JsonPropertyName("homework_submission")]
|
||||
public HomeworkSubmissionModel HomeworkSubmission { get; set; }
|
||||
|
||||
[JsonPropertyName("homework_submission")]
|
||||
public HomeworkSubmissionModel HomeworkSubmission { get; set; }
|
||||
[JsonPropertyName("migration_selection")]
|
||||
public MigrationSelectionModel MigrationSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("migration_selection")]
|
||||
public MigrationSelectionModel MigrationSelection { get; set; }
|
||||
[JsonPropertyName("resource_selection")]
|
||||
public ResourceSelectionModel ResourceSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("resource_selection")]
|
||||
public ResourceSelectionModel ResourceSelection { get; set; }
|
||||
[JsonPropertyName("tool_configuration")]
|
||||
public ToolConfigurationModel ToolConfiguration { get; set; }
|
||||
|
||||
[JsonPropertyName("tool_configuration")]
|
||||
public ToolConfigurationModel ToolConfiguration { get; set; }
|
||||
[JsonPropertyName("user_navigation")]
|
||||
public UserNavigationModel UserNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("user_navigation")]
|
||||
public UserNavigationModel UserNavigation { get; set; }
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("not_selectable")]
|
||||
public bool? NotSelectable { get; set; }
|
||||
}
|
||||
[JsonPropertyName("not_selectable")]
|
||||
public bool? NotSelectable { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class HomeworkSubmissionModel
|
||||
{
|
||||
|
||||
public class HomeworkSubmissionModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class LinkSelectionModel
|
||||
{
|
||||
|
||||
public class LinkSelectionModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class MigrationSelectionModel
|
||||
{
|
||||
|
||||
public class MigrationSelectionModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ResourceSelectionModel
|
||||
{
|
||||
|
||||
public class ResourceSelectionModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
}
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ToolConfigurationModel
|
||||
{
|
||||
|
||||
public class ToolConfigurationModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
|
||||
[JsonPropertyName("prefer_sis_email")]
|
||||
public bool? PreferSisEmail { get; set; }
|
||||
}
|
||||
[JsonPropertyName("prefer_sis_email")]
|
||||
public bool? PreferSisEmail { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class UserNavigationModel
|
||||
{
|
||||
|
||||
public class UserNavigationModel {
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("visibility")]
|
||||
public string Visibility { get; set; }
|
||||
}
|
||||
[JsonPropertyName("visibility")]
|
||||
public string Visibility { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,77 +1,77 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class CanvasFileModel {
|
||||
namespace CanvasModel.Files;
|
||||
public class CanvasFileModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
|
||||
[JsonPropertyName("folder_id")]
|
||||
public ulong FolderId { get; set; }
|
||||
[JsonPropertyName("folder_id")]
|
||||
public ulong FolderId { get; set; }
|
||||
|
||||
[JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
[JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[JsonPropertyName("filename")]
|
||||
public string Filename { get; set; }
|
||||
[JsonPropertyName("filename")]
|
||||
public string Filename { get; set; }
|
||||
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("size")]
|
||||
public ulong Size { get; set; }
|
||||
[JsonPropertyName("size")]
|
||||
public ulong Size { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("locked")]
|
||||
public bool Locked { get; set; }
|
||||
[JsonPropertyName("locked")]
|
||||
public bool Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool Hidden { get; set; }
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool HiddenForUser { get; set; }
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool HiddenForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("thumbnail_url")]
|
||||
public string ThumbnailUrl { get; set; }
|
||||
[JsonPropertyName("thumbnail_url")]
|
||||
public string ThumbnailUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("modified_at")]
|
||||
public DateTime? ModifiedAt { get; set; }
|
||||
[JsonPropertyName("modified_at")]
|
||||
public DateTime? ModifiedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("mime_class")]
|
||||
public string MimeClass { get; set; }
|
||||
[JsonPropertyName("mime_class")]
|
||||
public string MimeClass { get; set; }
|
||||
|
||||
[JsonPropertyName("media_entry_id")]
|
||||
public string MediaEntryId { get; set; }
|
||||
[JsonPropertyName("media_entry_id")]
|
||||
public string MediaEntryId { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
// public LockInfo? LockInfo { get; set; }
|
||||
public object? LockInfo { get; set; }
|
||||
[JsonPropertyName("lock_info")]
|
||||
// public LockInfo? LockInfo { get; set; }
|
||||
public object? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string LockExplanation { get; set; }
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("preview_url")]
|
||||
public string PreviewUrl { get; set; }
|
||||
}
|
||||
[JsonPropertyName("preview_url")]
|
||||
public string PreviewUrl { get; set; }
|
||||
}
|
||||
@@ -1,67 +1,67 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class FolderModel {
|
||||
namespace CanvasModel.Files;
|
||||
public class FolderModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("context_type")]
|
||||
public string ContextType { get; set; }
|
||||
[JsonPropertyName("context_type")]
|
||||
public string ContextType { get; set; }
|
||||
|
||||
[JsonPropertyName("context_id")]
|
||||
public ulong ContextId { get; set; }
|
||||
[JsonPropertyName("context_id")]
|
||||
public ulong ContextId { get; set; }
|
||||
|
||||
[JsonPropertyName("files_count")]
|
||||
public uint FilesCount { get; set; }
|
||||
[JsonPropertyName("files_count")]
|
||||
public uint FilesCount { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public int? Position { get; set; }
|
||||
[JsonPropertyName("position")]
|
||||
public int? Position { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("folders_url")]
|
||||
public string FoldersUrl { get; set; }
|
||||
[JsonPropertyName("folders_url")]
|
||||
public string FoldersUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("files_url")]
|
||||
public string FilesUrl { get; set; }
|
||||
[JsonPropertyName("files_url")]
|
||||
public string FilesUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("folders_count")]
|
||||
public uint FoldersCount { get; set; }
|
||||
[JsonPropertyName("folders_count")]
|
||||
public uint FoldersCount { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("parents_folder_id")]
|
||||
public ulong? ParentFolderId { get; set; }
|
||||
[JsonPropertyName("parents_folder_id")]
|
||||
public ulong? ParentFolderId { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool? Hidden { get; set; }
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool? Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool? HiddenForUser { get; set; }
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool? HiddenForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("locker")]
|
||||
public bool? Locked { get; set; }
|
||||
[JsonPropertyName("locker")]
|
||||
public bool? Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("for_submissions")]
|
||||
public bool? ForSubmissions { get; set; }
|
||||
}
|
||||
[JsonPropertyName("for_submissions")]
|
||||
public bool? ForSubmissions { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class LicenseModel {
|
||||
namespace CanvasModel.Files;
|
||||
public class LicenseModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class UsageRightsModel {
|
||||
namespace CanvasModel.Files;
|
||||
public class UsageRightsModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("legal_copyright")]
|
||||
public string LegalCopyright { get; set; }
|
||||
[JsonPropertyName("legal_copyright")]
|
||||
public string LegalCopyright { get; set; }
|
||||
|
||||
[JsonPropertyName("use_justification")]
|
||||
public string UsageJustification { get; set; }
|
||||
[JsonPropertyName("use_justification")]
|
||||
public string UsageJustification { get; set; }
|
||||
|
||||
[JsonPropertyName("license")]
|
||||
public string License { get; set; }
|
||||
[JsonPropertyName("license")]
|
||||
public string License { get; set; }
|
||||
|
||||
[JsonPropertyName("license_name")]
|
||||
public string LicenseName { get; set; }
|
||||
[JsonPropertyName("license_name")]
|
||||
public string LicenseName { get; set; }
|
||||
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonPropertyName("file_ids")]
|
||||
public IEnumerable<ulong> FileIds { get; set; }
|
||||
}
|
||||
[JsonPropertyName("file_ids")]
|
||||
public IEnumerable<ulong> FileIds { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,23 +1,20 @@
|
||||
|
||||
namespace CanvasModel.GradeChangelog;
|
||||
public class GradeChangeEventLinksModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("assignment")]
|
||||
public ulong Assignment { get; set; }
|
||||
|
||||
namespace Model.GradeChangelog {
|
||||
[JsonPropertyName("course")]
|
||||
public ulong Course { get; set; }
|
||||
|
||||
public class GradeChangeEventLinksModel {
|
||||
[JsonPropertyName("student")]
|
||||
public ulong Student { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment")]
|
||||
public ulong Assignment { get; set; }
|
||||
[JsonPropertyName("grader")]
|
||||
public ulong Grader { get; set; }
|
||||
|
||||
[JsonPropertyName("course")]
|
||||
public ulong Course { get; set; }
|
||||
|
||||
[JsonPropertyName("student")]
|
||||
public ulong Student { get; set; }
|
||||
|
||||
[JsonPropertyName("grader")]
|
||||
public ulong Grader { get; set; }
|
||||
|
||||
[JsonPropertyName("page_view")]
|
||||
public string? PageView { get; set; }
|
||||
}
|
||||
[JsonPropertyName("page_view")]
|
||||
public string? PageView { get; set; }
|
||||
}
|
||||
@@ -1,42 +1,38 @@
|
||||
using System;
|
||||
|
||||
namespace CanvasModel.GradeChangelog;
|
||||
public class GradeChangeEventModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
namespace Model.GradeChangelog {
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
public class GradeChangeEventModel {
|
||||
[JsonPropertyName("event_type")]
|
||||
public string EventType { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("excused_after")]
|
||||
public bool ExcusedAfter { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("excused_before")]
|
||||
public bool ExcusedBefore { get; set; }
|
||||
|
||||
[JsonPropertyName("event_type")]
|
||||
public string EventType { get; set; }
|
||||
[JsonPropertyName("grade_after")]
|
||||
public string GradeAfter { get; set; }
|
||||
|
||||
[JsonPropertyName("excused_after")]
|
||||
public bool ExcusedAfter { get; set; }
|
||||
[JsonPropertyName("grade_before")]
|
||||
public string GradeBefore { get; set; }
|
||||
|
||||
[JsonPropertyName("excused_before")]
|
||||
public bool ExcusedBefore { get; set; }
|
||||
[JsonPropertyName("graded_anonymously")]
|
||||
public bool? GradedAnonymously { get; set; }
|
||||
|
||||
[JsonPropertyName("grade_after")]
|
||||
public string GradeAfter { get; set; }
|
||||
[JsonPropertyName("version_number")]
|
||||
public string VersionNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("grade_before")]
|
||||
public string GradeBefore { get; set; }
|
||||
[JsonPropertyName("request_id")]
|
||||
public string RequestId { get; set; }
|
||||
|
||||
[JsonPropertyName("graded_anonymously")]
|
||||
public bool? GradedAnonymously { get; set; }
|
||||
|
||||
[JsonPropertyName("version_number")]
|
||||
public string VersionNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("request_id")]
|
||||
public string RequestId { get; set; }
|
||||
|
||||
[JsonPropertyName("links")]
|
||||
public GradeChangeEventLinksModel? Links { get; set; }
|
||||
}
|
||||
[JsonPropertyName("links")]
|
||||
public GradeChangeEventLinksModel? Links { get; set; }
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.GradeChangelog;
|
||||
public class RedundantGradeChangeEventResponse
|
||||
{
|
||||
|
||||
namespace Model.GradeChangelog {
|
||||
|
||||
public class RedundantGradeChangeEventResponse {
|
||||
|
||||
[JsonPropertyName("events")]
|
||||
public IEnumerable<GradeChangeEventModel> Events { get; set; }
|
||||
}
|
||||
[JsonPropertyName("events")]
|
||||
public IEnumerable<GradeChangeEventModel> Events { get; set; }
|
||||
}
|
||||
@@ -1,15 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Gradebook;
|
||||
public class DayModel
|
||||
{
|
||||
|
||||
namespace Model.Gradebook {
|
||||
[JsonPropertyName("date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
public class DayModel {
|
||||
|
||||
[JsonPropertyName("date")]
|
||||
public DateTime Date { get; set; }
|
||||
|
||||
[JsonPropertyName("graders")]
|
||||
public IEnumerable<GraderModel> Graders { get; set; }
|
||||
}
|
||||
[JsonPropertyName("graders")]
|
||||
public IEnumerable<GraderModel> Graders { get; set; }
|
||||
}
|
||||
@@ -1,19 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Model.Assignments;
|
||||
using CanvasModel.Assignments;
|
||||
|
||||
namespace Model.Gradebook {
|
||||
namespace CanvasModel.Gradebook;
|
||||
public class GraderModel
|
||||
{
|
||||
|
||||
public class GraderModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
// the docs say this is a list of integers, but it isn't.
|
||||
[JsonPropertyName("assignments")]
|
||||
public IEnumerable<AssignmentModel> Assignments { get; set; }
|
||||
}
|
||||
// the docs say this is a list of integers, but it isn't.
|
||||
[JsonPropertyName("assignments")]
|
||||
public IEnumerable<AssignmentModel> Assignments { get; set; }
|
||||
}
|
||||
@@ -1,15 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Gradebook;
|
||||
public class SubmissionHistoryModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("submission_id")]
|
||||
public ulong SubmissionId { get; set; }
|
||||
|
||||
namespace Model.Gradebook {
|
||||
|
||||
public class SubmissionHistoryModel {
|
||||
|
||||
[JsonPropertyName("submission_id")]
|
||||
public ulong SubmissionId { get; set; }
|
||||
|
||||
[JsonPropertyName("versions")]
|
||||
public IEnumerable<SubmissionVersionModel>? Versions { get; set; }
|
||||
}
|
||||
[JsonPropertyName("versions")]
|
||||
public IEnumerable<SubmissionVersionModel>? Versions { get; set; }
|
||||
}
|
||||
@@ -1,39 +1,36 @@
|
||||
using System;
|
||||
using CanvasModel.Submissions;
|
||||
|
||||
using Model.Submissions;
|
||||
namespace CanvasModel.Gradebook;
|
||||
public class SubmissionVersionModel : SubmissionModel
|
||||
{
|
||||
|
||||
namespace Model.Gradebook {
|
||||
[JsonPropertyName("assignment_name")]
|
||||
public string AssignmentName { get; set; }
|
||||
|
||||
public class SubmissionVersionModel : SubmissionModel {
|
||||
[JsonPropertyName("current_grade")]
|
||||
public string CurrentGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_name")]
|
||||
public string AssignmentName { get; set; }
|
||||
[JsonPropertyName("current_graded_at")]
|
||||
public DateTime? CurrentGradedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("current_grade")]
|
||||
public string CurrentGrade { get; set; }
|
||||
[JsonPropertyName("current_grader")]
|
||||
public string CurrentGrader { get; set; }
|
||||
|
||||
[JsonPropertyName("current_graded_at")]
|
||||
public DateTime? CurrentGradedAt { get; set; }
|
||||
[JsonPropertyName("new_grade")]
|
||||
public string NewGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("current_grader")]
|
||||
public string CurrentGrader { get; set; }
|
||||
[JsonPropertyName("new_graded_at")]
|
||||
public DateTime? NewGradedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("new_grade")]
|
||||
public string NewGrade { get; set; }
|
||||
[JsonPropertyName("new_grader")]
|
||||
public string NewGrader { get; set; }
|
||||
|
||||
[JsonPropertyName("new_graded_at")]
|
||||
public DateTime? NewGradedAt { get; set; }
|
||||
[JsonPropertyName("previous_grade")]
|
||||
public string PreviousGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("new_grader")]
|
||||
public string NewGrader { get; set; }
|
||||
[JsonPropertyName("previous_graded_at")]
|
||||
public DateTime? PreviousGradedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("previous_grade")]
|
||||
public string PreviousGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("previous_graded_at")]
|
||||
public DateTime? PreviousGradedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("previous_grader")]
|
||||
public string PreviousGrader { get; set; }
|
||||
}
|
||||
[JsonPropertyName("previous_grader")]
|
||||
public string PreviousGrader { get; set; }
|
||||
}
|
||||
@@ -1,28 +1,26 @@
|
||||
using System;
|
||||
|
||||
namespace CanvasModel.GradingPeriods;
|
||||
public class GradingPeriodModel
|
||||
{
|
||||
|
||||
namespace Model.GradingPeriods {
|
||||
public class GradingPeriodModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("start_date")]
|
||||
public DateTime? StartDate { get; set; }
|
||||
|
||||
[JsonPropertyName("start_date")]
|
||||
public DateTime? StartDate { get; set; }
|
||||
[JsonPropertyName("end_date")]
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
[JsonPropertyName("end_date")]
|
||||
public DateTime? EndDate { get; set; }
|
||||
[JsonPropertyName("close_date")]
|
||||
public DateTime? CloseDate { get; set; }
|
||||
|
||||
[JsonPropertyName("close_date")]
|
||||
public DateTime? CloseDate { get; set; }
|
||||
[JsonPropertyName("weight")]
|
||||
public double? Weight { get; set; }
|
||||
|
||||
[JsonPropertyName("weight")]
|
||||
public double? Weight { get; set; }
|
||||
|
||||
[JsonPropertyName("is_closed")]
|
||||
public bool? IsClosed { get; set; }
|
||||
}
|
||||
[JsonPropertyName("is_closed")]
|
||||
public bool? IsClosed { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.GradingPeriods {
|
||||
public class RedundantGradingPeriodResponse {
|
||||
[JsonPropertyName("grading_periods")]
|
||||
public IEnumerable<GradingPeriodModel> GradingPeriods { get; set; }
|
||||
}
|
||||
namespace CanvasModel.GradingPeriods;
|
||||
public class RedundantGradingPeriodResponse
|
||||
{
|
||||
[JsonPropertyName("grading_periods")]
|
||||
public IEnumerable<GradingPeriodModel> GradingPeriods { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,28 +1,27 @@
|
||||
|
||||
|
||||
namespace Model.Groups {
|
||||
namespace CanvasModel.Groups;
|
||||
public class GroupMembershipModel
|
||||
{
|
||||
|
||||
public class GroupMembershipModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("group_id")]
|
||||
public ulong GroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("group_id")]
|
||||
public ulong GroupId { get; set; }
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("user_id")]
|
||||
public ulong UserId { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("moderator")]
|
||||
public bool Moderator { get; set; }
|
||||
|
||||
[JsonPropertyName("moderator")]
|
||||
public bool Moderator { get; set; }
|
||||
[JsonPropertyName("just_created")]
|
||||
public bool? JustCreated { get; set; }
|
||||
|
||||
[JsonPropertyName("just_created")]
|
||||
public bool? JustCreated { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
}
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,60 +1,56 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Groups;
|
||||
public class GroupModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
namespace Model.Groups {
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
public class GroupModel {
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("is_public")]
|
||||
public bool? IsPublic { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("followed_by_user")]
|
||||
public bool FollowedByUser { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string? Description { get; set; }
|
||||
[JsonPropertyName("join_level")]
|
||||
public string JoinLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("is_public")]
|
||||
public bool? IsPublic { get; set; }
|
||||
[JsonPropertyName("members_count")]
|
||||
public uint MembersCount { get; set; }
|
||||
|
||||
[JsonPropertyName("followed_by_user")]
|
||||
public bool FollowedByUser { get; set; }
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string AvatarUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("join_level")]
|
||||
public string JoinLevel { get; set; }
|
||||
[JsonPropertyName("context_type")]
|
||||
public string ContextType { get; set; }
|
||||
|
||||
[JsonPropertyName("members_count")]
|
||||
public uint MembersCount { get; set; }
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong? CourseId { get; set; }
|
||||
|
||||
[JsonPropertyName("avatar_url")]
|
||||
public string AvatarUrl { get; set; }
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong? AccountId { get; set; }
|
||||
|
||||
[JsonPropertyName("context_type")]
|
||||
public string ContextType { get; set; }
|
||||
[JsonPropertyName("role")]
|
||||
public string Role { get; set; }
|
||||
|
||||
[JsonPropertyName("course_id")]
|
||||
public ulong? CourseId { get; set; }
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong GroupCategoryId { get; set; }
|
||||
|
||||
[JsonPropertyName("account_id")]
|
||||
public ulong? AccountId { get; set; }
|
||||
[JsonPropertyName("sis_group_id")]
|
||||
public string? SisGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("role")]
|
||||
public string Role { get; set; }
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("group_category_id")]
|
||||
public ulong GroupCategoryId { get; set; }
|
||||
[JsonPropertyName("storage_quota_mb")]
|
||||
public uint StorageQuoteMb { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_group_id")]
|
||||
public string? SisGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("sis_import_id")]
|
||||
public ulong? SisImportId { get; set; }
|
||||
|
||||
[JsonPropertyName("storage_quota_mb")]
|
||||
public uint StorageQuoteMb { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
}
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, bool> Permissions { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.Modules {
|
||||
namespace CanvasModel.Modules;
|
||||
public class CompletionRequirementModel
|
||||
{
|
||||
|
||||
public class CompletionRequirementModel {
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
[JsonPropertyName("min_score")]
|
||||
public double? MinScore { get; set; }
|
||||
|
||||
[JsonPropertyName("min_score")]
|
||||
public double? MinScore { get; set; }
|
||||
|
||||
[JsonPropertyName("completed")]
|
||||
public bool? Completed { get; set; }
|
||||
}
|
||||
[JsonPropertyName("completed")]
|
||||
public bool? Completed { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,27 +1,23 @@
|
||||
using System;
|
||||
|
||||
namespace CanvasModel.Modules;
|
||||
public class ContentDetailsModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public uint? PointsPossible { get; set; }
|
||||
|
||||
namespace Model.Modules {
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
public class ContentDetailsModel {
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public uint? PointsPossible { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
}
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,52 +1,48 @@
|
||||
|
||||
namespace CanvasModel.Modules;
|
||||
public class ModuleItemModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("module_id")]
|
||||
public ulong ModuleId { get; set; }
|
||||
|
||||
namespace Model.Modules {
|
||||
[JsonPropertyName("position")]
|
||||
public uint Position { get; set; }
|
||||
|
||||
public class ModuleItemModel {
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("indent")]
|
||||
public uint? Indent { get; set; }
|
||||
|
||||
[JsonPropertyName("module_id")]
|
||||
public ulong ModuleId { get; set; }
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public uint Position { get; set; }
|
||||
[JsonPropertyName("content_id")]
|
||||
public ulong? ContentId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("indent")]
|
||||
public uint? Indent { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
public string Type { get; set; }
|
||||
[JsonPropertyName("page_url")]
|
||||
public string? PageUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("content_id")]
|
||||
public ulong? ContentId { get; set; }
|
||||
[JsonPropertyName("external_url")]
|
||||
public string? ExternalUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("new_tab")]
|
||||
public bool NewTab { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
// [OptIn]
|
||||
[JsonPropertyName("completion_requirement")]
|
||||
public CompletionRequirementModel? CompletionRequirement { get; set; }
|
||||
|
||||
[JsonPropertyName("page_url")]
|
||||
public string? PageUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("external_url")]
|
||||
public string? ExternalUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("new_tab")]
|
||||
public bool NewTab { get; set; }
|
||||
|
||||
// [OptIn]
|
||||
[JsonPropertyName("completion_requirement")]
|
||||
public CompletionRequirementModel? CompletionRequirement { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
}
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Modules {
|
||||
|
||||
public class ModuleItemSequenceModel {
|
||||
|
||||
[JsonPropertyName("items")]
|
||||
public IEnumerable<ModuleItemSequenceNodeModel> Items { get; set; }
|
||||
}
|
||||
namespace CanvasModel.Modules;
|
||||
public class ModuleItemSequenceModel
|
||||
{
|
||||
[JsonPropertyName("items")]
|
||||
public IEnumerable<ModuleItemSequenceNodeModel> Items { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,20 +1,17 @@
|
||||
|
||||
namespace CanvasModel.Modules;
|
||||
public class ModuleItemSequenceNodeModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("prev")]
|
||||
public ModuleItemModel? Prev { get; set; }
|
||||
|
||||
[JsonPropertyName("current")]
|
||||
public ModuleItemModel Current { get; set; }
|
||||
|
||||
namespace Model.Modules {
|
||||
public class ModuleItemSequenceNodeModel {
|
||||
[JsonPropertyName("next")]
|
||||
public ModuleItemModel? Next { get; set; }
|
||||
|
||||
[JsonPropertyName("prev")]
|
||||
public ModuleItemModel? Prev { get; set; }
|
||||
|
||||
[JsonPropertyName("current")]
|
||||
public ModuleItemModel Current { get; set; }
|
||||
|
||||
[JsonPropertyName("next")]
|
||||
public ModuleItemModel? Next { get; set; }
|
||||
|
||||
[JsonPropertyName("mastery_path")]
|
||||
public object? MasteryPath { get; set; } // todo concrete type?
|
||||
}
|
||||
[JsonPropertyName("mastery_path")]
|
||||
public object? MasteryPath { get; set; } // todo concrete type?
|
||||
}
|
||||
|
||||
@@ -1,56 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Modules;
|
||||
public class ModuleModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
namespace Model.Modules {
|
||||
[JsonPropertyName("position")]
|
||||
public uint Position { get; set; }
|
||||
|
||||
public class ModuleModel {
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
[JsonPropertyName("require_sequential_progress")]
|
||||
public bool? RequireSequentialProgress { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public uint Position { get; set; }
|
||||
[JsonPropertyName("prerequisite_module_ids")]
|
||||
public IEnumerable<ulong>? PrerequisiteModuleIds { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
[JsonPropertyName("items_count")]
|
||||
public uint ItemsCount { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("items_url")]
|
||||
public string ItemsUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("require_sequential_progress")]
|
||||
public bool? RequireSequentialProgress { get; set; }
|
||||
// [OptIn]
|
||||
// [Enigmatic] // can be null if "the module is deemed too large", even if opted-in
|
||||
[JsonPropertyName("items")]
|
||||
public IEnumerable<ModuleItemModel>? Items { get; set; }
|
||||
|
||||
[JsonPropertyName("prerequisite_module_ids")]
|
||||
public IEnumerable<ulong>? PrerequisiteModuleIds { get; set; }
|
||||
[JsonPropertyName("state")]
|
||||
public string? State { get; set; } // todo make sure this is an enum in Structure class
|
||||
|
||||
[JsonPropertyName("items_count")]
|
||||
public uint ItemsCount { get; set; }
|
||||
// [OptIn]
|
||||
[JsonPropertyName("completed_at")]
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("items_url")]
|
||||
public string ItemsUrl { get; set; }
|
||||
[JsonPropertyName("publish_final_grade")]
|
||||
public bool? PublishFinalGrade { get; set; }
|
||||
|
||||
// [OptIn]
|
||||
// [Enigmatic] // can be null if "the module is deemed too large", even if opted-in
|
||||
[JsonPropertyName("items")]
|
||||
public IEnumerable<ModuleItemModel>? Items { get; set; }
|
||||
|
||||
[JsonPropertyName("state")]
|
||||
public string? State { get; set; } // todo make sure this is an enum in Structure class
|
||||
|
||||
// [OptIn]
|
||||
[JsonPropertyName("completed_at")]
|
||||
public DateTime? CompletedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("publish_final_grade")]
|
||||
public bool? PublishFinalGrade { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
}
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeAlignmentModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
public class OutcomeAlignmentModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string? HtmlUrl { get; set; }
|
||||
}
|
||||
[JsonPropertyName("html_url")]
|
||||
public string? HtmlUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,15 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public struct OutcomePathModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
|
||||
public struct OutcomePathModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("parts")]
|
||||
public IEnumerable<OutcomePathPartModel>? Parts { get; set; }
|
||||
}
|
||||
[JsonPropertyName("parts")]
|
||||
public IEnumerable<OutcomePathPartModel>? Parts { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public struct OutcomePathPartModel
|
||||
{
|
||||
|
||||
public struct OutcomePathPartModel {
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,24 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeResultModel
|
||||
{
|
||||
|
||||
public class OutcomeResultModel {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("score")]
|
||||
public double Score { get; set; }
|
||||
|
||||
[JsonPropertyName("score")]
|
||||
public double Score { get; set; }
|
||||
[JsonPropertyName("submitted_or_assessed_at")]
|
||||
public DateTime SubmittedOrAssessedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("submitted_or_assessed_at")]
|
||||
public DateTime SubmittedOrAssessedAt { get; set; }
|
||||
[JsonPropertyName("links")]
|
||||
public Dictionary<string, object> Links { get; set; } // todo
|
||||
|
||||
[JsonPropertyName("links")]
|
||||
public Dictionary<string, object> Links { get; set; } // todo
|
||||
|
||||
[JsonPropertyName("percent")]
|
||||
public decimal Percent { get; set; }
|
||||
}
|
||||
[JsonPropertyName("percent")]
|
||||
public decimal Percent { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeRollupLinksModel
|
||||
{
|
||||
|
||||
public class OutcomeRollupLinksModel {
|
||||
[JsonPropertyName("course")]
|
||||
public ulong? Course { get; set; }
|
||||
|
||||
[JsonPropertyName("course")]
|
||||
public ulong? Course { get; set; }
|
||||
[JsonPropertyName("user")]
|
||||
public ulong? User { get; set; }
|
||||
|
||||
[JsonPropertyName("user")]
|
||||
public ulong? User { get; set; }
|
||||
|
||||
[JsonPropertyName("section")]
|
||||
public ulong? Section { get; set; }
|
||||
}
|
||||
[JsonPropertyName("section")]
|
||||
public ulong? Section { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeRollupModel
|
||||
{
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
[JsonPropertyName("scores")]
|
||||
public IEnumerable<OutcomeRollupScoreModel>? Scores { get; set; }
|
||||
|
||||
public class OutcomeRollupModel {
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("scores")]
|
||||
public IEnumerable<OutcomeRollupScoreModel>? Scores { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("links")]
|
||||
public OutcomeRollupLinksModel Links { get; set; }
|
||||
}
|
||||
[JsonPropertyName("links")]
|
||||
public OutcomeRollupLinksModel Links { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeRollupScoreLinksModel
|
||||
{
|
||||
|
||||
public class OutcomeRollupScoreLinksModel {
|
||||
|
||||
[JsonPropertyName("outcome")]
|
||||
public ulong Outcome { get; set; }
|
||||
}
|
||||
[JsonPropertyName("outcome")]
|
||||
public ulong Outcome { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.OutcomeResults {
|
||||
namespace CanvasModel.OutcomeResults;
|
||||
public class OutcomeRollupScoreModel
|
||||
{
|
||||
|
||||
public class OutcomeRollupScoreModel {
|
||||
[JsonPropertyName("score")]
|
||||
public double? Score { get; set; }
|
||||
|
||||
[JsonPropertyName("score")]
|
||||
public double? Score { get; set; }
|
||||
[JsonPropertyName("count")]
|
||||
public uint? Count { get; set; }
|
||||
|
||||
[JsonPropertyName("count")]
|
||||
public uint? Count { get; set; }
|
||||
|
||||
[JsonPropertyName("links")]
|
||||
public OutcomeRollupScoreLinksModel Links { get; set; }
|
||||
}
|
||||
[JsonPropertyName("links")]
|
||||
public OutcomeRollupScoreLinksModel Links { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,50 +1,46 @@
|
||||
using System;
|
||||
using CanvasModel.Assignments;
|
||||
using CanvasModel.Users;
|
||||
|
||||
namespace CanvasModel.Pages;
|
||||
public class PageModel
|
||||
{
|
||||
|
||||
using Model.Assignments;
|
||||
using Model.Users;
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
namespace Model.Pages {
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
public class PageModel {
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("editing_roles")]
|
||||
public string EditingRoles { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
[JsonPropertyName("last_edited_by")]
|
||||
public UserDisplayModel LastEditedBy { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
|
||||
[JsonPropertyName("editing_roles")]
|
||||
public string EditingRoles { get; set; }
|
||||
[JsonPropertyName("published")]
|
||||
public bool Published { get; set; }
|
||||
|
||||
[JsonPropertyName("last_edited_by")]
|
||||
public UserDisplayModel LastEditedBy { get; set; }
|
||||
[JsonPropertyName("front_page")]
|
||||
public bool FrontPage { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool Published { get; set; }
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("front_page")]
|
||||
public bool FrontPage { get; set; }
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { 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; }
|
||||
|
||||
[JsonPropertyName("page_id")]
|
||||
public string PageId { get; set; }
|
||||
}
|
||||
[JsonPropertyName("page_id")]
|
||||
public string PageId { get; set; }
|
||||
}
|
||||
@@ -1,30 +1,27 @@
|
||||
using System;
|
||||
using CanvasModel.Users;
|
||||
|
||||
namespace CanvasModel.Pages;
|
||||
public class PageRevisionModel
|
||||
{
|
||||
|
||||
using Model.Users;
|
||||
[JsonPropertyName("revision_id")]
|
||||
public ulong RevisionId { get; set; }
|
||||
|
||||
namespace Model.Pages {
|
||||
public class PageRevisionModel {
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("revision_id")]
|
||||
public ulong RevisionId { get; set; }
|
||||
[JsonPropertyName("latest")]
|
||||
public bool Latest { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
[JsonPropertyName("edited_by")]
|
||||
public UserDisplayModel? EditedBy { get; set; }
|
||||
|
||||
[JsonPropertyName("latest")]
|
||||
public bool Latest { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
|
||||
[JsonPropertyName("edited_by")]
|
||||
public UserDisplayModel? EditedBy { get; set; }
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
}
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
}
|
||||
@@ -1,10 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.ProficiencyRatings {
|
||||
|
||||
public struct ProficiencyModel {
|
||||
[JsonPropertyName("ratings")]
|
||||
public IEnumerable<ProficiencyRatingModel> Ratings { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ProficiencyRatings;
|
||||
public struct ProficiencyModel
|
||||
{
|
||||
[JsonPropertyName("ratings")]
|
||||
public IEnumerable<ProficiencyRatingModel> Ratings { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ProficiencyRatings {
|
||||
namespace CanvasModel.ProficiencyRatings;
|
||||
public class ProficiencyRatingModel
|
||||
{
|
||||
|
||||
public class ProficiencyRatingModel {
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("points")]
|
||||
public double Points { get; set; }
|
||||
|
||||
[JsonPropertyName("points")]
|
||||
public double Points { get; set; }
|
||||
[JsonPropertyName("mastery")]
|
||||
public bool Mastery { get; set; }
|
||||
|
||||
[JsonPropertyName("mastery")]
|
||||
public bool Mastery { get; set; }
|
||||
|
||||
[JsonPropertyName("color")]
|
||||
public string Color { get; set; }
|
||||
}
|
||||
[JsonPropertyName("color")]
|
||||
public string Color { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,128 +1,124 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using CanvasModel.Assignments;
|
||||
|
||||
using Model.Assignments;
|
||||
namespace CanvasModel.Quizzes;
|
||||
public class QuizModel
|
||||
{
|
||||
|
||||
namespace Model.Quizzes {
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
public class QuizModel {
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
[JsonPropertyName("mobile_url")]
|
||||
public string MobileUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("html_url")]
|
||||
public string HtmlUrl { get; set; }
|
||||
[JsonPropertyName("preview_url")]
|
||||
public string PreviewUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("mobile_url")]
|
||||
public string MobileUrl { get; set; }
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("preview_url")]
|
||||
public string PreviewUrl { get; set; }
|
||||
[JsonPropertyName("quiz_type")]
|
||||
public string QuizType { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
[JsonPropertyName("assignment_group_id")]
|
||||
public ulong AssignmentGroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("quiz_type")]
|
||||
public string QuizType { get; set; }
|
||||
[JsonPropertyName("time_limit")]
|
||||
public decimal? TimeLimit { get; set; }
|
||||
|
||||
[JsonPropertyName("assignment_group_id")]
|
||||
public ulong AssignmentGroupId { get; set; }
|
||||
[JsonPropertyName("shuffle_answers")]
|
||||
public bool? ShuffleAnswers { get; set; }
|
||||
|
||||
[JsonPropertyName("time_limit")]
|
||||
public decimal? TimeLimit { get; set; }
|
||||
[JsonPropertyName("hide_results")]
|
||||
public string? HideResults { get; set; }
|
||||
|
||||
[JsonPropertyName("shuffle_answers")]
|
||||
public bool? ShuffleAnswers { get; set; }
|
||||
[JsonPropertyName("show_correct_answers")]
|
||||
public bool? ShowCorrectAnswers { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_results")]
|
||||
public string? HideResults { get; set; }
|
||||
[JsonPropertyName("show_correct_answers_last_attempt")]
|
||||
public bool? ShowCorrectAnswersLastAttempt { get; set; }
|
||||
|
||||
[JsonPropertyName("show_correct_answers")]
|
||||
public bool? ShowCorrectAnswers { get; set; }
|
||||
[JsonPropertyName("show_correct_answers_at")]
|
||||
public DateTime? ShowCorrectAnswersAt { get; set; }
|
||||
|
||||
[JsonPropertyName("show_correct_answers_last_attempt")]
|
||||
public bool? ShowCorrectAnswersLastAttempt { get; set; }
|
||||
[JsonPropertyName("hide_correct_answers_at")]
|
||||
public DateTime? HideCorrectAnswersAt { get; set; }
|
||||
|
||||
[JsonPropertyName("show_correct_answers_at")]
|
||||
public DateTime? ShowCorrectAnswersAt { get; set; }
|
||||
[JsonPropertyName("one_time_results")]
|
||||
public bool? OneTimeResults { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_correct_answers_at")]
|
||||
public DateTime? HideCorrectAnswersAt { get; set; }
|
||||
[JsonPropertyName("scoring_policy")]
|
||||
public string? ScoringPolicy { get; set; }
|
||||
|
||||
[JsonPropertyName("one_time_results")]
|
||||
public bool? OneTimeResults { get; set; }
|
||||
[JsonPropertyName("allowed_attempts")]
|
||||
public int AllowedAttempts { get; set; }
|
||||
|
||||
[JsonPropertyName("scoring_policy")]
|
||||
public string? ScoringPolicy { get; set; }
|
||||
[JsonPropertyName("one_question_at_a_time")]
|
||||
public bool? OneQuestionAtATime { get; set; }
|
||||
|
||||
[JsonPropertyName("allowed_attempts")]
|
||||
public int AllowedAttempts { get; set; }
|
||||
[JsonPropertyName("question_count")]
|
||||
public uint? QuestionCount { get; set; }
|
||||
|
||||
[JsonPropertyName("one_question_at_a_time")]
|
||||
public bool? OneQuestionAtATime { get; set; }
|
||||
[JsonPropertyName("points_possible")]
|
||||
public decimal? PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("question_count")]
|
||||
public uint? QuestionCount { get; set; }
|
||||
[JsonPropertyName("cant_go_back")]
|
||||
public bool? CantGoBack { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public decimal? PointsPossible { get; set; }
|
||||
[JsonPropertyName("access_code")]
|
||||
public string? AccessCode { get; set; }
|
||||
|
||||
[JsonPropertyName("cant_go_back")]
|
||||
public bool? CantGoBack { get; set; }
|
||||
[JsonPropertyName("ip_filter")]
|
||||
public string? IpFilter { get; set; }
|
||||
|
||||
[JsonPropertyName("access_code")]
|
||||
public string? AccessCode { get; set; }
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
|
||||
[JsonPropertyName("ip_filter")]
|
||||
public string? IpFilter { get; set; }
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("due_at")]
|
||||
public DateTime? DueAt { get; set; }
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
[JsonPropertyName("unpublishable")]
|
||||
public bool? Unpublishable { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool? Published { get; set; }
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("unpublishable")]
|
||||
public bool? Unpublishable { get; set; }
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
[JsonPropertyName("speedgrader_url")]
|
||||
public string? SpeedGraderUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
[JsonPropertyName("quiz_extensions_url")]
|
||||
public string QuizExtensionsUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("speedgrader_url")]
|
||||
public string? SpeedGraderUrl { get; set; }
|
||||
[JsonPropertyName("permissions")]
|
||||
public QuizPermissionsModel Permissions { get; set; }
|
||||
|
||||
[JsonPropertyName("quiz_extensions_url")]
|
||||
public string QuizExtensionsUrl { get; set; }
|
||||
[JsonPropertyName("all_dates")]
|
||||
public object AllDates { get; set; } // exact type unspecified by canvas & no example value given
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public QuizPermissionsModel Permissions { get; set; }
|
||||
[JsonPropertyName("version_number")]
|
||||
public uint? VersionNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("all_dates")]
|
||||
public object AllDates { get; set; } // exact type unspecified by canvas & no example value given
|
||||
[JsonPropertyName("question_types")]
|
||||
public IEnumerable<string> QuestionTypes { get; set; }
|
||||
|
||||
[JsonPropertyName("version_number")]
|
||||
public uint? VersionNumber { get; set; }
|
||||
|
||||
[JsonPropertyName("question_types")]
|
||||
public IEnumerable<string> QuestionTypes { get; set; }
|
||||
|
||||
[JsonPropertyName("anonymous_submissions")]
|
||||
public bool? AnonymousSubmissions { get; set; }
|
||||
}
|
||||
[JsonPropertyName("anonymous_submissions")]
|
||||
public bool? AnonymousSubmissions { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,28 +1,27 @@
|
||||
|
||||
|
||||
namespace Model.Quizzes {
|
||||
namespace CanvasModel.Quizzes;
|
||||
public class QuizPermissionsModel
|
||||
{
|
||||
|
||||
public class QuizPermissionsModel {
|
||||
[JsonPropertyName("read")]
|
||||
public bool Read { get; set; }
|
||||
|
||||
[JsonPropertyName("read")]
|
||||
public bool Read { get; set; }
|
||||
[JsonPropertyName("submit")]
|
||||
public bool Submit { get; set; }
|
||||
|
||||
[JsonPropertyName("submit")]
|
||||
public bool Submit { get; set; }
|
||||
[JsonPropertyName("create")]
|
||||
public bool Create { get; set; }
|
||||
|
||||
[JsonPropertyName("create")]
|
||||
public bool Create { get; set; }
|
||||
[JsonPropertyName("manage")]
|
||||
public bool Manage { get; set; }
|
||||
|
||||
[JsonPropertyName("manage")]
|
||||
public bool Manage { get; set; }
|
||||
[JsonPropertyName("read_statistics")]
|
||||
public bool ReadStatistics { get; set; }
|
||||
|
||||
[JsonPropertyName("read_statistics")]
|
||||
public bool ReadStatistics { get; set; }
|
||||
[JsonPropertyName("review_grades")]
|
||||
public bool ReviewGrades { get; set; }
|
||||
|
||||
[JsonPropertyName("review_grades")]
|
||||
public bool ReviewGrades { get; set; }
|
||||
|
||||
[JsonPropertyName("update")]
|
||||
public bool Update { get; set; }
|
||||
}
|
||||
[JsonPropertyName("update")]
|
||||
public bool Update { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,29 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CanvasModel.Reports;
|
||||
public class ReportDescriptionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
namespace Model.Reports {
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
// ReSharper disable MemberCanBePrivate.Global
|
||||
// ReSharper disable ClassNeverInstantiated.Global
|
||||
public class ReportDescriptionModel {
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; }
|
||||
}
|
||||
|
||||
public class ReportParameterDescriptionModel {
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("required")]
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; }
|
||||
}
|
||||
|
||||
public class ReportParameterDescriptionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("required")]
|
||||
public bool Required { get; set; }
|
||||
}
|
||||
@@ -1,47 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using CanvasModel.Discussions;
|
||||
|
||||
namespace CanvasModel.Reports;
|
||||
public class ReportModel
|
||||
{
|
||||
|
||||
using Model.Discussions;
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
namespace Model.Reports {
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
|
||||
public class ReportModel {
|
||||
[JsonPropertyName("file_url")]
|
||||
public string? FileUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
|
||||
[JsonPropertyName("report")]
|
||||
public string Report { get; set; }
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; }
|
||||
|
||||
[JsonPropertyName("file_url")]
|
||||
public string? FileUrl { get; set; }
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("attachment")]
|
||||
public FileAttachmentModel? Attachment { get; set; }
|
||||
[JsonPropertyName("started_at")]
|
||||
public DateTime? StartedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("status")]
|
||||
public string Status { get; set; }
|
||||
[JsonPropertyName("ended_at")]
|
||||
public DateTime? EndedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
// the fields in this object can vary wildly depending on the report type, so for now we will loosely type it
|
||||
// like this
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; }
|
||||
|
||||
[JsonPropertyName("started_at")]
|
||||
public DateTime? StartedAt { get; set; }
|
||||
[JsonPropertyName("progress")]
|
||||
public double? Progress { get; set; }
|
||||
|
||||
[JsonPropertyName("ended_at")]
|
||||
public DateTime? EndedAt { get; set; }
|
||||
|
||||
// the fields in this object can vary wildly depending on the report type, so for now we will loosely type it
|
||||
// like this
|
||||
[JsonPropertyName("parameters")]
|
||||
public Dictionary<string, object> Parameters { get; set; }
|
||||
|
||||
[JsonPropertyName("progress")]
|
||||
public double? Progress { get; set; }
|
||||
|
||||
[JsonPropertyName("current_line")]
|
||||
public ulong? CurrentLine { get; set; }
|
||||
}
|
||||
[JsonPropertyName("current_line")]
|
||||
public ulong? CurrentLine { get; set; }
|
||||
}
|
||||
@@ -1,26 +1,24 @@
|
||||
|
||||
namespace CanvasModel.Results;
|
||||
public class ResultModel
|
||||
{
|
||||
// yes indeed the docs say this model specifically uses camelCase properties
|
||||
|
||||
namespace Model.Results {
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
public class ResultModel {
|
||||
// yes indeed the docs say this model specifically uses camelCase properties
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserId { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
[JsonPropertyName("resultScore")]
|
||||
public string ResultScore { get; set; }
|
||||
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserId { get; set; }
|
||||
[JsonPropertyName("resultMaximum")]
|
||||
public string ResultMaximum { get; set; }
|
||||
|
||||
[JsonPropertyName("resultScore")]
|
||||
public string ResultScore { get; set; }
|
||||
[JsonPropertyName("comment")]
|
||||
public string Comment { get; set; }
|
||||
|
||||
[JsonPropertyName("resultMaximum")]
|
||||
public string ResultMaximum { get; set; }
|
||||
|
||||
[JsonPropertyName("comment")]
|
||||
public string Comment { get; set; }
|
||||
|
||||
[JsonPropertyName("scoreOf")]
|
||||
public string ScoreOf { get; set; }
|
||||
}
|
||||
[JsonPropertyName("scoreOf")]
|
||||
public string ScoreOf { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Model.Accounts;
|
||||
using CanvasModel.Accounts;
|
||||
|
||||
namespace Model.Roles {
|
||||
namespace CanvasModel.Roles;
|
||||
public class RoleModel
|
||||
{
|
||||
|
||||
public class RoleModel {
|
||||
[JsonPropertyName("label")]
|
||||
public string Label { get; set; }
|
||||
|
||||
[JsonPropertyName("label")]
|
||||
public string Label { get; set; }
|
||||
[JsonPropertyName("base_role_type")]
|
||||
public string BaseRoleType { get; set; }
|
||||
|
||||
[JsonPropertyName("base_role_type")]
|
||||
public string BaseRoleType { get; set; }
|
||||
[JsonPropertyName("account")]
|
||||
public AccountModel Account { get; set; }
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public AccountModel Account { get; set; }
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, RolePermissionsModel> Permissions { get; set; }
|
||||
}
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, RolePermissionsModel> Permissions { get; set; }
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user