diff --git a/Management.Test/SemesterPlannerTests.cs b/Management.Test/SemesterPlannerTests.cs new file mode 100644 index 0000000..f0054a9 --- /dev/null +++ b/Management.Test/SemesterPlannerTests.cs @@ -0,0 +1,10 @@ +namespace Management.Test; + +public class SemesterPlannerTests +{ + [Test] + public void TestCanCreatePlannerFromCanvasSemester() + { + var + } +} \ No newline at end of file diff --git a/Management/Features/Calendar/SemesterPlanner.cs b/Management/Features/Calendar/SemesterPlanner.cs new file mode 100644 index 0000000..d272cbf --- /dev/null +++ b/Management/Features/Calendar/SemesterPlanner.cs @@ -0,0 +1,4 @@ +public class SemesterPlanner +{ + +} \ No newline at end of file diff --git a/Management/Models/CanvasModel/Accounts/AccountModel.cs b/Management/Models/CanvasModel/Accounts/AccountModel.cs index 0386d6d..f82446b 100644 --- a/Management/Models/CanvasModel/Accounts/AccountModel.cs +++ b/Management/Models/CanvasModel/Accounts/AccountModel.cs @@ -1,47 +1,46 @@ -namespace Model.Accounts { - - public class AccountModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("uuid")] - public string Uuid { get; set; } - - [JsonPropertyName("parent_account_id")] - public ulong? ParentAccountId { get; set; } - - [JsonPropertyName("root_account_id")] - public ulong? RootAccountId { 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_time_zone")] - public string DefaultTimeZone { get; set; } - - [JsonPropertyName("sis_account_id")] - public string? SisAccountId { get; set; } - - [JsonPropertyName("integrationI-d")] - public string? IntegrationId { get; set; } - - [JsonPropertyName("sis_import_id")] - public string? SisImportId { get; set; } - - [JsonPropertyName("lti_guid")] - public string LtiGuid { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - } +namespace CanvasModel.Accounts; +public class AccountModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("uuid")] + public string Uuid { get; set; } + + [JsonPropertyName("parent_account_id")] + public ulong? ParentAccountId { get; set; } + + [JsonPropertyName("root_account_id")] + public ulong? RootAccountId { 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_time_zone")] + public string DefaultTimeZone { get; set; } + + [JsonPropertyName("sis_account_id")] + public string? SisAccountId { get; set; } + + [JsonPropertyName("integrationI-d")] + public string? IntegrationId { get; set; } + + [JsonPropertyName("sis_import_id")] + public string? SisImportId { get; set; } + + [JsonPropertyName("lti_guid")] + public string LtiGuid { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Accounts/HelpLinkModel.cs b/Management/Models/CanvasModel/Accounts/HelpLinkModel.cs index d28b3e5..153d620 100644 --- a/Management/Models/CanvasModel/Accounts/HelpLinkModel.cs +++ b/Management/Models/CanvasModel/Accounts/HelpLinkModel.cs @@ -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("text")] - public string Text { get; set; } - - [JsonPropertyName("subtext")] - public string Subtext { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("available_to")] - public IEnumerable AvailableTo { get; set; } - } + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("subtext")] + public string Subtext { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("available_to")] + public IEnumerable AvailableTo { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Accounts/HelpLinksModel.cs b/Management/Models/CanvasModel/Accounts/HelpLinksModel.cs index f64484e..a9776bc 100644 --- a/Management/Models/CanvasModel/Accounts/HelpLinksModel.cs +++ b/Management/Models/CanvasModel/Accounts/HelpLinksModel.cs @@ -1,20 +1,19 @@ using System.Collections.Generic; -namespace Model.Accounts { - - public class HelpLinksModel { - - [JsonPropertyName("help_link_name")] - public string HelpLinkName { get; set; } - - [JsonPropertyName("help_link_icon")] - public string HelpLinkIcon { get; set; } - - [JsonPropertyName("custom_help_links")] - public IEnumerable CustomHelpLinks { get; set; } - - [JsonPropertyName("default_help_links")] - public IEnumerable DefaultHelpLinks { get; set; } - } +namespace CanvasModel.Accounts; +public class HelpLinksModel +{ + + [JsonPropertyName("help_link_name")] + public string HelpLinkName { get; set; } + + [JsonPropertyName("help_link_icon")] + public string HelpLinkIcon { get; set; } + + [JsonPropertyName("custom_help_links")] + public IEnumerable CustomHelpLinks { get; set; } + + [JsonPropertyName("default_help_links")] + public IEnumerable DefaultHelpLinks { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Accounts/TermsOfServiceModel.cs b/Management/Models/CanvasModel/Accounts/TermsOfServiceModel.cs index 2af0878..1b4454e 100644 --- a/Management/Models/CanvasModel/Accounts/TermsOfServiceModel.cs +++ b/Management/Models/CanvasModel/Accounts/TermsOfServiceModel.cs @@ -1,22 +1,21 @@ -namespace Model.Accounts { +namespace CanvasModel.Accounts; +public class TermsOfServiceModel +{ - public class TermsOfServiceModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("terms_type")] - public string TermsType { get; set; } - - [JsonPropertyName("passive")] - public bool Passive { get; set; } - - [JsonPropertyName("account_id")] - public ulong AccountId { get; set; } - - [JsonPropertyName("content")] - public string Content { get; set; } - } + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("terms_type")] + public string TermsType { get; set; } + + [JsonPropertyName("passive")] + public bool Passive { get; set; } + + [JsonPropertyName("account_id")] + public ulong AccountId { get; set; } + + [JsonPropertyName("content")] + public string Content { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Analytics/CourseAssignmentSummaryModel.cs b/Management/Models/CanvasModel/Analytics/CourseAssignmentSummaryModel.cs index 4ab0f7e..56e754b 100644 --- a/Management/Models/CanvasModel/Analytics/CourseAssignmentSummaryModel.cs +++ b/Management/Models/CanvasModel/Analytics/CourseAssignmentSummaryModel.cs @@ -1,47 +1,46 @@ using System; -namespace Model.Analytics { - - public class CourseAssignmentSummaryModel { - - [JsonPropertyName("assignment_id")] - public ulong AssignmentId { get; set; } - - [JsonPropertyName("title")] - public string Title { 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("points_possible")] - public decimal PointsPossible { get; set; } - - [JsonPropertyName("non_digital_submission")] - public bool? NonDigitalSubmission { get; set; } - - [JsonPropertyName("max_score")] - public decimal? MaxScore { get; set; } - - [JsonPropertyName("min_score")] - public decimal? MinScore { get; set; } - - [JsonPropertyName("first_quartile")] - public decimal? FirstQuartile { get; set; } - - [JsonPropertyName("median")] - public decimal? Median { get; set; } - - [JsonPropertyName("third_quartile")] - public decimal? ThirdQuartile { get; set; } - - [JsonPropertyName("tardiness_breakdown")] - public TardinessModel TardinessBreakdown { get; set; } - } +namespace CanvasModel.Analytics; +public class CourseAssignmentSummaryModel +{ + + [JsonPropertyName("assignment_id")] + public ulong AssignmentId { get; set; } + + [JsonPropertyName("title")] + public string Title { 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("points_possible")] + public decimal PointsPossible { get; set; } + + [JsonPropertyName("non_digital_submission")] + public bool? NonDigitalSubmission { get; set; } + + [JsonPropertyName("max_score")] + public decimal? MaxScore { get; set; } + + [JsonPropertyName("min_score")] + public decimal? MinScore { get; set; } + + [JsonPropertyName("first_quartile")] + public decimal? FirstQuartile { get; set; } + + [JsonPropertyName("median")] + public decimal? Median { get; set; } + + [JsonPropertyName("third_quartile")] + public decimal? ThirdQuartile { get; set; } + + [JsonPropertyName("tardiness_breakdown")] + public TardinessModel TardinessBreakdown { get; set; } } diff --git a/Management/Models/CanvasModel/Analytics/CourseStudentSummaryModel.cs b/Management/Models/CanvasModel/Analytics/CourseStudentSummaryModel.cs index 7933a95..a359a76 100644 --- a/Management/Models/CanvasModel/Analytics/CourseStudentSummaryModel.cs +++ b/Management/Models/CanvasModel/Analytics/CourseStudentSummaryModel.cs @@ -1,31 +1,30 @@ -namespace Model.Analytics { - - public class CourseStudentSummaryModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("page_views")] - public uint PageViews { get; set; } - - [JsonPropertyName("max_page_views")] - public uint? MaxPageViews { get; set; } - - [JsonPropertyName("page_views_level")] - public uint? PageViewsLevel { get; set; } - - [JsonPropertyName("participations")] - public uint Participations { get; set; } - - [JsonPropertyName("max_participations")] - public uint? MaxParticipations { get; set; } - - [JsonPropertyName("participations_level")] - public uint? ParticipationsLevel { get; set; } - - [JsonPropertyName("tardiness_breakdown")] - public TardinessModel TardinessBreakdown { get; set; } - } +namespace CanvasModel.Analytics; +public class CourseStudentSummaryModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("page_views")] + public uint PageViews { get; set; } + + [JsonPropertyName("max_page_views")] + public uint? MaxPageViews { get; set; } + + [JsonPropertyName("page_views_level")] + public uint? PageViewsLevel { get; set; } + + [JsonPropertyName("participations")] + public uint Participations { get; set; } + + [JsonPropertyName("max_participations")] + public uint? MaxParticipations { get; set; } + + [JsonPropertyName("participations_level")] + public uint? ParticipationsLevel { get; set; } + + [JsonPropertyName("tardiness_breakdown")] + public TardinessModel TardinessBreakdown { get; set; } } diff --git a/Management/Models/CanvasModel/Analytics/DepartmentParticipationModel.cs b/Management/Models/CanvasModel/Analytics/DepartmentParticipationModel.cs index bc78340..7ca6c96 100644 --- a/Management/Models/CanvasModel/Analytics/DepartmentParticipationModel.cs +++ b/Management/Models/CanvasModel/Analytics/DepartmentParticipationModel.cs @@ -2,39 +2,40 @@ using System; using System.Collections.Generic; -namespace Model.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 { +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 +{ - [JsonPropertyName("by_date")] - public IEnumerable ByDate { get; set; } + [JsonPropertyName("by_date")] + public IEnumerable ByDate { get; set; } - [JsonPropertyName("by_category")] - public IEnumerable 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 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; } } diff --git a/Management/Models/CanvasModel/Analytics/DepartmentStatisticsModel.cs b/Management/Models/CanvasModel/Analytics/DepartmentStatisticsModel.cs index 00de765..f1fcc96 100644 --- a/Management/Models/CanvasModel/Analytics/DepartmentStatisticsModel.cs +++ b/Management/Models/CanvasModel/Analytics/DepartmentStatisticsModel.cs @@ -1,31 +1,30 @@ -namespace Model.Analytics { - - public class DepartmentStatisticsModel { - - [JsonPropertyName("courses")] - public ulong Courses { get; set; } - - [JsonPropertyName("subaccounts")] - public ulong Subaccounts { get; set; } - - [JsonPropertyName("teacher")] - public ulong Teachers { get; set; } - - [JsonPropertyName("students")] - public ulong Students { get; set; } - - [JsonPropertyName("discussion_topics")] - public ulong DiscussionTopics { get; set; } - - [JsonPropertyName("media_objects")] - public ulong MediaObjects { get; set; } - - [JsonPropertyName("attachments")] - public ulong Attachments { get; set; } - - [JsonPropertyName("assignments")] - public ulong Assignments { get; set; } - } +namespace CanvasModel.Analytics; +public class DepartmentStatisticsModel +{ + + [JsonPropertyName("courses")] + public ulong Courses { get; set; } + + [JsonPropertyName("subaccounts")] + public ulong Subaccounts { get; set; } + + [JsonPropertyName("teacher")] + public ulong Teachers { get; set; } + + [JsonPropertyName("students")] + public ulong Students { get; set; } + + [JsonPropertyName("discussion_topics")] + public ulong DiscussionTopics { get; set; } + + [JsonPropertyName("media_objects")] + public ulong MediaObjects { get; set; } + + [JsonPropertyName("attachments")] + public ulong Attachments { get; set; } + + [JsonPropertyName("assignments")] + public ulong Assignments { get; set; } } diff --git a/Management/Models/CanvasModel/Analytics/TardinessModel.cs b/Management/Models/CanvasModel/Analytics/TardinessModel.cs index a1283fa..f07c008 100644 --- a/Management/Models/CanvasModel/Analytics/TardinessModel.cs +++ b/Management/Models/CanvasModel/Analytics/TardinessModel.cs @@ -1,21 +1,21 @@ -namespace Model.Analytics { - public class TardinessModel { - - [JsonPropertyName("missing")] - public decimal Missing { get; set; } - - [JsonPropertyName("late")] - public decimal Late { get; set; } - - [JsonPropertyName("on_time")] - public decimal OnTime { get; set; } - - [JsonPropertyName("floating")] - public decimal Floating { get; set; } - - [JsonPropertyName("total")] - public decimal Total { get; set; } - } +namespace CanvasModel.Analytics; +public class TardinessModel +{ + + [JsonPropertyName("missing")] + public decimal Missing { get; set; } + + [JsonPropertyName("late")] + public decimal Late { get; set; } + + [JsonPropertyName("on_time")] + public decimal OnTime { get; set; } + + [JsonPropertyName("floating")] + public decimal Floating { get; set; } + + [JsonPropertyName("total")] + public decimal Total { get; set; } } diff --git a/Management/Models/CanvasModel/Analytics/UserAssignmentDataModel.cs b/Management/Models/CanvasModel/Analytics/UserAssignmentDataModel.cs index 333b07f..d281a7a 100644 --- a/Management/Models/CanvasModel/Analytics/UserAssignmentDataModel.cs +++ b/Management/Models/CanvasModel/Analytics/UserAssignmentDataModel.cs @@ -2,56 +2,56 @@ using System; using System.Collections.Generic; -namespace Model.Analytics { - - public struct UserAssignmentSubmissionDataModel { - - [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 ModuleIds { get; set; } - - [JsonPropertyName("submission")] - public UserAssignmentSubmissionDataModel? Submission { get; set; } - } +namespace CanvasModel.Analytics; +public struct UserAssignmentSubmissionDataModel +{ + + [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 ModuleIds { get; set; } + + [JsonPropertyName("submission")] + public UserAssignmentSubmissionDataModel? Submission { get; set; } } diff --git a/Management/Models/CanvasModel/Analytics/UserParticipationModel.cs b/Management/Models/CanvasModel/Analytics/UserParticipationModel.cs index 1f26b7b..b304e58 100644 --- a/Management/Models/CanvasModel/Analytics/UserParticipationModel.cs +++ b/Management/Models/CanvasModel/Analytics/UserParticipationModel.cs @@ -2,23 +2,23 @@ using System; using System.Collections.Generic; -namespace Model.Analytics { - - public struct UserParticipationModel { - - [JsonPropertyName("page_views")] - public Dictionary PageViews { get; set; } - - [JsonPropertyName("participations")] - public IEnumerable Participations { get; set; } - } +namespace CanvasModel.Analytics; +public struct UserParticipationModel +{ - public struct UserParticipationEventModel { - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - } + [JsonPropertyName("page_views")] + public Dictionary PageViews { get; set; } + + [JsonPropertyName("participations")] + public IEnumerable Participations { get; set; } +} + +public struct UserParticipationEventModel +{ + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } } diff --git a/Management/Models/CanvasModel/Appointments/AppointmentGroupModel.cs b/Management/Models/CanvasModel/Appointments/AppointmentGroupModel.cs index 23a932e..20bc7ac 100644 --- a/Management/Models/CanvasModel/Appointments/AppointmentGroupModel.cs +++ b/Management/Models/CanvasModel/Appointments/AppointmentGroupModel.cs @@ -2,85 +2,86 @@ using System; using System.Collections.Generic; -using Model.Calendar; +using CanvasModel.Calendar; -namespace Model.Appointments { - - public class AppointmentGroupModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("start_at")] - public DateTime StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime EndAt { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("location_name")] - public string LocationName { get; set; } - - [JsonPropertyName("location_address")] - public string LocationAddress { get; set; } - - [JsonPropertyName("participant_count")] - public uint? ParticipantCount { get; set; } - - [JsonPropertyName("reserved_times")] - public IEnumerable ReservedTimes { get; set; } - - [JsonPropertyName("context_codes")] - public IEnumerable ContextCodes { get; set; } - - [JsonPropertyName("sub_context_codes")] - public IEnumerable SubContextCodes { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("requiring_action")] - public bool? RequiringAction { get; set; } - - [JsonPropertyName("appointments_count")] - public uint AppointmentsCount { get; set; } - - [JsonPropertyName("appointments")] - public IEnumerable Appointments { get; set; } - - [JsonPropertyName("new_appointments")] - public IEnumerable? NewAppointments { get; set; } - - [JsonPropertyName("max_appointments_per_participant")] - public uint? MaxAppointmentsPerParticipant { get; set; } - - [JsonPropertyName("min_appointments_per_participant")] - public uint? MinAppointmentsPerParticipant { get; set; } - - [JsonPropertyName("participants_per_appointment")] - public uint? ParticipantsPerAppointment { get; set; } - - [JsonPropertyName("participant_visibility")] - public string ParticipantVisibility { get; set; } - - [JsonPropertyName("participant_type")] - public string ParticipantType { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("html")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime UpdatedAt { get; set; } - } +namespace CanvasModel.Appointments; + +public class AppointmentGroupModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("start_at")] + public DateTime StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime EndAt { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("location_name")] + public string LocationName { get; set; } + + [JsonPropertyName("location_address")] + public string LocationAddress { get; set; } + + [JsonPropertyName("participant_count")] + public uint? ParticipantCount { get; set; } + + [JsonPropertyName("reserved_times")] + public IEnumerable ReservedTimes { get; set; } + + [JsonPropertyName("context_codes")] + public IEnumerable ContextCodes { get; set; } + + [JsonPropertyName("sub_context_codes")] + public IEnumerable SubContextCodes { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("requiring_action")] + public bool? RequiringAction { get; set; } + + [JsonPropertyName("appointments_count")] + public uint AppointmentsCount { get; set; } + + [JsonPropertyName("appointments")] + public IEnumerable Appointments { get; set; } + + [JsonPropertyName("new_appointments")] + public IEnumerable? NewAppointments { get; set; } + + [JsonPropertyName("max_appointments_per_participant")] + public uint? MaxAppointmentsPerParticipant { get; set; } + + [JsonPropertyName("min_appointments_per_participant")] + public uint? MinAppointmentsPerParticipant { get; set; } + + [JsonPropertyName("participants_per_appointment")] + public uint? ParticipantsPerAppointment { get; set; } + + [JsonPropertyName("participant_visibility")] + public string ParticipantVisibility { get; set; } + + [JsonPropertyName("participant_type")] + public string ParticipantType { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("html")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime UpdatedAt { get; set; } } + diff --git a/Management/Models/CanvasModel/Appointments/AppointmentModel.cs b/Management/Models/CanvasModel/Appointments/AppointmentModel.cs index daae838..071d8ee 100644 --- a/Management/Models/CanvasModel/Appointments/AppointmentModel.cs +++ b/Management/Models/CanvasModel/Appointments/AppointmentModel.cs @@ -1,17 +1,18 @@ using System; -namespace Model.Appointments { - - public class AppointmentModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("start_at")] - public DateTime StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime EndAt { get; set; } - } +namespace CanvasModel.Appointments; + +public class AppointmentModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("start_at")] + public DateTime StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime EndAt { get; set; } } + diff --git a/Management/Models/CanvasModel/Assignments/AssignmentDateModel.cs b/Management/Models/CanvasModel/Assignments/AssignmentDateModel.cs index f3549e9..3edaf66 100644 --- a/Management/Models/CanvasModel/Assignments/AssignmentDateModel.cs +++ b/Management/Models/CanvasModel/Assignments/AssignmentDateModel.cs @@ -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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/AssignmentModel.cs b/Management/Models/CanvasModel/Assignments/AssignmentModel.cs index 79270ee..84d1f21 100644 --- a/Management/Models/CanvasModel/Assignments/AssignmentModel.cs +++ b/Management/Models/CanvasModel/Assignments/AssignmentModel.cs @@ -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 { - - public class AssignmentModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("due_at")] - public DateTime? DueAt { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("has_overrides")] - public bool HasOverrides { get; set; } - - [JsonPropertyName("all_dates")] - public IEnumerable? AllDates { get; set; } - - [JsonPropertyName("course_id")] - public ulong CourseId { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("submissions_download_url")] - public string SubmissionsDownloadUrl { get; set; } - - [JsonPropertyName("assignment_group_id")] - public ulong AssignmentGroupId { get; set; } - - [JsonPropertyName("due_date_required")] - public bool DueDateRequired { get; set; } - - [JsonPropertyName("allowed_extensions")] - public IEnumerable? AllowedExtensions { get; set; } - - [JsonPropertyName("max_name_length")] - public uint MaxNameLength { get; set; } - - [JsonPropertyName("turnitin_enabled")] - public bool? TurnitinEnabled { get; set; } - - [JsonPropertyName("vericite_enabled")] - public bool? VeriCiteEnabled { get; set; } - - [JsonPropertyName("turnitin_settings")] - public TurnitinSettingsModel? TurnitinSettings { get; set; } - - [JsonPropertyName("grade_group_students_individually")] - public bool? GradeGroupStudentsIndividually { get; set; } - - [JsonPropertyName("external_tool_tag_attributes")] - public ExternalToolTagAttributesModel? ExternalToolTagAttributes { get; set; } - - [JsonPropertyName("peer_reviews")] - public bool PeerReviews { get; set; } - - [JsonPropertyName("automatic_peer_reviews")] - public bool AutomaticPeerReviews { get; set; } - - [JsonPropertyName("peer_review_count")] - public uint? PeerReviewCount { get; set; } - - [JsonPropertyName("peer_reviews_assign_at")] - public DateTime? PeerReviewsAssignAt { get; set; } - - [JsonPropertyName("intra_group_peer_reviews")] - public bool? IntraGroupPeerReviews { get; set; } - - [JsonPropertyName("group_category_id")] - public ulong? GroupCategoryId { get; set; } - - [JsonPropertyName("needs_grading_count")] - public uint? NeedsGradingCount { get; set; } - - [JsonPropertyName("needs_grading_count_be_section")] - public IEnumerable? NeedsGradingCountBySection { get; set; } - - [JsonPropertyName("position")] - public ulong Position { get; set; } - - [JsonPropertyName("post_to_sis")] - public bool? PostToSis { get; set; } - - [JsonPropertyName("integration_id")] - public string? IntegrationId { get; set; } - - [JsonPropertyName("integration_data")] - public object? IntegrationData { get; set; } - - [JsonPropertyName("muted")] - public bool? Muted { get; set; } - - [JsonPropertyName("points_possible")] - public double? PointsPossible { get; set; } - - [JsonPropertyName("submission_types")] - public IEnumerable SubmissionTypes { get; set; } - - [JsonPropertyName("has_submitted_submissions")] - public bool? HasSubmittedSubmissions { get; set; } - - [JsonPropertyName("grading_type")] - public string GradingType { get; set; } +namespace CanvasModel.Assignments; +public class AssignmentModel +{ - [JsonPropertyName("grading_standard_id")] - public ulong? GradingStandardId { get; set; } + [JsonPropertyName("id")] + public ulong Id { get; set; } - [JsonPropertyName("published")] - public bool Published { get; set; } - - [JsonPropertyName("unpublishable")] - public bool Unpublishable { get; set; } - - [JsonPropertyName("only_visible_to_overrides")] - public bool OnlyVisibleToOverrides { 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("quiz_id")] - public ulong? QuizId { get; set; } - - [JsonPropertyName("anonymous_submissions")] - public bool? AnonymousSubmissions { get; set; } - - [JsonPropertyName("discussion_topic")] - public DiscussionTopicModel? DiscussionTopic { get; set; } - - [JsonPropertyName("freeze_on_copy")] - public bool? FreezeOnCopy { get; set; } - - [JsonPropertyName("frozen")] - public bool? Frozen { get; set; } - - [JsonPropertyName("frozen_attributes")] - public IEnumerable? FrozenAttributes { get; set; } - - [JsonPropertyName("submission")] - public SubmissionModel? Submission { 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")] - public IEnumerable? Rubric { get; set; } - - [JsonPropertyName("assignment_visibility")] - public IEnumerable? AssignmentVisibility { get; set; } - - [JsonPropertyName("overrides")] - public IEnumerable? Overrides { get; set; } - - [JsonPropertyName("omit_from_final_grade")] - public bool? OmitFromFinalGrade { get; set; } - - [JsonPropertyName("moderated_grading")] - public bool ModeratedGrading { get; set; } - - [JsonPropertyName("grader_count")] - public uint GraderCount { get; set; } - - [JsonPropertyName("final_grader_id")] - public ulong? FinalGraderId { get; set; } - - [JsonPropertyName("grader_comments_visible_to_graders")] - public bool? GraderCommentsVisibleToGraders { 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("anonymous_grading")] - public bool? AnonymousGrading { get; set; } - - [JsonPropertyName("allowed_attempts")] - public int AllowedAttempts { get; set; } - } + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("due_at")] + public DateTime? DueAt { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("has_overrides")] + public bool HasOverrides { get; set; } + + [JsonPropertyName("all_dates")] + public IEnumerable? AllDates { get; set; } + + [JsonPropertyName("course_id")] + public ulong CourseId { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("submissions_download_url")] + public string SubmissionsDownloadUrl { get; set; } + + [JsonPropertyName("assignment_group_id")] + public ulong AssignmentGroupId { get; set; } + + [JsonPropertyName("due_date_required")] + public bool DueDateRequired { get; set; } + + [JsonPropertyName("allowed_extensions")] + public IEnumerable? AllowedExtensions { get; set; } + + [JsonPropertyName("max_name_length")] + public uint MaxNameLength { get; set; } + + [JsonPropertyName("turnitin_enabled")] + public bool? TurnitinEnabled { get; set; } + + [JsonPropertyName("vericite_enabled")] + public bool? VeriCiteEnabled { get; set; } + + [JsonPropertyName("turnitin_settings")] + public TurnitinSettingsModel? TurnitinSettings { get; set; } + + [JsonPropertyName("grade_group_students_individually")] + public bool? GradeGroupStudentsIndividually { get; set; } + + [JsonPropertyName("external_tool_tag_attributes")] + public ExternalToolTagAttributesModel? ExternalToolTagAttributes { get; set; } + + [JsonPropertyName("peer_reviews")] + public bool PeerReviews { get; set; } + + [JsonPropertyName("automatic_peer_reviews")] + public bool AutomaticPeerReviews { get; set; } + + [JsonPropertyName("peer_review_count")] + public uint? PeerReviewCount { get; set; } + + [JsonPropertyName("peer_reviews_assign_at")] + public DateTime? PeerReviewsAssignAt { get; set; } + + [JsonPropertyName("intra_group_peer_reviews")] + public bool? IntraGroupPeerReviews { get; set; } + + [JsonPropertyName("group_category_id")] + public ulong? GroupCategoryId { get; set; } + + [JsonPropertyName("needs_grading_count")] + public uint? NeedsGradingCount { get; set; } + + [JsonPropertyName("needs_grading_count_be_section")] + public IEnumerable? NeedsGradingCountBySection { get; set; } + + [JsonPropertyName("position")] + public ulong Position { get; set; } + + [JsonPropertyName("post_to_sis")] + public bool? PostToSis { get; set; } + + [JsonPropertyName("integration_id")] + public string? IntegrationId { get; set; } + + [JsonPropertyName("integration_data")] + public object? IntegrationData { get; set; } + + [JsonPropertyName("muted")] + public bool? Muted { get; set; } + + [JsonPropertyName("points_possible")] + public double? PointsPossible { get; set; } + + [JsonPropertyName("submission_types")] + public IEnumerable SubmissionTypes { get; set; } + + [JsonPropertyName("has_submitted_submissions")] + public bool? HasSubmittedSubmissions { get; set; } + + [JsonPropertyName("grading_type")] + public string GradingType { get; set; } + + [JsonPropertyName("grading_standard_id")] + public ulong? GradingStandardId { get; set; } + + [JsonPropertyName("published")] + public bool Published { get; set; } + + [JsonPropertyName("unpublishable")] + public bool Unpublishable { get; set; } + + [JsonPropertyName("only_visible_to_overrides")] + public bool OnlyVisibleToOverrides { 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("quiz_id")] + public ulong? QuizId { get; set; } + + [JsonPropertyName("anonymous_submissions")] + public bool? AnonymousSubmissions { get; set; } + + [JsonPropertyName("discussion_topic")] + public DiscussionTopicModel? DiscussionTopic { get; set; } + + [JsonPropertyName("freeze_on_copy")] + public bool? FreezeOnCopy { get; set; } + + [JsonPropertyName("frozen")] + public bool? Frozen { get; set; } + + [JsonPropertyName("frozen_attributes")] + public IEnumerable? FrozenAttributes { get; set; } + + [JsonPropertyName("submission")] + public SubmissionModel? Submission { 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")] + public IEnumerable? Rubric { get; set; } + + [JsonPropertyName("assignment_visibility")] + public IEnumerable? AssignmentVisibility { get; set; } + + [JsonPropertyName("overrides")] + public IEnumerable? Overrides { get; set; } + + [JsonPropertyName("omit_from_final_grade")] + public bool? OmitFromFinalGrade { get; set; } + + [JsonPropertyName("moderated_grading")] + public bool ModeratedGrading { get; set; } + + [JsonPropertyName("grader_count")] + public uint GraderCount { get; set; } + + [JsonPropertyName("final_grader_id")] + public ulong? FinalGraderId { get; set; } + + [JsonPropertyName("grader_comments_visible_to_graders")] + public bool? GraderCommentsVisibleToGraders { 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("anonymous_grading")] + public bool? AnonymousGrading { get; set; } + + [JsonPropertyName("allowed_attempts")] + public int AllowedAttempts { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/AssignmentOverrideModel.cs b/Management/Models/CanvasModel/Assignments/AssignmentOverrideModel.cs index f81f98f..b0bc31d 100644 --- a/Management/Models/CanvasModel/Assignments/AssignmentOverrideModel.cs +++ b/Management/Models/CanvasModel/Assignments/AssignmentOverrideModel.cs @@ -3,41 +3,40 @@ using System.Collections.Generic; -namespace Model.Assignments { - - public class AssignmentOverrideModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("assignment_id")] - public ulong AssignmentId { get; set; } - - [JsonPropertyName("student_ids")] - public IEnumerable? StudentIds { get; set; } - - [JsonPropertyName("group_id")] - public ulong? GroupId { get; set; } - - [JsonPropertyName("course_section_ids")] - public ulong CourseSectionId { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("due_at")] - public DateTime? DueAt { get; set; } - - [JsonPropertyName("all_day")] - public bool? AllDay { get; set; } - - [JsonPropertyName("all_day_date")] - public DateTime? AllDayDate { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - } +namespace CanvasModel.Assignments; +public class AssignmentOverrideModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("assignment_id")] + public ulong AssignmentId { get; set; } + + [JsonPropertyName("student_ids")] + public IEnumerable? StudentIds { get; set; } + + [JsonPropertyName("group_id")] + public ulong? GroupId { get; set; } + + [JsonPropertyName("course_section_ids")] + public ulong CourseSectionId { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("due_at")] + public DateTime? DueAt { get; set; } + + [JsonPropertyName("all_day")] + public bool? AllDay { get; set; } + + [JsonPropertyName("all_day_date")] + public DateTime? AllDayDate { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/ExternalToolTagAttributesModel.cs b/Management/Models/CanvasModel/Assignments/ExternalToolTagAttributesModel.cs index 170a3b7..b83daf0 100644 --- a/Management/Models/CanvasModel/Assignments/ExternalToolTagAttributesModel.cs +++ b/Management/Models/CanvasModel/Assignments/ExternalToolTagAttributesModel.cs @@ -1,16 +1,15 @@ -namespace Model.Assignments { - - public class ExternalToolTagAttributesModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("new_tab")] - public bool? NewTab { get; set; } - - [JsonPropertyName("resource_link_id")] - public string ResourceLinkId { get; set; } - } +namespace CanvasModel.Assignments; +public class ExternalToolTagAttributesModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("new_tab")] + public bool? NewTab { get; set; } + + [JsonPropertyName("resource_link_id")] + public string ResourceLinkId { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/LockInfoModel.cs b/Management/Models/CanvasModel/Assignments/LockInfoModel.cs index 4bf527d..152f9d3 100644 --- a/Management/Models/CanvasModel/Assignments/LockInfoModel.cs +++ b/Management/Models/CanvasModel/Assignments/LockInfoModel.cs @@ -2,23 +2,22 @@ using System; -namespace Model.Assignments { - - public class LockInfoModel { - - [JsonPropertyName("asset_string")] - public string AssetString { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("context_module")] - public object? ContextModule { get; set; } - - [JsonPropertyName("manually_locked")] - public bool? ManuallyLocked { get; set; } - } +namespace CanvasModel.Assignments; +public class LockInfoModel +{ + + [JsonPropertyName("asset_string")] + public string AssetString { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("context_module")] + public object? ContextModule { get; set; } + + [JsonPropertyName("manually_locked")] + public bool? ManuallyLocked { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/NeedsGradingCountModel.cs b/Management/Models/CanvasModel/Assignments/NeedsGradingCountModel.cs index 1906e6a..5ffe83a 100644 --- a/Management/Models/CanvasModel/Assignments/NeedsGradingCountModel.cs +++ b/Management/Models/CanvasModel/Assignments/NeedsGradingCountModel.cs @@ -1,13 +1,12 @@ -namespace Model.Assignments { - - public class NeedsGradingCountModel { - - [JsonPropertyName("section_id")] - public string SectionId { get; set; } - - [JsonPropertyName("needs_grading_count")] - public uint NeedsGradingCount { get; set; } - } +namespace CanvasModel.Assignments; +public class NeedsGradingCountModel +{ + + [JsonPropertyName("section_id")] + public string SectionId { get; set; } + + [JsonPropertyName("needs_grading_count")] + public uint NeedsGradingCount { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/RubricCriteriaModel.cs b/Management/Models/CanvasModel/Assignments/RubricCriteriaModel.cs index 1460d76..ec4d216 100644 --- a/Management/Models/CanvasModel/Assignments/RubricCriteriaModel.cs +++ b/Management/Models/CanvasModel/Assignments/RubricCriteriaModel.cs @@ -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? Ratings { get; set; } - [JsonPropertyName("ratings")] - public IEnumerable? Ratings { get; set; } - - [JsonPropertyName("ignore_for_scoring")] - public bool? IgnoreForScoring { get; set; } - } + [JsonPropertyName("ignore_for_scoring")] + public bool? IgnoreForScoring { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/RubricRatingModel.cs b/Management/Models/CanvasModel/Assignments/RubricRatingModel.cs index 858f635..61cc89d 100644 --- a/Management/Models/CanvasModel/Assignments/RubricRatingModel.cs +++ b/Management/Models/CanvasModel/Assignments/RubricRatingModel.cs @@ -1,19 +1,18 @@ -namespace Model.Assignments { - - public class RubricRatingModel { - - [JsonPropertyName("points")] - public double Points { get; set; } - - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("long_description")] - public string LongDescription { get; set; } - } +namespace CanvasModel.Assignments; +public class RubricRatingModel +{ + + [JsonPropertyName("points")] + public double Points { get; set; } + + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("long_description")] + public string LongDescription { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Assignments/TurnitinSettingsModel.cs b/Management/Models/CanvasModel/Assignments/TurnitinSettingsModel.cs index dce78be..fce1145 100644 --- a/Management/Models/CanvasModel/Assignments/TurnitinSettingsModel.cs +++ b/Management/Models/CanvasModel/Assignments/TurnitinSettingsModel.cs @@ -1,31 +1,30 @@ -namespace Model.Assignments { - - public class TurnitinSettingsModel { - - [JsonPropertyName("originality_report_visibility")] - public string OriginalityReportVisibility { get; set; } - - [JsonPropertyName("s_paper_check")] - public bool SPaperCheck { get; set; } - - [JsonPropertyName("internet_check")] - public bool InternetCheck { get; set; } - - [JsonPropertyName("journal_check")] - public bool JournalCheck { get; set; } - - [JsonPropertyName("exclude_biblio")] - public bool ExcludeBiblio { get; set; } - - [JsonPropertyName("exclude_quoted")] - public bool ExcludeQuoted { get; set; } - - [JsonPropertyName("exclude_small_matches_type")] - public bool? ExcludeSmallMatchesType { get; set; } - - [JsonPropertyName("exclude_small_matches_value")] - public uint? ExcludeSmallMatchesValue { get; set; } - } +namespace CanvasModel.Assignments; +public class TurnitinSettingsModel +{ + + [JsonPropertyName("originality_report_visibility")] + public string OriginalityReportVisibility { get; set; } + + [JsonPropertyName("s_paper_check")] + public bool SPaperCheck { get; set; } + + [JsonPropertyName("internet_check")] + public bool InternetCheck { get; set; } + + [JsonPropertyName("journal_check")] + public bool JournalCheck { get; set; } + + [JsonPropertyName("exclude_biblio")] + public bool ExcludeBiblio { get; set; } + + [JsonPropertyName("exclude_quoted")] + public bool ExcludeQuoted { get; set; } + + [JsonPropertyName("exclude_small_matches_type")] + public bool? ExcludeSmallMatchesType { get; set; } + + [JsonPropertyName("exclude_small_matches_value")] + public uint? ExcludeSmallMatchesValue { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Authentications/AuthenticationEventModel.cs b/Management/Models/CanvasModel/Authentications/AuthenticationEventModel.cs index b85ef1b..f1b2668 100644 --- a/Management/Models/CanvasModel/Authentications/AuthenticationEventModel.cs +++ b/Management/Models/CanvasModel/Authentications/AuthenticationEventModel.cs @@ -1,36 +1,36 @@ using System; -namespace Model.Authentications { - - // NOTE: the api documentation for this model is incorrect - public class AuthenticationEventModel { - - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("event_type")] - public string EventType { get; set; } - - [JsonPropertyName("links")] - public AuthenticationEventLinksModel Links { get; set; } - } +namespace CanvasModel.Authentications; +// NOTE: the api documentation for this model is incorrect +public class AuthenticationEventModel +{ - 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("id")] + public string Id { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Authentications/AuthenticationEventsResponseModel.cs b/Management/Models/CanvasModel/Authentications/AuthenticationEventsResponseModel.cs index 1064ef2..97b6641 100644 --- a/Management/Models/CanvasModel/Authentications/AuthenticationEventsResponseModel.cs +++ b/Management/Models/CanvasModel/Authentications/AuthenticationEventsResponseModel.cs @@ -1,11 +1,11 @@ using System.Collections.Generic; -namespace Model.Authentications { - public struct AuthenticationEventsResponseModel { - - [JsonPropertyName("events")] - public IEnumerable Events { get; set; } - - } +namespace CanvasModel.Authentications; +public struct AuthenticationEventsResponseModel +{ + + [JsonPropertyName("events")] + public IEnumerable Events { get; set; } + } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Calendar/AssignmentEventModel.cs b/Management/Models/CanvasModel/Calendar/AssignmentEventModel.cs index d224063..77e15af 100644 --- a/Management/Models/CanvasModel/Calendar/AssignmentEventModel.cs +++ b/Management/Models/CanvasModel/Calendar/AssignmentEventModel.cs @@ -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": "Write an essay. Whatever you want.", - [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": "Write an essay. Whatever you want.", + [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 - } } diff --git a/Management/Models/CanvasModel/Calendar/CalendarEventModel.cs b/Management/Models/CanvasModel/Calendar/CalendarEventModel.cs index 6d33b19..5c2a402 100644 --- a/Management/Models/CanvasModel/Calendar/CalendarEventModel.cs +++ b/Management/Models/CanvasModel/Calendar/CalendarEventModel.cs @@ -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("id")] - public ulong Id { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("start_at")] - public DateTime StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime EndAt { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("location_name")] - public string LocationName { get; set; } - - [JsonPropertyName("location_address")] - public string LocationAddress { get; set; } - - [JsonPropertyName("context_code")] - public string ContextCode { get; set; } - - [JsonPropertyName("effective_context_code")] - public string? EffectiveContextCode { get; set; } - - [JsonPropertyName("all_context_codes")] - public string AllContextCodes { get; set; } // comma separated - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("hidden")] - public bool Hidden { get; set; } - - [JsonPropertyName("parent_event_id")] - public string? ParentEventId { get; set; } - - [JsonPropertyName("child_events_count")] - public uint? ChildEventsCount { get; set; } - - [JsonPropertyName("child_events")] - public IEnumerable? ChildEvents { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("all_day_date")] - public DateTime? AllDayDate { get; set; } - - [JsonPropertyName("all_day")] - public bool AllDay { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime UpdatedAt { get; set; } - - [JsonPropertyName("appointment_group_id")] - public ulong AppointmentGroupId { get; set; } - - [JsonPropertyName("appointment_group_url")] - public string AppointmentGroupUrl { get; set; } - - [JsonPropertyName("own_reservation")] - public bool? OwnReservation { get; set; } - - [JsonPropertyName("reserve_url")] - public string? ReserveUrl { get; set; } - - [JsonPropertyName("reserved")] - public bool? Reserved { get; set; } - - [JsonPropertyName("participant_type")] - public string ParticipantType { get; set; } // User|Group - - [JsonPropertyName("participant_limit")] - public uint? ParticipantLimit { get; set; } - - [JsonPropertyName("available_slots")] - public uint? AvailableSlots { get; set; } - - [JsonPropertyName("user")] - public UserModel? User { get; set; } - - [JsonPropertyName("group")] - public GroupModel? Group { get; set; } - - [JsonPropertyName("assignment")] - public AssignmentModel? Assignment { get; set; } - - [JsonPropertyName("assignment_overrides")] - public IEnumerable? AssignmentOverrides { get; set; } - - [JsonPropertyName("can_manage_appointment_group")] - public bool? CanManageAppointmentGroup { get; set; } // undocumented - - [JsonPropertyName("participants_per_appointment")] - public uint? ParticipantsPerAppointment { get; set; } - } + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("start_at")] + public DateTime StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime EndAt { get; set; } + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("location_name")] + public string LocationName { get; set; } + + [JsonPropertyName("location_address")] + public string LocationAddress { get; set; } + + [JsonPropertyName("context_code")] + public string ContextCode { get; set; } + + [JsonPropertyName("effective_context_code")] + public string? EffectiveContextCode { get; set; } + + [JsonPropertyName("all_context_codes")] + public string AllContextCodes { get; set; } // comma separated + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("hidden")] + public bool Hidden { get; set; } + + [JsonPropertyName("parent_event_id")] + public string? ParentEventId { get; set; } + + [JsonPropertyName("child_events_count")] + public uint? ChildEventsCount { get; set; } + + [JsonPropertyName("child_events")] + public IEnumerable? ChildEvents { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("all_day_date")] + public DateTime? AllDayDate { get; set; } + + [JsonPropertyName("all_day")] + public bool AllDay { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime UpdatedAt { get; set; } + + [JsonPropertyName("appointment_group_id")] + public ulong AppointmentGroupId { get; set; } + + [JsonPropertyName("appointment_group_url")] + public string AppointmentGroupUrl { get; set; } + + [JsonPropertyName("own_reservation")] + public bool? OwnReservation { get; set; } + + [JsonPropertyName("reserve_url")] + public string? ReserveUrl { get; set; } + + [JsonPropertyName("reserved")] + public bool? Reserved { get; set; } + + [JsonPropertyName("participant_type")] + public string ParticipantType { get; set; } // User|Group + + [JsonPropertyName("participant_limit")] + public uint? ParticipantLimit { get; set; } + + [JsonPropertyName("available_slots")] + public uint? AvailableSlots { get; set; } + + [JsonPropertyName("user")] + public UserModel? User { get; set; } + + [JsonPropertyName("group")] + public GroupModel? Group { get; set; } + + [JsonPropertyName("assignment")] + public AssignmentModel? Assignment { get; set; } + + [JsonPropertyName("assignment_overrides")] + public IEnumerable? AssignmentOverrides { get; set; } + + [JsonPropertyName("can_manage_appointment_group")] + public bool? CanManageAppointmentGroup { get; set; } // undocumented + + [JsonPropertyName("participants_per_appointment")] + public uint? ParticipantsPerAppointment { get; set; } } diff --git a/Management/Models/CanvasModel/ContentShares/ContentExportIdModel.cs b/Management/Models/CanvasModel/ContentShares/ContentExportIdModel.cs index 8604970..406d14b 100644 --- a/Management/Models/CanvasModel/ContentShares/ContentExportIdModel.cs +++ b/Management/Models/CanvasModel/ContentShares/ContentExportIdModel.cs @@ -1,10 +1,9 @@ -namespace Model.ContentShares { - - public struct ContentExportIdModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - } +namespace CanvasModel.ContentShares; +public struct ContentExportIdModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } } diff --git a/Management/Models/CanvasModel/ContentShares/ContentShareModel.cs b/Management/Models/CanvasModel/ContentShares/ContentShareModel.cs index 1818f2e..6aa506f 100644 --- a/Management/Models/CanvasModel/ContentShares/ContentShareModel.cs +++ b/Management/Models/CanvasModel/ContentShares/ContentShareModel.cs @@ -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 { - - public class ContentShareModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("content_type")] - public string ContentType { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("user_id")] - public ulong? UserId { get; set; } +namespace CanvasModel.ContentShares; +public class ContentShareModel +{ - [JsonPropertyName("sender")] - public ShortUserModel? Sender { get; set; } - - [JsonPropertyName("receivers")] - public IEnumerable? Receivers { get; set; } - - [JsonPropertyName("source_course")] - public ShortCourseModel? SourceCourse { get; set; } - - [JsonPropertyName("read_state")] - public string ReadState { get; set; } - - [JsonPropertyName("content_export")] - public ContentExportIdModel? ContentExport { get; set; } - } + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("content_type")] + public string ContentType { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("user_id")] + public ulong? UserId { get; set; } + + [JsonPropertyName("sender")] + public ShortUserModel? Sender { get; set; } + + [JsonPropertyName("receivers")] + public IEnumerable? Receivers { get; set; } + + [JsonPropertyName("source_course")] + public ShortCourseModel? SourceCourse { get; set; } + + [JsonPropertyName("read_state")] + public string ReadState { get; set; } + + [JsonPropertyName("content_export")] + public ContentExportIdModel? ContentExport { get; set; } } diff --git a/Management/Models/CanvasModel/Conversations/ConversationMessageModel.cs b/Management/Models/CanvasModel/Conversations/ConversationMessageModel.cs index 8353b4f..3b2b1de 100644 --- a/Management/Models/CanvasModel/Conversations/ConversationMessageModel.cs +++ b/Management/Models/CanvasModel/Conversations/ConversationMessageModel.cs @@ -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 { - - public class ConversationMessageModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("body")] - public string Body { get; set; } - - [JsonPropertyName("author_id")] - public ulong AuthorId { get; set; } - - [JsonPropertyName("generated")] - public bool Generated { get; set; } - - [JsonPropertyName("media_comment")] - public MediaCommentModel? MediaComment { get; set; } - - [JsonPropertyName("forwarded_messages")] - public IEnumerable ForwardedMessages { get; set; } - - [JsonPropertyName("attachments")] - public IEnumerable Attachments { get; set; } - } +namespace CanvasModel.Conversations; +public class ConversationMessageModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("body")] + public string Body { get; set; } + + [JsonPropertyName("author_id")] + public ulong AuthorId { get; set; } + + [JsonPropertyName("generated")] + public bool Generated { get; set; } + + [JsonPropertyName("media_comment")] + public MediaCommentModel? MediaComment { get; set; } + + [JsonPropertyName("forwarded_messages")] + public IEnumerable ForwardedMessages { get; set; } + + [JsonPropertyName("attachments")] + public IEnumerable Attachments { get; set; } } diff --git a/Management/Models/CanvasModel/Conversations/ConversationModel.cs b/Management/Models/CanvasModel/Conversations/ConversationModel.cs index cc15cc2..df8d0c7 100644 --- a/Management/Models/CanvasModel/Conversations/ConversationModel.cs +++ b/Management/Models/CanvasModel/Conversations/ConversationModel.cs @@ -3,56 +3,55 @@ using System.Collections.Generic; -namespace Model.Conversations { - - public class ConversationModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("subject")] - public string Subject { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("last_message")] - public string LastMessage { get; set; } - - [JsonPropertyName("last_message_at")] - public DateTime? LastMessageAt { get; set; } - - [JsonPropertyName("message_count")] - public uint MessageCount { get; set; } - - [JsonPropertyName("subscribed")] - public bool? Subscribed { get; set; } - - [JsonPropertyName("private")] - public bool? Private { get; set; } - - [JsonPropertyName("starred")] - public bool? Starred { get; set; } - - [JsonPropertyName("properties")] - public IEnumerable? Properties { get; set; } - - [JsonPropertyName("audience")] - public IEnumerable? Audience { get; set; } - - [JsonPropertyName("audience_contexts")] - public Dictionary>>? AudienceContexts { get; set; } - - [JsonPropertyName("avatar_url")] - public string AvatarUrl { get; set; } - - [JsonPropertyName("participants")] - public IEnumerable? Participants { get; set; } - - [JsonPropertyName("visible")] - public bool? Visible { get; set; } - - [JsonPropertyName("context_name")] - public string ContextName { get; set; } - } +namespace CanvasModel.Conversations; +public class ConversationModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("subject")] + public string Subject { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("last_message")] + public string LastMessage { get; set; } + + [JsonPropertyName("last_message_at")] + public DateTime? LastMessageAt { get; set; } + + [JsonPropertyName("message_count")] + public uint MessageCount { get; set; } + + [JsonPropertyName("subscribed")] + public bool? Subscribed { get; set; } + + [JsonPropertyName("private")] + public bool? Private { get; set; } + + [JsonPropertyName("starred")] + public bool? Starred { get; set; } + + [JsonPropertyName("properties")] + public IEnumerable? Properties { get; set; } + + [JsonPropertyName("audience")] + public IEnumerable? Audience { get; set; } + + [JsonPropertyName("audience_contexts")] + public Dictionary>>? AudienceContexts { get; set; } + + [JsonPropertyName("avatar_url")] + public string AvatarUrl { get; set; } + + [JsonPropertyName("participants")] + public IEnumerable? Participants { get; set; } + + [JsonPropertyName("visible")] + public bool? Visible { get; set; } + + [JsonPropertyName("context_name")] + public string ContextName { get; set; } } diff --git a/Management/Models/CanvasModel/Conversations/ConversationParticipantModel.cs b/Management/Models/CanvasModel/Conversations/ConversationParticipantModel.cs index ea71fde..9d34c73 100644 --- a/Management/Models/CanvasModel/Conversations/ConversationParticipantModel.cs +++ b/Management/Models/CanvasModel/Conversations/ConversationParticipantModel.cs @@ -1,20 +1,19 @@ -namespace Model.Conversations { - - public class ConversationParticipantModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("full_name")] - public string FullName { get; set; } - - [JsonPropertyName("avatar_url")] - public string? AvatarUrl { get; set; } - } +namespace CanvasModel.Conversations; +public class ConversationParticipantModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("full_name")] + public string FullName { get; set; } + + [JsonPropertyName("avatar_url")] + public string? AvatarUrl { get; set; } } diff --git a/Management/Models/CanvasModel/Conversations/DetailedConversationModel.cs b/Management/Models/CanvasModel/Conversations/DetailedConversationModel.cs index 0ab7236..d36c3ec 100644 --- a/Management/Models/CanvasModel/Conversations/DetailedConversationModel.cs +++ b/Management/Models/CanvasModel/Conversations/DetailedConversationModel.cs @@ -1,12 +1,11 @@ using System.Collections.Generic; -namespace Model.Conversations { - - public class DetailedConversationModel : ConversationModel { - - [JsonPropertyName("messages")] - public IEnumerable Messages { get; set; } - - } +namespace CanvasModel.Conversations; +public class DetailedConversationModel : ConversationModel +{ + + [JsonPropertyName("messages")] + public IEnumerable Messages { get; set; } + } diff --git a/Management/Models/CanvasModel/Courses/CalendarLinkModel.cs b/Management/Models/CanvasModel/Courses/CalendarLinkModel.cs index 45e99ca..b3b0cc1 100644 --- a/Management/Models/CanvasModel/Courses/CalendarLinkModel.cs +++ b/Management/Models/CanvasModel/Courses/CalendarLinkModel.cs @@ -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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Courses/CourseModel.cs b/Management/Models/CanvasModel/Courses/CourseModel.cs index 6079418..9c84344 100644 --- a/Management/Models/CanvasModel/Courses/CourseModel.cs +++ b/Management/Models/CanvasModel/Courses/CourseModel.cs @@ -2,151 +2,150 @@ using System; using System.Collections.Generic; -using Model.Enrollments; +using CanvasModel.Enrollments; -namespace Model.Courses { - - public class CourseModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("sis_course_id")] - public string SisCourseId { get; set; } - - [JsonPropertyName("uuid")] - public string Uuid { get; set; } - - [JsonPropertyName("integration_id")] - public string IntegrationId { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("course_code")] - public string CourseCode { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("account_id")] - public ulong AccountId { get; set; } - - [JsonPropertyName("root_account_id")] - public ulong RootAccountId { get; set; } - - [JsonPropertyName("enrollment_term_id")] - public ulong EnrollmentTermId { get; set; } - - [JsonPropertyName("grading_standard_id")] - public ulong? GradingStandardId { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("start_at")] - public DateTime? StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime? EndAt { get; set; } - - [JsonPropertyName("locale")] - public string Locale { get; set; } - - [JsonPropertyName("enrollments")] - public IEnumerable? Enrollments { get; set; } - - [JsonPropertyName("total_students")] - public ulong? TotalStudents { get; set; } - - [JsonPropertyName("calendar")] - public CalendarLinkModel Calendar { get; set; } - - [JsonPropertyName("default_view")] - public string DefaultView { get; set; } - - [JsonPropertyName("syllabus_body")] - public string SyllabusBody { get; set; } - - [JsonPropertyName("needs_grading_count")] - public uint? NeedsGradingCount { get; set; } - - [JsonPropertyName("term")] - public TermModel? Term { get; set; } - - [JsonPropertyName("course_progress")] - public CourseProgressModel? CourseProgress { get; set; } - - [JsonPropertyName("apply_assignment_group_weights")] - public bool? ApplyAssignmentGroupWeights { get; set; } - - [JsonPropertyName("permissions")] - public Dictionary Permissions { get; set; } - - [JsonPropertyName("is_public")] - public bool? IsPublic { get; set; } - - [JsonPropertyName("is_public_to_auth_users")] - public bool? IsPublicToAuthUsers { get; set; } - - [JsonPropertyName("public_syllabus")] - public bool? PublicSyllabus { get; set; } - - [JsonPropertyName("public_syllabus_to_auth")] - public bool? PublicSyllabusToAuth { get; set; } - - [JsonPropertyName("public_description")] - public string? PublicDescription { get; set; } - - [JsonPropertyName("storage_quota_mb")] - public ulong StorageQuotaMb { get; set; } - - [JsonPropertyName("storage_quota_used_mb")] - public ulong StorageQuotaUsedMb { get; set; } - - [JsonPropertyName("hide_final_grades")] - public bool? HideFinalGrades { get; set; } - - [JsonPropertyName("license")] - public string License { get; set; } - - [JsonPropertyName("allow_student_assignment_edits")] - public bool? AllowStudentAssignmentEdits { get; set; } - - [JsonPropertyName("allow_wiki_comments")] - public bool? AllowWikiComments { get; set; } - - [JsonPropertyName("allow_student_forum_attachments")] - public bool? AllowStudentForumAttachments { get; set; } - - [JsonPropertyName("open_enrollment")] - public bool? OpenEnrollment { get; set; } - - [JsonPropertyName("self_enrollment")] - public bool? SelfEnrollment { get; set; } - - [JsonPropertyName("restrict_enrollments_to_courses")] - public bool? RestrictEnrollmentsToCourseDates { get; set; } - - [JsonPropertyName("course_format")] - public string CourseFormat { get; set; } - - [JsonPropertyName("access_restricted_by_date")] - public bool? AccessRestrictedByDate { get; set; } - - [JsonPropertyName("time_zone")] - public string TimeZone { get; set; } - - [JsonPropertyName("blueprint")] - public bool? Blueprint { get; set; } - - [JsonPropertyName("blueprint_restrictions")] - public Dictionary? BlueprintRestrictions { get; set; } +namespace CanvasModel.Courses; +public class CourseModel +{ - [JsonPropertyName("blueprint_restrictions_by_object_type")] - public Dictionary>? BlueprintRestrictionsByObjectType { get; set; } - } + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("sis_course_id")] + public string SisCourseId { get; set; } + + [JsonPropertyName("uuid")] + public string Uuid { get; set; } + + [JsonPropertyName("integration_id")] + public string IntegrationId { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("course_code")] + public string CourseCode { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("account_id")] + public ulong AccountId { get; set; } + + [JsonPropertyName("root_account_id")] + public ulong RootAccountId { get; set; } + + [JsonPropertyName("enrollment_term_id")] + public ulong EnrollmentTermId { get; set; } + + [JsonPropertyName("grading_standard_id")] + public ulong? GradingStandardId { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("start_at")] + public DateTime? StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime? EndAt { get; set; } + + [JsonPropertyName("locale")] + public string Locale { get; set; } + + [JsonPropertyName("enrollments")] + public IEnumerable? Enrollments { get; set; } + + [JsonPropertyName("total_students")] + public ulong? TotalStudents { get; set; } + + [JsonPropertyName("calendar")] + public CalendarLinkModel Calendar { get; set; } + + [JsonPropertyName("default_view")] + public string DefaultView { get; set; } + + [JsonPropertyName("syllabus_body")] + public string SyllabusBody { get; set; } + + [JsonPropertyName("needs_grading_count")] + public uint? NeedsGradingCount { get; set; } + + [JsonPropertyName("term")] + public TermModel? Term { get; set; } + + [JsonPropertyName("course_progress")] + public CourseProgressModel? CourseProgress { get; set; } + + [JsonPropertyName("apply_assignment_group_weights")] + public bool? ApplyAssignmentGroupWeights { get; set; } + + [JsonPropertyName("permissions")] + public Dictionary Permissions { get; set; } + + [JsonPropertyName("is_public")] + public bool? IsPublic { get; set; } + + [JsonPropertyName("is_public_to_auth_users")] + public bool? IsPublicToAuthUsers { get; set; } + + [JsonPropertyName("public_syllabus")] + public bool? PublicSyllabus { get; set; } + + [JsonPropertyName("public_syllabus_to_auth")] + public bool? PublicSyllabusToAuth { get; set; } + + [JsonPropertyName("public_description")] + public string? PublicDescription { get; set; } + + [JsonPropertyName("storage_quota_mb")] + public ulong StorageQuotaMb { get; set; } + + [JsonPropertyName("storage_quota_used_mb")] + public ulong StorageQuotaUsedMb { get; set; } + + [JsonPropertyName("hide_final_grades")] + public bool? HideFinalGrades { get; set; } + + [JsonPropertyName("license")] + public string License { get; set; } + + [JsonPropertyName("allow_student_assignment_edits")] + public bool? AllowStudentAssignmentEdits { get; set; } + + [JsonPropertyName("allow_wiki_comments")] + public bool? AllowWikiComments { get; set; } + + [JsonPropertyName("allow_student_forum_attachments")] + public bool? AllowStudentForumAttachments { get; set; } + + [JsonPropertyName("open_enrollment")] + public bool? OpenEnrollment { get; set; } + + [JsonPropertyName("self_enrollment")] + public bool? SelfEnrollment { get; set; } + + [JsonPropertyName("restrict_enrollments_to_courses")] + public bool? RestrictEnrollmentsToCourseDates { get; set; } + + [JsonPropertyName("course_format")] + public string CourseFormat { get; set; } + + [JsonPropertyName("access_restricted_by_date")] + public bool? AccessRestrictedByDate { get; set; } + + [JsonPropertyName("time_zone")] + public string TimeZone { get; set; } + + [JsonPropertyName("blueprint")] + public bool? Blueprint { get; set; } + + [JsonPropertyName("blueprint_restrictions")] + public Dictionary? BlueprintRestrictions { get; set; } + + [JsonPropertyName("blueprint_restrictions_by_object_type")] + public Dictionary>? BlueprintRestrictionsByObjectType { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Courses/CourseProgressModel.cs b/Management/Models/CanvasModel/Courses/CourseProgressModel.cs index 7274512..ec8394c 100644 --- a/Management/Models/CanvasModel/Courses/CourseProgressModel.cs +++ b/Management/Models/CanvasModel/Courses/CourseProgressModel.cs @@ -2,20 +2,19 @@ using System; -namespace Model.Courses { - - public class CourseProgressModel { - - [JsonPropertyName("requirement_count")] - public uint? RequirementCount { get; set; } - - [JsonPropertyName("requirement_completed_count")] - public uint? RequirementCompletedCount { get; set; } - - [JsonPropertyName("next_requirement_url")] - public string? NextRequirementUrl { get; set; } - - [JsonPropertyName("completed_at")] - public DateTime? CompletedAt { get; set; } - } +namespace CanvasModel.Courses; +public class CourseProgressModel +{ + + [JsonPropertyName("requirement_count")] + public uint? RequirementCount { get; set; } + + [JsonPropertyName("requirement_completed_count")] + public uint? RequirementCompletedCount { get; set; } + + [JsonPropertyName("next_requirement_url")] + public string? NextRequirementUrl { get; set; } + + [JsonPropertyName("completed_at")] + public DateTime? CompletedAt { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Courses/CourseSettingsModel.cs b/Management/Models/CanvasModel/Courses/CourseSettingsModel.cs index 864cd8d..dfa93de 100644 --- a/Management/Models/CanvasModel/Courses/CourseSettingsModel.cs +++ b/Management/Models/CanvasModel/Courses/CourseSettingsModel.cs @@ -1,49 +1,48 @@ -namespace Model.Courses { - - public class CourseSettingsModel { - - [JsonPropertyName("allow_final_grade_override")] - public bool AllowFinalGradeOverride { 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_discussion_editing")] - public bool AllowStudentDiscussionEditing { get; set; } - - [JsonPropertyName("grading_standard_enabled")] - public bool GradingStandardEnabled { get; set; } - - [JsonPropertyName("grading_standard_id")] - public ulong? GradingStandardId { get; set; } - - [JsonPropertyName("allow_student_organized_groups")] - public bool AllowStudentOrganizedGroups { get; set; } - - [JsonPropertyName("hide_final_groups")] - public bool HideFinalGrades { get; set; } - - [JsonPropertyName("hide_distributor_graphs")] - public bool HideDistributionGraphs { get; set; } - - [JsonPropertyName("lock_all_announcements")] - public bool LockAllAnnouncements { get; set; } - - [JsonPropertyName("restrict_student_past_view")] - public bool RestrictStudentPastView { get; set; } - - [JsonPropertyName("restrict_student_future_view")] - public bool RestrictStudentFutureView { get; set; } - - [JsonPropertyName("show_announcements_on_home_page")] - public bool ShowAnnouncementsOnHomePage { get; set; } - - [JsonPropertyName("home_page_announcements_limit")] - public long HomePageAnnouncementLimit { get; set; } - } +namespace CanvasModel.Courses; +public class CourseSettingsModel +{ + + [JsonPropertyName("allow_final_grade_override")] + public bool AllowFinalGradeOverride { 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_discussion_editing")] + public bool AllowStudentDiscussionEditing { get; set; } + + [JsonPropertyName("grading_standard_enabled")] + public bool GradingStandardEnabled { get; set; } + + [JsonPropertyName("grading_standard_id")] + public ulong? GradingStandardId { get; set; } + + [JsonPropertyName("allow_student_organized_groups")] + public bool AllowStudentOrganizedGroups { get; set; } + + [JsonPropertyName("hide_final_groups")] + public bool HideFinalGrades { get; set; } + + [JsonPropertyName("hide_distributor_graphs")] + public bool HideDistributionGraphs { get; set; } + + [JsonPropertyName("lock_all_announcements")] + public bool LockAllAnnouncements { get; set; } + + [JsonPropertyName("restrict_student_past_view")] + public bool RestrictStudentPastView { get; set; } + + [JsonPropertyName("restrict_student_future_view")] + public bool RestrictStudentFutureView { get; set; } + + [JsonPropertyName("show_announcements_on_home_page")] + public bool ShowAnnouncementsOnHomePage { get; set; } + + [JsonPropertyName("home_page_announcements_limit")] + public long HomePageAnnouncementLimit { get; set; } } diff --git a/Management/Models/CanvasModel/Courses/ShortCourseModel.cs b/Management/Models/CanvasModel/Courses/ShortCourseModel.cs index 336bf33..3e06ec6 100644 --- a/Management/Models/CanvasModel/Courses/ShortCourseModel.cs +++ b/Management/Models/CanvasModel/Courses/ShortCourseModel.cs @@ -1,13 +1,12 @@ -namespace Model.Courses { - - public class ShortCourseModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - } +namespace CanvasModel.Courses; +public class ShortCourseModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } } diff --git a/Management/Models/CanvasModel/Courses/TermModel.cs b/Management/Models/CanvasModel/Courses/TermModel.cs index d51f338..e39f7ff 100644 --- a/Management/Models/CanvasModel/Courses/TermModel.cs +++ b/Management/Models/CanvasModel/Courses/TermModel.cs @@ -1,20 +1,17 @@ -using System; +namespace CanvasModel.Courses; +public class TermModel +{ -namespace Model.Courses { - - public class TermModel { - - [JsonPropertyName("id")] - public ulong Id { 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("id")] + public ulong Id { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/CustomGradebookColumns/ColumnDatumModel.cs b/Management/Models/CanvasModel/CustomGradebookColumns/ColumnDatumModel.cs index 2412da8..cc62498 100644 --- a/Management/Models/CanvasModel/CustomGradebookColumns/ColumnDatumModel.cs +++ b/Management/Models/CanvasModel/CustomGradebookColumns/ColumnDatumModel.cs @@ -1,13 +1,12 @@ -namespace Model.CustomGradebookColumns { - - public struct ColumnDatumModel { - - [JsonPropertyName("content")] - public string Content { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - } +namespace CanvasModel.CustomGradebookColumns; +public struct ColumnDatumModel +{ + + [JsonPropertyName("content")] + public string Content { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } } diff --git a/Management/Models/CanvasModel/CustomGradebookColumns/CustomColumnModel.cs b/Management/Models/CanvasModel/CustomGradebookColumns/CustomColumnModel.cs index 342f09f..1108aed 100644 --- a/Management/Models/CanvasModel/CustomGradebookColumns/CustomColumnModel.cs +++ b/Management/Models/CanvasModel/CustomGradebookColumns/CustomColumnModel.cs @@ -1,25 +1,24 @@ -namespace Model.CustomGradebookColumns { - - public class CustomColumnModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("teacher_notes")] - public bool? TeacherNotes { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("position")] - public int? Position { get; set; } - - [JsonPropertyName("hidden")] - public bool? Hidden { get; set; } - - [JsonPropertyName("read_only")] - public bool? ReadOnly { get; set; } - } +namespace CanvasModel.CustomGradebookColumns; +public class CustomColumnModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("teacher_notes")] + public bool? TeacherNotes { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("position")] + public int? Position { get; set; } + + [JsonPropertyName("hidden")] + public bool? Hidden { get; set; } + + [JsonPropertyName("read_only")] + public bool? ReadOnly { get; set; } } diff --git a/Management/Models/CanvasModel/Discussions/DiscussionTopicModel.cs b/Management/Models/CanvasModel/Discussions/DiscussionTopicModel.cs index 893675c..249b5a2 100644 --- a/Management/Models/CanvasModel/Discussions/DiscussionTopicModel.cs +++ b/Management/Models/CanvasModel/Discussions/DiscussionTopicModel.cs @@ -1,116 +1,115 @@ using System; using System.Collections.Generic; -using Model.Users; +using CanvasModel.Users; -namespace Model.Discussions { - - public class DiscussionTopicModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("posted_at")] - public DateTime? PostedAt { get; set; } - - [JsonPropertyName("last_reply_at")] - public DateTime? LastReplyAt { get; set; } - - [JsonPropertyName("require_initial_post")] - public bool? RequireInitialPost { get; set; } - - [JsonPropertyName("user_can_see_posts")] - public bool? UserCanSeePosts { get; set; } - - [JsonPropertyName("discussion_subentry_count")] - public uint? DiscussionSubentryCount { get; set; } - - [JsonPropertyName("read_state")] - public string ReadState { get; set; } - - [JsonPropertyName("unread_count")] - public uint? UnreadCount { get; set; } - - [JsonPropertyName("subscribed")] - public bool? Subscribed { get; set; } - - [JsonPropertyName("subscription_hold")] - public string SubscriptionHold { get; set; } - - [JsonPropertyName("assignment_id")] - public int AssignmentId { get; set; } - - [JsonPropertyName("delayed_post_at")] - public DateTime? DelayedPostAt { get; set; } - - [JsonPropertyName("published")] - public bool? Published { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("locked")] - public bool? Locked { get; set; } - - [JsonPropertyName("pinned")] - public bool? Pinned { get; set; } - - [JsonPropertyName("locked_for_user")] - public bool? LockedForUser { get; set; } - - [JsonPropertyName("lock_info")] - public object LockInfo { get; set; } - - [JsonPropertyName("lock_explanation")] - public string LockExplanation { get; set; } - - [JsonPropertyName("user_name")] - public string UserName { get; set; } - - [JsonPropertyName("topic_children")] - public IEnumerable TopicChildren { get; set; } - - [JsonPropertyName("group_topic_children")] - public object GroupTopicChildren { get; set; } - - [JsonPropertyName("root_topic_id")] - public ulong? RootTopicId { get; set; } - - [JsonPropertyName("podcast_url")] - public string PodcastUrl { get; set; } - - [JsonPropertyName("discussion_type")] - public string DiscussionType { get; set; } - - [JsonPropertyName("group_category_id")] - public ulong? GroupCategoryId { get; set; } - - [JsonPropertyName("attachments")] - public IEnumerable Attachments { get; set; } - - [JsonPropertyName("permissions")] - public Dictionary Permissions { get; set; } - - [JsonPropertyName("allow_rating")] - public bool? AllowRating { get; set; } - - [JsonPropertyName("only_graders_can_rate")] - public bool? OnlyGradersCanRate { get; set; } - - [JsonPropertyName("sort_by_rating")] - public bool? SortByRating { get; set; } - - [JsonPropertyName("author")] - public UserDisplayModel Author { get; set; } - } +namespace CanvasModel.Discussions; +public class DiscussionTopicModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("message")] + public string Message { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("posted_at")] + public DateTime? PostedAt { get; set; } + + [JsonPropertyName("last_reply_at")] + public DateTime? LastReplyAt { get; set; } + + [JsonPropertyName("require_initial_post")] + public bool? RequireInitialPost { get; set; } + + [JsonPropertyName("user_can_see_posts")] + public bool? UserCanSeePosts { get; set; } + + [JsonPropertyName("discussion_subentry_count")] + public uint? DiscussionSubentryCount { get; set; } + + [JsonPropertyName("read_state")] + public string ReadState { get; set; } + + [JsonPropertyName("unread_count")] + public uint? UnreadCount { get; set; } + + [JsonPropertyName("subscribed")] + public bool? Subscribed { get; set; } + + [JsonPropertyName("subscription_hold")] + public string SubscriptionHold { get; set; } + + [JsonPropertyName("assignment_id")] + public int AssignmentId { get; set; } + + [JsonPropertyName("delayed_post_at")] + public DateTime? DelayedPostAt { get; set; } + + [JsonPropertyName("published")] + public bool? Published { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("locked")] + public bool? Locked { get; set; } + + [JsonPropertyName("pinned")] + public bool? Pinned { get; set; } + + [JsonPropertyName("locked_for_user")] + public bool? LockedForUser { get; set; } + + [JsonPropertyName("lock_info")] + public object LockInfo { get; set; } + + [JsonPropertyName("lock_explanation")] + public string LockExplanation { get; set; } + + [JsonPropertyName("user_name")] + public string UserName { get; set; } + + [JsonPropertyName("topic_children")] + public IEnumerable TopicChildren { get; set; } + + [JsonPropertyName("group_topic_children")] + public object GroupTopicChildren { get; set; } + + [JsonPropertyName("root_topic_id")] + public ulong? RootTopicId { get; set; } + + [JsonPropertyName("podcast_url")] + public string PodcastUrl { get; set; } + + [JsonPropertyName("discussion_type")] + public string DiscussionType { get; set; } + + [JsonPropertyName("group_category_id")] + public ulong? GroupCategoryId { get; set; } + + [JsonPropertyName("attachments")] + public IEnumerable Attachments { get; set; } + + [JsonPropertyName("permissions")] + public Dictionary Permissions { get; set; } + + [JsonPropertyName("allow_rating")] + public bool? AllowRating { get; set; } + + [JsonPropertyName("only_graders_can_rate")] + public bool? OnlyGradersCanRate { get; set; } + + [JsonPropertyName("sort_by_rating")] + public bool? SortByRating { get; set; } + + [JsonPropertyName("author")] + public UserDisplayModel Author { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Discussions/FileAttachmentModel.cs b/Management/Models/CanvasModel/Discussions/FileAttachmentModel.cs index e481a3a..7db9d9e 100644 --- a/Management/Models/CanvasModel/Discussions/FileAttachmentModel.cs +++ b/Management/Models/CanvasModel/Discussions/FileAttachmentModel.cs @@ -1,22 +1,21 @@ -namespace Model.Discussions { - - public class FileAttachmentModel { - - [JsonPropertyName("content_type")] - public string ContentType { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("filename")] - public string Filename { get; set; } - - [JsonPropertyName("display_name")] - public string DisplayName { get; set; } - - - } +namespace CanvasModel.Discussions; +public class FileAttachmentModel +{ + + [JsonPropertyName("content_type")] + public string ContentType { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("filename")] + public string Filename { get; set; } + + [JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Discussions/TopicEntryModel.cs b/Management/Models/CanvasModel/Discussions/TopicEntryModel.cs index f55eb1c..4da682e 100644 --- a/Management/Models/CanvasModel/Discussions/TopicEntryModel.cs +++ b/Management/Models/CanvasModel/Discussions/TopicEntryModel.cs @@ -4,46 +4,45 @@ using System.Collections.Generic; -namespace Model.Discussions { - - public class TopicEntryModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - - [JsonPropertyName("editor_id")] - public ulong? EditorId { get; set; } - - [JsonPropertyName("user_name")] - public string UserName { get; set; } - - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonPropertyName("read_state")] - public string ReadState { get; set; } - - [JsonPropertyName("forced_read_state")] - public bool ForcedReadState { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("attachment")] - public FileAttachmentModel? Attachment { get; set; } - - [JsonPropertyName("recent_replies")] - public IEnumerable? RecentReplies { get; set; } - - [JsonPropertyName("has_more_replies")] - public bool? HasMoreReplies { get; set; } - - - } +namespace CanvasModel.Discussions; +public class TopicEntryModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } + + [JsonPropertyName("editor_id")] + public ulong? EditorId { get; set; } + + [JsonPropertyName("user_name")] + public string UserName { get; set; } + + [JsonPropertyName("message")] + public string Message { get; set; } + + [JsonPropertyName("read_state")] + public string ReadState { get; set; } + + [JsonPropertyName("forced_read_state")] + public bool ForcedReadState { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("attachment")] + public FileAttachmentModel? Attachment { get; set; } + + [JsonPropertyName("recent_replies")] + public IEnumerable? RecentReplies { get; set; } + + [JsonPropertyName("has_more_replies")] + public bool? HasMoreReplies { get; set; } + + } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Discussions/TopicReplyModel.cs b/Management/Models/CanvasModel/Discussions/TopicReplyModel.cs index 20d5006..08fa810 100644 --- a/Management/Models/CanvasModel/Discussions/TopicReplyModel.cs +++ b/Management/Models/CanvasModel/Discussions/TopicReplyModel.cs @@ -2,34 +2,33 @@ using System; -namespace Model.Discussions { - - public class TopicReplyModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - - [JsonPropertyName("editor_id")] - public ulong? EditorId { get; set; } - - [JsonPropertyName("user_name")] - public string UserName { get; set; } - - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonPropertyName("read_state")] - public string ReadState { get; set; } - - [JsonPropertyName("forced_read_state")] - public bool? ForcedReadState { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - - } +namespace CanvasModel.Discussions; +public class TopicReplyModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } + + [JsonPropertyName("editor_id")] + public ulong? EditorId { get; set; } + + [JsonPropertyName("user_name")] + public string UserName { get; set; } + + [JsonPropertyName("message")] + public string Message { get; set; } + + [JsonPropertyName("read_state")] + public string ReadState { get; set; } + + [JsonPropertyName("forced_read_state")] + public bool? ForcedReadState { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + } \ No newline at end of file diff --git a/Management/Models/CanvasModel/EnrollmentTerms/EnrollmentTermModel.cs b/Management/Models/CanvasModel/EnrollmentTerms/EnrollmentTermModel.cs index 0847309..0a7e08d 100644 --- a/Management/Models/CanvasModel/EnrollmentTerms/EnrollmentTermModel.cs +++ b/Management/Models/CanvasModel/EnrollmentTerms/EnrollmentTermModel.cs @@ -2,41 +2,42 @@ using System; using System.Collections.Generic; -namespace Model.EnrollmentTerms { - public class EnrollmentTermModel { - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("sis_term_id")] - public string SisTermId { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { 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("grading_period_group_id")] - public ulong? GradingPeriodGroupId { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("overrides")] - public Dictionary Overrides { get; set; } - } +namespace CanvasModel.EnrollmentTerms; +public class EnrollmentTermModel +{ + [JsonPropertyName("id")] + public ulong Id { get; set; } - public struct EnrollmentTermDateOverrideModel { - [JsonPropertyName("start_at")] - public DateTime? StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime? EndAt { get; set; } - } + [JsonPropertyName("sis_term_id")] + public string SisTermId { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { 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("grading_period_group_id")] + public ulong? GradingPeriodGroupId { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("overrides")] + public Dictionary Overrides { get; set; } +} + +public struct EnrollmentTermDateOverrideModel +{ + [JsonPropertyName("start_at")] + public DateTime? StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime? EndAt { get; set; } } diff --git a/Management/Models/CanvasModel/EnrollmentTerms/RedundantEnrollmentTermsResponse.cs b/Management/Models/CanvasModel/EnrollmentTerms/RedundantEnrollmentTermsResponse.cs index 416bbd0..9261307 100644 --- a/Management/Models/CanvasModel/EnrollmentTerms/RedundantEnrollmentTermsResponse.cs +++ b/Management/Models/CanvasModel/EnrollmentTerms/RedundantEnrollmentTermsResponse.cs @@ -1,9 +1,9 @@ using System.Collections.Generic; -namespace Model.EnrollmentTerms { - public struct RedundantEnrollmentTermsResponse { - [JsonPropertyName("enrollment_terms")] - public IEnumerable EnrollmentTerms { get; set; } - } +namespace CanvasModel.EnrollmentTerms; +public struct RedundantEnrollmentTermsResponse +{ + [JsonPropertyName("enrollment_terms")] + public IEnumerable EnrollmentTerms { get; set; } } diff --git a/Management/Models/CanvasModel/Enrollments/EnrollmentModel.cs b/Management/Models/CanvasModel/Enrollments/EnrollmentModel.cs index 0bf21ed..0767207 100644 --- a/Management/Models/CanvasModel/Enrollments/EnrollmentModel.cs +++ b/Management/Models/CanvasModel/Enrollments/EnrollmentModel.cs @@ -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 { - - public class EnrollmentModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("course_id")] - public ulong CourseId { get; set; } - - [JsonPropertyName("sis_course_id")] - public string? SisCourseId { get; set; } - - [JsonPropertyName("course_integration_id")] - public string? CourseIntegrationId { get; set; } - - [JsonPropertyName("course_section_id")] - public ulong? CourseSectionId { get; set; } - - [JsonPropertyName("section_integration_id")] - public string? SectionIntegrationId { get; set; } - - [JsonPropertyName("sis_account_id")] - public string? SisAccountId { get; set; } - - [JsonPropertyName("sis_section_id")] - public string? SisSectionId { get; set; } - - [JsonPropertyName("sis_user_id")] - public string? SisUserId { get; set; } - - [JsonPropertyName("enrollment_state")] - public string EnrollmentState { get; set; } - - [JsonPropertyName("limit_privileges_to_course_section")] - public bool? LimitPrivilegesToCourseSection { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { get; set; } - - [JsonPropertyName("root_account_id")] - public ulong? RootAccountId { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - - [JsonPropertyName("associated_user_id")] - public ulong? AssociatedUserId { get; set; } - - [JsonPropertyName("role")] - public string Role { get; set; } - - [JsonPropertyName("role_id")] - public ulong RoleId { get; set; } - - [JsonPropertyName("created_at")] - public DateTime? CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("start_at")] - public DateTime? StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime? EndAt { get; set; } - - [JsonPropertyName("last_activity_at")] - public DateTime? LastActivityAt { get; set; } - - [JsonPropertyName("last_attended_at")] - public DateTime? LastAttendedAt { get; set; } - - [JsonPropertyName("total_activity_time")] - public ulong? TotalActivityTime { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("grades")] - public GradeModel Grades { get; set; } - - [JsonPropertyName("user")] - public UserDisplayModel User { get; set; } - - [JsonPropertyName("override_grade")] - public string OverrideGrade { get; set; } - - [JsonPropertyName("override_score")] - public decimal? OverrideScore { get; set; } - - [JsonPropertyName("unposted_current_grade")] - public string? UnpostedCurrentGrade { get; set; } - - [JsonPropertyName("unposted_final_grade")] - public string? UnpostedFinalGrade { get; set; } - - [JsonPropertyName("unposted_current_score")] - public string? UnpostedCurrentScore { get; set; } - - [JsonPropertyName("unposted_final_score")] - public string? UnpostedFinalScore { get; set; } - - [JsonPropertyName("has_grading_periods")] - public bool? HasGradingPeriods { get; set; } + [JsonPropertyName("course_id")] + public ulong CourseId { get; set; } - [JsonPropertyName("totals_for_all_grading_periods_option")] - public bool? TotalsForAllGradingPeriodsOption { get; set; } - - [JsonPropertyName("current_grading_period_title")] - public string? CurrentGradingPeriodTitle { get; set; } - - [JsonPropertyName("current_grading_period_id")] - public ulong? CurrentGradingPeriodId { get; set; } - - [JsonPropertyName("current_period_override_grade")] - public string? CurrentPeriodOverrideGrade { 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("sis_course_id")] + public string? SisCourseId { get; set; } + + [JsonPropertyName("course_integration_id")] + public string? CourseIntegrationId { get; set; } + + [JsonPropertyName("course_section_id")] + public ulong? CourseSectionId { get; set; } + + [JsonPropertyName("section_integration_id")] + public string? SectionIntegrationId { get; set; } + + [JsonPropertyName("sis_account_id")] + public string? SisAccountId { get; set; } + + [JsonPropertyName("sis_section_id")] + public string? SisSectionId { get; set; } + + [JsonPropertyName("sis_user_id")] + public string? SisUserId { get; set; } + + [JsonPropertyName("enrollment_state")] + public string EnrollmentState { get; set; } + + [JsonPropertyName("limit_privileges_to_course_section")] + public bool? LimitPrivilegesToCourseSection { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { get; set; } + + [JsonPropertyName("root_account_id")] + public ulong? RootAccountId { get; set; } + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } + + [JsonPropertyName("associated_user_id")] + public ulong? AssociatedUserId { get; set; } + + [JsonPropertyName("role")] + public string Role { get; set; } + + [JsonPropertyName("role_id")] + public ulong RoleId { get; set; } + + [JsonPropertyName("created_at")] + public DateTime? CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("start_at")] + public DateTime? StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime? EndAt { get; set; } + + [JsonPropertyName("last_activity_at")] + public DateTime? LastActivityAt { get; set; } + + [JsonPropertyName("last_attended_at")] + public DateTime? LastAttendedAt { get; set; } + + [JsonPropertyName("total_activity_time")] + public ulong? TotalActivityTime { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("grades")] + public GradeModel Grades { get; set; } + + [JsonPropertyName("user")] + public UserDisplayModel User { get; set; } + + [JsonPropertyName("override_grade")] + public string OverrideGrade { get; set; } + + [JsonPropertyName("override_score")] + public decimal? OverrideScore { get; set; } + + [JsonPropertyName("unposted_current_grade")] + public string? UnpostedCurrentGrade { get; set; } + + [JsonPropertyName("unposted_final_grade")] + public string? UnpostedFinalGrade { get; set; } + + [JsonPropertyName("unposted_current_score")] + public string? UnpostedCurrentScore { get; set; } + + [JsonPropertyName("unposted_final_score")] + public string? UnpostedFinalScore { get; set; } + + [JsonPropertyName("has_grading_periods")] + public bool? HasGradingPeriods { get; set; } + + [JsonPropertyName("totals_for_all_grading_periods_option")] + public bool? TotalsForAllGradingPeriodsOption { get; set; } + + [JsonPropertyName("current_grading_period_title")] + public string? CurrentGradingPeriodTitle { get; set; } + + [JsonPropertyName("current_grading_period_id")] + public ulong? CurrentGradingPeriodId { get; set; } + + [JsonPropertyName("current_period_override_grade")] + public string? CurrentPeriodOverrideGrade { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Enrollments/GradeModel.cs b/Management/Models/CanvasModel/Enrollments/GradeModel.cs index bcb1ebd..d73a3aa 100644 --- a/Management/Models/CanvasModel/Enrollments/GradeModel.cs +++ b/Management/Models/CanvasModel/Enrollments/GradeModel.cs @@ -1,35 +1,34 @@ -namespace Model.Enrollments { - - public class GradeModel { - - [JsonPropertyName("html_url")] - public string? HtmlUrl { get; set; } - - [JsonPropertyName("current_grade")] - public string? CurrentGrade { get; set; } - - [JsonPropertyName("final_grade")] - public string? FinalGrade { get; set; } - - [JsonPropertyName("current_score")] - public string? CurrentScore { get; set; } - - [JsonPropertyName("final_score")] - public string? FinalScore { get; set; } - - [JsonPropertyName("unposted_current_grade")] - public string? UnpostedCurrentGrade { get; set; } - - [JsonPropertyName("unposted_final_grade")] - public string? UnpostedFinalGrade { get; set; } - - [JsonPropertyName("unposted_current_score")] - public string? UnpostedCurrentScore { get; set; } - - [JsonPropertyName("unposted_final_score")] - public string? UnpostedFinalScore { get; set; } - } +namespace CanvasModel.Enrollments; +public class GradeModel +{ + + [JsonPropertyName("html_url")] + public string? HtmlUrl { get; set; } + + [JsonPropertyName("current_grade")] + public string? CurrentGrade { get; set; } + + [JsonPropertyName("final_grade")] + public string? FinalGrade { get; set; } + + [JsonPropertyName("current_score")] + public string? CurrentScore { get; set; } + + [JsonPropertyName("final_score")] + public string? FinalScore { get; set; } + + [JsonPropertyName("unposted_current_grade")] + public string? UnpostedCurrentGrade { get; set; } + + [JsonPropertyName("unposted_final_grade")] + public string? UnpostedFinalGrade { get; set; } + + [JsonPropertyName("unposted_current_score")] + public string? UnpostedCurrentScore { get; set; } + + [JsonPropertyName("unposted_final_score")] + public string? UnpostedFinalScore { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/ExternalTools/AccountNavigationModel.cs b/Management/Models/CanvasModel/ExternalTools/AccountNavigationModel.cs index a76c9e1..f9b310e 100644 --- a/Management/Models/CanvasModel/ExternalTools/AccountNavigationModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/AccountNavigationModel.cs @@ -1,25 +1,24 @@ -namespace Model.ExternalTools { - - public class AccountNavigationModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("selection_width")] - public uint? SelectionWidth { get; set; } - - [JsonPropertyName("selection_height")] - public uint? SelectionHeight { get; set; } - - [JsonPropertyName("display_type")] - public string DisplayType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class AccountNavigationModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("selection_width")] + public uint? SelectionWidth { get; set; } + + [JsonPropertyName("selection_height")] + public uint? SelectionHeight { get; set; } + + [JsonPropertyName("display_type")] + public string DisplayType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/CourseHomeSubNavigationModel.cs b/Management/Models/CanvasModel/ExternalTools/CourseHomeSubNavigationModel.cs index bc070d3..3102597 100644 --- a/Management/Models/CanvasModel/ExternalTools/CourseHomeSubNavigationModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/CourseHomeSubNavigationModel.cs @@ -1,19 +1,18 @@ -namespace Model.ExternalTools { - - public class CourseHomeSubNavigationModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("icon_url")] - public string IconUrl { get; set; } - } +namespace CanvasModel.ExternalTools; +public class CourseHomeSubNavigationModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("icon_url")] + public string IconUrl { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/CourseNavigationModel.cs b/Management/Models/CanvasModel/ExternalTools/CourseNavigationModel.cs index a720f1d..21866e2 100644 --- a/Management/Models/CanvasModel/ExternalTools/CourseNavigationModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/CourseNavigationModel.cs @@ -1,25 +1,24 @@ -namespace Model.ExternalTools { - - public class CourseNavigationModel { - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("visible")] - public string Visibility { get; set; } - - [JsonPropertyName("window_target")] - public string WindowTarget { get; set; } - - [JsonPropertyName("default")] - public bool? Default { get; set; } - - [JsonPropertyName("display_type")] - public string DisplayType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class CourseNavigationModel +{ + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("visible")] + public string Visibility { get; set; } + + [JsonPropertyName("window_target")] + public string WindowTarget { get; set; } + + [JsonPropertyName("default")] + public bool? Default { get; set; } + + [JsonPropertyName("display_type")] + public string DisplayType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/EditorButtonModel.cs b/Management/Models/CanvasModel/ExternalTools/EditorButtonModel.cs index e9d3157..cea9083 100644 --- a/Management/Models/CanvasModel/ExternalTools/EditorButtonModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/EditorButtonModel.cs @@ -1,25 +1,24 @@ -namespace Model.ExternalTools { - - public class EditorButtonModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("icon_url")] - public string IconUrl { get; set; } - - [JsonPropertyName("selection_width")] - public uint? SelectionWidth { get; set; } - - [JsonPropertyName("selection_height")] - public uint? SelectionHeight { get; set; } - - [JsonPropertyName("message_type")] - public string MessageType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class EditorButtonModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("icon_url")] + public string IconUrl { get; set; } + + [JsonPropertyName("selection_width")] + public uint? SelectionWidth { get; set; } + + [JsonPropertyName("selection_height")] + public uint? SelectionHeight { get; set; } + + [JsonPropertyName("message_type")] + public string MessageType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/ExternalToolModel.cs b/Management/Models/CanvasModel/ExternalTools/ExternalToolModel.cs index ed7c14a..5926166 100644 --- a/Management/Models/CanvasModel/ExternalTools/ExternalToolModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/ExternalToolModel.cs @@ -2,74 +2,73 @@ using System; using System.Collections.Generic; -namespace Model.ExternalTools { - - public class ExternalToolModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("domain")] - public string Domain { get; set; } - - [JsonPropertyName("consumer_key")] - public string ConsumerKey { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("created_at")] - public DateTime? CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("privacy_level")] - public string PrivacyLevel { get; set; } - - [JsonPropertyName("custom_fields")] - public Dictionary CustomFields { get; set; } - - [JsonPropertyName("account_navigation")] - public AccountNavigationModel AccountNavigation { get; set; } - - [JsonPropertyName("course_home_sub_navigation")] - public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; } - - [JsonPropertyName("course_navigation")] - public CourseNavigationModel CourseNavigation { get; set; } - - [JsonPropertyName("editor_button")] - public EditorButtonModel EditorButton { get; set; } - - [JsonPropertyName("homework_submission")] - public HomeworkSubmissionModel HomeworkSubmission { get; set; } - - [JsonPropertyName("migration_selection")] - public MigrationSelectionModel MigrationSelection { get; set; } - - [JsonPropertyName("resource_selection")] - public ResourceSelectionModel ResourceSelection { get; set; } - - [JsonPropertyName("tool_configuration")] - public ToolConfigurationModel ToolConfiguration { get; set; } - - [JsonPropertyName("user_navigation")] - public UserNavigationModel UserNavigation { get; set; } - - [JsonPropertyName("selection_width")] - public uint? SelectionWidth { get; set; } - - [JsonPropertyName("selection_height")] - public uint? SelectionHeight { get; set; } - - [JsonPropertyName("icon_url")] - public string IconUrl { get; set; } - - [JsonPropertyName("not_selectable")] - public bool? NotSelectable { get; set; } - } +namespace CanvasModel.ExternalTools; +public class ExternalToolModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("domain")] + public string Domain { get; set; } + + [JsonPropertyName("consumer_key")] + public string ConsumerKey { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("created_at")] + public DateTime? CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("privacy_level")] + public string PrivacyLevel { get; set; } + + [JsonPropertyName("custom_fields")] + public Dictionary CustomFields { get; set; } + + [JsonPropertyName("account_navigation")] + public AccountNavigationModel AccountNavigation { get; set; } + + [JsonPropertyName("course_home_sub_navigation")] + public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; } + + [JsonPropertyName("course_navigation")] + public CourseNavigationModel CourseNavigation { get; set; } + + [JsonPropertyName("editor_button")] + public EditorButtonModel EditorButton { get; set; } + + [JsonPropertyName("homework_submission")] + public HomeworkSubmissionModel HomeworkSubmission { get; set; } + + [JsonPropertyName("migration_selection")] + public MigrationSelectionModel MigrationSelection { get; set; } + + [JsonPropertyName("resource_selection")] + public ResourceSelectionModel ResourceSelection { get; set; } + + [JsonPropertyName("tool_configuration")] + public ToolConfigurationModel ToolConfiguration { get; set; } + + [JsonPropertyName("user_navigation")] + public UserNavigationModel UserNavigation { get; set; } + + [JsonPropertyName("selection_width")] + public uint? SelectionWidth { get; set; } + + [JsonPropertyName("selection_height")] + public uint? SelectionHeight { get; set; } + + [JsonPropertyName("icon_url")] + public string IconUrl { get; set; } + + [JsonPropertyName("not_selectable")] + public bool? NotSelectable { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/HomeworkSubmissionModel.cs b/Management/Models/CanvasModel/ExternalTools/HomeworkSubmissionModel.cs index ba0b163..b92cf01 100644 --- a/Management/Models/CanvasModel/ExternalTools/HomeworkSubmissionModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/HomeworkSubmissionModel.cs @@ -1,19 +1,18 @@ -namespace Model.ExternalTools { - - public class HomeworkSubmissionModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("message_type")] - public string MessageType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class HomeworkSubmissionModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("message_type")] + public string MessageType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/LinkSelectionModel.cs b/Management/Models/CanvasModel/ExternalTools/LinkSelectionModel.cs index d50d9d1..58ebcd0 100644 --- a/Management/Models/CanvasModel/ExternalTools/LinkSelectionModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/LinkSelectionModel.cs @@ -1,19 +1,18 @@ -namespace Model.ExternalTools { - - public class LinkSelectionModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("message_type")] - public string MessageType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class LinkSelectionModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("message_type")] + public string MessageType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/MigrationSelectionModel.cs b/Management/Models/CanvasModel/ExternalTools/MigrationSelectionModel.cs index 8b34cbf..b26b2f3 100644 --- a/Management/Models/CanvasModel/ExternalTools/MigrationSelectionModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/MigrationSelectionModel.cs @@ -1,16 +1,15 @@ -namespace Model.ExternalTools { - - public class MigrationSelectionModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("message_type")] - public string MessageType { get; set; } - } +namespace CanvasModel.ExternalTools; +public class MigrationSelectionModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("message_type")] + public string MessageType { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/ResourceSelectionModel.cs b/Management/Models/CanvasModel/ExternalTools/ResourceSelectionModel.cs index 490273f..5b20d2d 100644 --- a/Management/Models/CanvasModel/ExternalTools/ResourceSelectionModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/ResourceSelectionModel.cs @@ -1,22 +1,21 @@ -namespace Model.ExternalTools { - - public class ResourceSelectionModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("icon_url")] - public string IconUrl { get; set; } - - [JsonPropertyName("selection_width")] - public uint? SelectionWidth { get; set; } - - [JsonPropertyName("selection_height")] - public uint? SelectionHeight { get; set; } - } +namespace CanvasModel.ExternalTools; +public class ResourceSelectionModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("icon_url")] + public string IconUrl { get; set; } + + [JsonPropertyName("selection_width")] + public uint? SelectionWidth { get; set; } + + [JsonPropertyName("selection_height")] + public uint? SelectionHeight { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/ToolConfigurationModel.cs b/Management/Models/CanvasModel/ExternalTools/ToolConfigurationModel.cs index 79b41fa..7a892cd 100644 --- a/Management/Models/CanvasModel/ExternalTools/ToolConfigurationModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/ToolConfigurationModel.cs @@ -1,19 +1,18 @@ -namespace Model.ExternalTools { - - public class ToolConfigurationModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("message_type")] - public string MessageType { get; set; } - - [JsonPropertyName("prefer_sis_email")] - public bool? PreferSisEmail { get; set; } - } +namespace CanvasModel.ExternalTools; +public class ToolConfigurationModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("message_type")] + public string MessageType { get; set; } + + [JsonPropertyName("prefer_sis_email")] + public bool? PreferSisEmail { get; set; } } diff --git a/Management/Models/CanvasModel/ExternalTools/UserNavigationModel.cs b/Management/Models/CanvasModel/ExternalTools/UserNavigationModel.cs index 86ca404..3ba1a43 100644 --- a/Management/Models/CanvasModel/ExternalTools/UserNavigationModel.cs +++ b/Management/Models/CanvasModel/ExternalTools/UserNavigationModel.cs @@ -1,19 +1,18 @@ -namespace Model.ExternalTools { - - public class UserNavigationModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("enabled")] - public bool? Enabled { get; set; } - - [JsonPropertyName("text")] - public string Text { get; set; } - - [JsonPropertyName("visibility")] - public string Visibility { get; set; } - } +namespace CanvasModel.ExternalTools; +public class UserNavigationModel +{ + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + [JsonPropertyName("text")] + public string Text { get; set; } + + [JsonPropertyName("visibility")] + public string Visibility { get; set; } } diff --git a/Management/Models/CanvasModel/Files/CanvasFileModel.cs b/Management/Models/CanvasModel/Files/CanvasFileModel.cs index 60d5894..ea91902 100644 --- a/Management/Models/CanvasModel/Files/CanvasFileModel.cs +++ b/Management/Models/CanvasModel/Files/CanvasFileModel.cs @@ -1,77 +1,77 @@ using System; -namespace Model.Files { - public class CanvasFileModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("uuid")] - public string Uuid { get; set; } - - [JsonPropertyName("folder_id")] - public ulong FolderId { get; set; } - - [JsonPropertyName("display_name")] - public string DisplayName { get; set; } - - [JsonPropertyName("filename")] - public string Filename { get; set; } - - [JsonPropertyName("content_type")] - public string ContentType { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("size")] - public ulong Size { get; set; } - - [JsonPropertyName("created_at")] - public DateTime? CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("locked")] - public bool Locked { get; set; } - - [JsonPropertyName("hidden")] - public bool Hidden { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("hidden_for_user")] - public bool HiddenForUser { get; set; } - - [JsonPropertyName("thumbnail_url")] - public string ThumbnailUrl { get; set; } - - [JsonPropertyName("modified_at")] - public DateTime? ModifiedAt { get; set; } - - [JsonPropertyName("mime_class")] - public string MimeClass { get; set; } - - [JsonPropertyName("media_entry_id")] - public string MediaEntryId { 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_explanation")] - public string LockExplanation { get; set; } - - [JsonPropertyName("preview_url")] - public string PreviewUrl { get; set; } - } +namespace CanvasModel.Files; +public class CanvasFileModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("uuid")] + public string Uuid { get; set; } + + [JsonPropertyName("folder_id")] + public ulong FolderId { get; set; } + + [JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + [JsonPropertyName("filename")] + public string Filename { get; set; } + + [JsonPropertyName("content_type")] + public string ContentType { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("size")] + public ulong Size { get; set; } + + [JsonPropertyName("created_at")] + public DateTime? CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("locked")] + public bool Locked { get; set; } + + [JsonPropertyName("hidden")] + public bool Hidden { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("hidden_for_user")] + public bool HiddenForUser { get; set; } + + [JsonPropertyName("thumbnail_url")] + public string ThumbnailUrl { get; set; } + + [JsonPropertyName("modified_at")] + public DateTime? ModifiedAt { get; set; } + + [JsonPropertyName("mime_class")] + public string MimeClass { get; set; } + + [JsonPropertyName("media_entry_id")] + public string MediaEntryId { 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_explanation")] + public string LockExplanation { get; set; } + + [JsonPropertyName("preview_url")] + public string PreviewUrl { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Files/FolderModel.cs b/Management/Models/CanvasModel/Files/FolderModel.cs index 1f8db15..dc28d9e 100644 --- a/Management/Models/CanvasModel/Files/FolderModel.cs +++ b/Management/Models/CanvasModel/Files/FolderModel.cs @@ -1,67 +1,67 @@ using System; -namespace Model.Files { - public class FolderModel { - - [JsonPropertyName("context_type")] - public string ContextType { get; set; } - - [JsonPropertyName("context_id")] - public ulong ContextId { get; set; } - - [JsonPropertyName("files_count")] - public uint FilesCount { get; set; } - - [JsonPropertyName("position")] - public int? Position { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime UpdatedAt { get; set; } - - [JsonPropertyName("folders_url")] - public string FoldersUrl { get; set; } - - [JsonPropertyName("files_url")] - public string FilesUrl { get; set; } - - [JsonPropertyName("full_name")] - public string FullName { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("folders_count")] - public uint FoldersCount { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("parents_folder_id")] - public ulong? ParentFolderId { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("hidden")] - public bool? Hidden { get; set; } - - [JsonPropertyName("hidden_for_user")] - public bool? HiddenForUser { get; set; } - - [JsonPropertyName("locker")] - public bool? Locked { get; set; } - - [JsonPropertyName("locked_for_user")] - public bool? LockedForUser { get; set; } - - [JsonPropertyName("for_submissions")] - public bool? ForSubmissions { get; set; } - } +namespace CanvasModel.Files; +public class FolderModel +{ + + [JsonPropertyName("context_type")] + public string ContextType { get; set; } + + [JsonPropertyName("context_id")] + public ulong ContextId { get; set; } + + [JsonPropertyName("files_count")] + public uint FilesCount { get; set; } + + [JsonPropertyName("position")] + public int? Position { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime UpdatedAt { get; set; } + + [JsonPropertyName("folders_url")] + public string FoldersUrl { get; set; } + + [JsonPropertyName("files_url")] + public string FilesUrl { get; set; } + + [JsonPropertyName("full_name")] + public string FullName { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("folders_count")] + public uint FoldersCount { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("parents_folder_id")] + public ulong? ParentFolderId { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("hidden")] + public bool? Hidden { get; set; } + + [JsonPropertyName("hidden_for_user")] + public bool? HiddenForUser { get; set; } + + [JsonPropertyName("locker")] + public bool? Locked { get; set; } + + [JsonPropertyName("locked_for_user")] + public bool? LockedForUser { get; set; } + + [JsonPropertyName("for_submissions")] + public bool? ForSubmissions { get; set; } } diff --git a/Management/Models/CanvasModel/Files/LicenseModel.cs b/Management/Models/CanvasModel/Files/LicenseModel.cs index 375f7c4..bdd5b7e 100644 --- a/Management/Models/CanvasModel/Files/LicenseModel.cs +++ b/Management/Models/CanvasModel/Files/LicenseModel.cs @@ -1,15 +1,15 @@ -namespace Model.Files { - public class LicenseModel { - - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - } +namespace CanvasModel.Files; +public class LicenseModel +{ + + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } } diff --git a/Management/Models/CanvasModel/Files/UsageRightsModel.cs b/Management/Models/CanvasModel/Files/UsageRightsModel.cs index 4b15d93..70e3f2d 100644 --- a/Management/Models/CanvasModel/Files/UsageRightsModel.cs +++ b/Management/Models/CanvasModel/Files/UsageRightsModel.cs @@ -1,25 +1,25 @@ using System.Collections.Generic; -namespace Model.Files { - public class UsageRightsModel { - - [JsonPropertyName("legal_copyright")] - public string LegalCopyright { get; set; } - - [JsonPropertyName("use_justification")] - public string UsageJustification { get; set; } - - [JsonPropertyName("license")] - public string License { get; set; } - - [JsonPropertyName("license_name")] - public string LicenseName { get; set; } - - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonPropertyName("file_ids")] - public IEnumerable FileIds { get; set; } - } +namespace CanvasModel.Files; +public class UsageRightsModel +{ + + [JsonPropertyName("legal_copyright")] + public string LegalCopyright { get; set; } + + [JsonPropertyName("use_justification")] + public string UsageJustification { get; set; } + + [JsonPropertyName("license")] + public string License { get; set; } + + [JsonPropertyName("license_name")] + public string LicenseName { get; set; } + + [JsonPropertyName("message")] + public string Message { get; set; } + + [JsonPropertyName("file_ids")] + public IEnumerable FileIds { get; set; } } diff --git a/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventLinksModel.cs b/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventLinksModel.cs index 8db909c..09edad5 100644 --- a/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventLinksModel.cs +++ b/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventLinksModel.cs @@ -1,23 +1,20 @@ +namespace CanvasModel.GradeChangelog; +public class GradeChangeEventLinksModel +{ + [JsonPropertyName("assignment")] + public ulong Assignment { get; set; } -namespace Model.GradeChangelog { - - public class GradeChangeEventLinksModel { - - [JsonPropertyName("assignment")] - public ulong Assignment { 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("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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventModel.cs b/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventModel.cs index 7f8687d..5aad13c 100644 --- a/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventModel.cs +++ b/Management/Models/CanvasModel/GradeChangelog/GradeChangeEventModel.cs @@ -1,42 +1,38 @@ -using System; +namespace CanvasModel.GradeChangelog; +public class GradeChangeEventModel +{ + [JsonPropertyName("id")] + public string Id { get; set; } -namespace Model.GradeChangelog { - - public class GradeChangeEventModel { - - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("event_type")] - public string EventType { get; set; } - - [JsonPropertyName("excused_after")] - public bool ExcusedAfter { get; set; } - - [JsonPropertyName("excused_before")] - public bool ExcusedBefore { get; set; } - - [JsonPropertyName("grade_after")] - public string GradeAfter { get; set; } - - [JsonPropertyName("grade_before")] - public string GradeBefore { 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("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("event_type")] + public string EventType { get; set; } + + [JsonPropertyName("excused_after")] + public bool ExcusedAfter { get; set; } + + [JsonPropertyName("excused_before")] + public bool ExcusedBefore { get; set; } + + [JsonPropertyName("grade_after")] + public string GradeAfter { get; set; } + + [JsonPropertyName("grade_before")] + public string GradeBefore { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/GradeChangelog/RedundantGradeChangeEventResponse.cs b/Management/Models/CanvasModel/GradeChangelog/RedundantGradeChangeEventResponse.cs index 0b53c7e..c560af3 100644 --- a/Management/Models/CanvasModel/GradeChangelog/RedundantGradeChangeEventResponse.cs +++ b/Management/Models/CanvasModel/GradeChangelog/RedundantGradeChangeEventResponse.cs @@ -1,11 +1,8 @@ -using System.Collections.Generic; +namespace CanvasModel.GradeChangelog; +public class RedundantGradeChangeEventResponse +{ -namespace Model.GradeChangelog { - - public class RedundantGradeChangeEventResponse { - - [JsonPropertyName("events")] - public IEnumerable Events { get; set; } - } + [JsonPropertyName("events")] + public IEnumerable Events { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Gradebook/DayModel.cs b/Management/Models/CanvasModel/Gradebook/DayModel.cs index 52a7b24..c690c78 100644 --- a/Management/Models/CanvasModel/Gradebook/DayModel.cs +++ b/Management/Models/CanvasModel/Gradebook/DayModel.cs @@ -1,15 +1,11 @@ -using System; -using System.Collections.Generic; +namespace CanvasModel.Gradebook; +public class DayModel +{ -namespace Model.Gradebook { - - public class DayModel { - - [JsonPropertyName("date")] - public DateTime Date { get; set; } + [JsonPropertyName("date")] + public DateTime Date { get; set; } - [JsonPropertyName("graders")] - public IEnumerable Graders { get; set; } - } + [JsonPropertyName("graders")] + public IEnumerable Graders { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Gradebook/GraderModel.cs b/Management/Models/CanvasModel/Gradebook/GraderModel.cs index 465e70b..f63085d 100644 --- a/Management/Models/CanvasModel/Gradebook/GraderModel.cs +++ b/Management/Models/CanvasModel/Gradebook/GraderModel.cs @@ -1,19 +1,17 @@ -using System.Collections.Generic; -using Model.Assignments; +using CanvasModel.Assignments; -namespace Model.Gradebook { - - public class GraderModel { - - [JsonPropertyName("id")] - public ulong Id { 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 Assignments { get; set; } - } +namespace CanvasModel.Gradebook; +public class GraderModel +{ + + [JsonPropertyName("id")] + public ulong Id { 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 Assignments { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Gradebook/SubmissionHistoryModel.cs b/Management/Models/CanvasModel/Gradebook/SubmissionHistoryModel.cs index 37a5aa9..c4fcb7b 100644 --- a/Management/Models/CanvasModel/Gradebook/SubmissionHistoryModel.cs +++ b/Management/Models/CanvasModel/Gradebook/SubmissionHistoryModel.cs @@ -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? Versions { get; set; } - } + [JsonPropertyName("versions")] + public IEnumerable? Versions { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Gradebook/SubmissionVersionModel.cs b/Management/Models/CanvasModel/Gradebook/SubmissionVersionModel.cs index 8f52d4b..b1d0dcf 100644 --- a/Management/Models/CanvasModel/Gradebook/SubmissionVersionModel.cs +++ b/Management/Models/CanvasModel/Gradebook/SubmissionVersionModel.cs @@ -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("assignment_name")] - public string AssignmentName { get; set; } - - [JsonPropertyName("current_grade")] - public string CurrentGrade { get; set; } - - [JsonPropertyName("current_graded_at")] - public DateTime? CurrentGradedAt { get; set; } - - [JsonPropertyName("current_grader")] - public string CurrentGrader { get; set; } - - [JsonPropertyName("new_grade")] - public string NewGrade { get; set; } - - [JsonPropertyName("new_graded_at")] - public DateTime? NewGradedAt { get; set; } - - [JsonPropertyName("new_grader")] - public string NewGrader { 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("current_grade")] + public string CurrentGrade { get; set; } + + [JsonPropertyName("current_graded_at")] + public DateTime? CurrentGradedAt { get; set; } + + [JsonPropertyName("current_grader")] + public string CurrentGrader { get; set; } + + [JsonPropertyName("new_grade")] + public string NewGrade { get; set; } + + [JsonPropertyName("new_graded_at")] + public DateTime? NewGradedAt { get; set; } + + [JsonPropertyName("new_grader")] + public string NewGrader { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/GradingPeriods/GradingPeriodModel.cs b/Management/Models/CanvasModel/GradingPeriods/GradingPeriodModel.cs index 28b56a0..c8ab0f9 100644 --- a/Management/Models/CanvasModel/GradingPeriods/GradingPeriodModel.cs +++ b/Management/Models/CanvasModel/GradingPeriods/GradingPeriodModel.cs @@ -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("title")] - public string Title { get; set; } - - [JsonPropertyName("start_date")] - public DateTime? StartDate { get; set; } + [JsonPropertyName("id")] + public ulong Id { get; set; } - [JsonPropertyName("end_date")] - public DateTime? EndDate { get; set; } - - [JsonPropertyName("close_date")] - public DateTime? CloseDate { get; set; } - - [JsonPropertyName("weight")] - public double? Weight { get; set; } - - [JsonPropertyName("is_closed")] - public bool? IsClosed { get; set; } - } + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("start_date")] + public DateTime? StartDate { get; set; } + + [JsonPropertyName("end_date")] + public DateTime? EndDate { get; set; } + + [JsonPropertyName("close_date")] + public DateTime? CloseDate { get; set; } + + [JsonPropertyName("weight")] + public double? Weight { get; set; } + + [JsonPropertyName("is_closed")] + public bool? IsClosed { get; set; } } diff --git a/Management/Models/CanvasModel/GradingPeriods/RedundantGradingPeriodResponse.cs b/Management/Models/CanvasModel/GradingPeriods/RedundantGradingPeriodResponse.cs index faf9aa8..2fd5e80 100644 --- a/Management/Models/CanvasModel/GradingPeriods/RedundantGradingPeriodResponse.cs +++ b/Management/Models/CanvasModel/GradingPeriods/RedundantGradingPeriodResponse.cs @@ -1,9 +1,8 @@ -using System.Collections.Generic; -namespace Model.GradingPeriods { - public class RedundantGradingPeriodResponse { - [JsonPropertyName("grading_periods")] - public IEnumerable GradingPeriods { get; set; } - } +namespace CanvasModel.GradingPeriods; +public class RedundantGradingPeriodResponse +{ + [JsonPropertyName("grading_periods")] + public IEnumerable GradingPeriods { get; set; } } diff --git a/Management/Models/CanvasModel/Groups/GroupMembershipModel.cs b/Management/Models/CanvasModel/Groups/GroupMembershipModel.cs index cefdd78..53d8408 100644 --- a/Management/Models/CanvasModel/Groups/GroupMembershipModel.cs +++ b/Management/Models/CanvasModel/Groups/GroupMembershipModel.cs @@ -1,28 +1,27 @@ -namespace Model.Groups { - - public class GroupMembershipModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("group_id")] - public ulong GroupId { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("moderator")] - public bool Moderator { get; set; } - - [JsonPropertyName("just_created")] - public bool? JustCreated { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { get; set; } - } +namespace CanvasModel.Groups; +public class GroupMembershipModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("group_id")] + public ulong GroupId { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("moderator")] + public bool Moderator { get; set; } + + [JsonPropertyName("just_created")] + public bool? JustCreated { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { get; set; } } diff --git a/Management/Models/CanvasModel/Groups/GroupModel.cs b/Management/Models/CanvasModel/Groups/GroupModel.cs index d553d33..3ab6b96 100644 --- a/Management/Models/CanvasModel/Groups/GroupModel.cs +++ b/Management/Models/CanvasModel/Groups/GroupModel.cs @@ -1,60 +1,56 @@ -using System.Collections.Generic; +namespace CanvasModel.Groups; +public class GroupModel +{ + [JsonPropertyName("id")] + public ulong Id { get; set; } -namespace Model.Groups { - - public class GroupModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("description")] - public string? Description { get; set; } - - [JsonPropertyName("is_public")] - public bool? IsPublic { get; set; } - - [JsonPropertyName("followed_by_user")] - public bool FollowedByUser { get; set; } - - [JsonPropertyName("join_level")] - public string JoinLevel { get; set; } - - [JsonPropertyName("members_count")] - public uint MembersCount { get; set; } - - [JsonPropertyName("avatar_url")] - public string AvatarUrl { get; set; } - - [JsonPropertyName("context_type")] - public string ContextType { get; set; } - - [JsonPropertyName("course_id")] - public ulong? CourseId { get; set; } - - [JsonPropertyName("account_id")] - public ulong? AccountId { get; set; } - - [JsonPropertyName("role")] - public string Role { get; set; } - - [JsonPropertyName("group_category_id")] - public ulong GroupCategoryId { 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 Permissions { get; set; } - } + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("description")] + public string? Description { get; set; } + + [JsonPropertyName("is_public")] + public bool? IsPublic { get; set; } + + [JsonPropertyName("followed_by_user")] + public bool FollowedByUser { get; set; } + + [JsonPropertyName("join_level")] + public string JoinLevel { get; set; } + + [JsonPropertyName("members_count")] + public uint MembersCount { get; set; } + + [JsonPropertyName("avatar_url")] + public string AvatarUrl { get; set; } + + [JsonPropertyName("context_type")] + public string ContextType { get; set; } + + [JsonPropertyName("course_id")] + public ulong? CourseId { get; set; } + + [JsonPropertyName("account_id")] + public ulong? AccountId { get; set; } + + [JsonPropertyName("role")] + public string Role { get; set; } + + [JsonPropertyName("group_category_id")] + public ulong GroupCategoryId { 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 Permissions { get; set; } } diff --git a/Management/Models/CanvasModel/Modules/CompletionRequirementModel.cs b/Management/Models/CanvasModel/Modules/CompletionRequirementModel.cs index eeb733b..3b3468d 100644 --- a/Management/Models/CanvasModel/Modules/CompletionRequirementModel.cs +++ b/Management/Models/CanvasModel/Modules/CompletionRequirementModel.cs @@ -1,16 +1,15 @@ -namespace Model.Modules { - - public class CompletionRequirementModel { - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("min_score")] - public double? MinScore { get; set; } - - [JsonPropertyName("completed")] - public bool? Completed { get; set; } - } +namespace CanvasModel.Modules; +public class CompletionRequirementModel +{ + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("min_score")] + public double? MinScore { get; set; } + + [JsonPropertyName("completed")] + public bool? Completed { get; set; } } diff --git a/Management/Models/CanvasModel/Modules/ContentDetailsModel.cs b/Management/Models/CanvasModel/Modules/ContentDetailsModel.cs index 6e2f96f..78154c6 100644 --- a/Management/Models/CanvasModel/Modules/ContentDetailsModel.cs +++ b/Management/Models/CanvasModel/Modules/ContentDetailsModel.cs @@ -1,27 +1,23 @@ -using System; +namespace CanvasModel.Modules; +public class ContentDetailsModel +{ + [JsonPropertyName("points_possible")] + public uint? PointsPossible { get; set; } -namespace Model.Modules { - - public class ContentDetailsModel { - - [JsonPropertyName("points_possible")] - public uint? PointsPossible { 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("locked_for_user")] - public bool? LockedForUser { get; set; } - - [JsonPropertyName("lock_explanation")] - public string? LockExplanation { 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("locked_for_user")] + public bool? LockedForUser { get; set; } + + [JsonPropertyName("lock_explanation")] + public string? LockExplanation { get; set; } } diff --git a/Management/Models/CanvasModel/Modules/ModuleItemModel.cs b/Management/Models/CanvasModel/Modules/ModuleItemModel.cs index 30b286f..c220073 100644 --- a/Management/Models/CanvasModel/Modules/ModuleItemModel.cs +++ b/Management/Models/CanvasModel/Modules/ModuleItemModel.cs @@ -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 { - - public class ModuleItemModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("module_id")] - public ulong ModuleId { get; set; } - - [JsonPropertyName("position")] - public uint Position { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("indent")] - public uint? Indent { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("content_id")] - public ulong? ContentId { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("url")] - public string? Url { 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("position")] + public uint Position { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("indent")] + public uint? Indent { get; set; } + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("content_id")] + public ulong? ContentId { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("url")] + public string? Url { 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; } } diff --git a/Management/Models/CanvasModel/Modules/ModuleItemSequenceModel.cs b/Management/Models/CanvasModel/Modules/ModuleItemSequenceModel.cs index dd73aaf..95d20a0 100644 --- a/Management/Models/CanvasModel/Modules/ModuleItemSequenceModel.cs +++ b/Management/Models/CanvasModel/Modules/ModuleItemSequenceModel.cs @@ -1,11 +1,7 @@ -using System.Collections.Generic; - -namespace Model.Modules { - - public class ModuleItemSequenceModel { - - [JsonPropertyName("items")] - public IEnumerable Items { get; set; } - } +namespace CanvasModel.Modules; +public class ModuleItemSequenceModel +{ + [JsonPropertyName("items")] + public IEnumerable Items { get; set; } } diff --git a/Management/Models/CanvasModel/Modules/ModuleItemSequenceNodeModel.cs b/Management/Models/CanvasModel/Modules/ModuleItemSequenceNodeModel.cs index 9078201..47e661d 100644 --- a/Management/Models/CanvasModel/Modules/ModuleItemSequenceNodeModel.cs +++ b/Management/Models/CanvasModel/Modules/ModuleItemSequenceNodeModel.cs @@ -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("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("next")] + public ModuleItemModel? Next { get; set; } + + [JsonPropertyName("mastery_path")] + public object? MasteryPath { get; set; } // todo concrete type? } diff --git a/Management/Models/CanvasModel/Modules/ModuleModel.cs b/Management/Models/CanvasModel/Modules/ModuleModel.cs index b1f1958..d7bda1f 100644 --- a/Management/Models/CanvasModel/Modules/ModuleModel.cs +++ b/Management/Models/CanvasModel/Modules/ModuleModel.cs @@ -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 { - - public class ModuleModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("position")] - public uint Position { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("require_sequential_progress")] - public bool? RequireSequentialProgress { get; set; } - - [JsonPropertyName("prerequisite_module_ids")] - public IEnumerable? PrerequisiteModuleIds { get; set; } - - [JsonPropertyName("items_count")] - public uint ItemsCount { get; set; } - - [JsonPropertyName("items_url")] - public string ItemsUrl { get; set; } - - // [OptIn] - // [Enigmatic] // can be null if "the module is deemed too large", even if opted-in - [JsonPropertyName("items")] - public IEnumerable? 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("position")] + public uint Position { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("require_sequential_progress")] + public bool? RequireSequentialProgress { get; set; } + + [JsonPropertyName("prerequisite_module_ids")] + public IEnumerable? PrerequisiteModuleIds { get; set; } + + [JsonPropertyName("items_count")] + public uint ItemsCount { get; set; } + + [JsonPropertyName("items_url")] + public string ItemsUrl { get; set; } + + // [OptIn] + // [Enigmatic] // can be null if "the module is deemed too large", even if opted-in + [JsonPropertyName("items")] + public IEnumerable? 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; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeAlignmentModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeAlignmentModel.cs index 36ac264..2b9a501 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeAlignmentModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeAlignmentModel.cs @@ -1,17 +1,14 @@ +namespace CanvasModel.OutcomeResults; +public class OutcomeAlignmentModel +{ + [JsonPropertyName("id")] + public string Id { get; set; } -namespace Model.OutcomeResults { - - 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("name")] + public string Name { get; set; } + + [JsonPropertyName("html_url")] + public string? HtmlUrl { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomePathModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomePathModel.cs index 7c7a7d9..5708141 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomePathModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomePathModel.cs @@ -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? Parts { get; set; } - } + [JsonPropertyName("parts")] + public IEnumerable? Parts { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomePathPartModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomePathPartModel.cs index 8cc05b0..cb0eb37 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomePathPartModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomePathPartModel.cs @@ -1,10 +1,9 @@ -namespace Model.OutcomeResults { - - public struct OutcomePathPartModel { - - [JsonPropertyName("name")] - public string Name { get; set; } - } +namespace CanvasModel.OutcomeResults; +public struct OutcomePathPartModel +{ + + [JsonPropertyName("name")] + public string Name { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeResultModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeResultModel.cs index a231f1d..14136f6 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeResultModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeResultModel.cs @@ -1,24 +1,21 @@ -using System; -using System.Collections.Generic; -namespace Model.OutcomeResults { - - public class OutcomeResultModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("score")] - public double Score { get; set; } - - [JsonPropertyName("submitted_or_assessed_at")] - public DateTime SubmittedOrAssessedAt { get; set; } - - [JsonPropertyName("links")] - public Dictionary Links { get; set; } // todo - - [JsonPropertyName("percent")] - public decimal Percent { get; set; } - } +namespace CanvasModel.OutcomeResults; +public class OutcomeResultModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("score")] + public double Score { get; set; } + + [JsonPropertyName("submitted_or_assessed_at")] + public DateTime SubmittedOrAssessedAt { get; set; } + + [JsonPropertyName("links")] + public Dictionary Links { get; set; } // todo + + [JsonPropertyName("percent")] + public decimal Percent { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupLinksModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupLinksModel.cs index d2f5737..bfdc89d 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupLinksModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupLinksModel.cs @@ -1,16 +1,15 @@ -namespace Model.OutcomeResults { - - public class OutcomeRollupLinksModel { - - [JsonPropertyName("course")] - public ulong? Course { get; set; } - - [JsonPropertyName("user")] - public ulong? User { get; set; } - - [JsonPropertyName("section")] - public ulong? Section { get; set; } - } +namespace CanvasModel.OutcomeResults; +public class OutcomeRollupLinksModel +{ + + [JsonPropertyName("course")] + public ulong? Course { get; set; } + + [JsonPropertyName("user")] + public ulong? User { get; set; } + + [JsonPropertyName("section")] + public ulong? Section { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupModel.cs index bb36354..68b2143 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupModel.cs @@ -1,18 +1,15 @@ -using System.Collections.Generic; +namespace CanvasModel.OutcomeResults; +public class OutcomeRollupModel +{ -namespace Model.OutcomeResults { - - public class OutcomeRollupModel { - - [JsonPropertyName("scores")] - public IEnumerable? Scores { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("links")] - public OutcomeRollupLinksModel Links { get; set; } - } + [JsonPropertyName("scores")] + public IEnumerable? Scores { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("links")] + public OutcomeRollupLinksModel Links { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreLinksModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreLinksModel.cs index d672a0e..de5652f 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreLinksModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreLinksModel.cs @@ -1,10 +1,9 @@ -namespace Model.OutcomeResults { - - public class OutcomeRollupScoreLinksModel { - - [JsonPropertyName("outcome")] - public ulong Outcome { get; set; } - } +namespace CanvasModel.OutcomeResults; +public class OutcomeRollupScoreLinksModel +{ + + [JsonPropertyName("outcome")] + public ulong Outcome { get; set; } } diff --git a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreModel.cs b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreModel.cs index 58f2406..6daf3d0 100644 --- a/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreModel.cs +++ b/Management/Models/CanvasModel/OutcomeResults/OutcomeRollupScoreModel.cs @@ -1,16 +1,15 @@ -namespace Model.OutcomeResults { - - public class OutcomeRollupScoreModel { - - [JsonPropertyName("score")] - public double? Score { get; set; } - - [JsonPropertyName("count")] - public uint? Count { get; set; } - - [JsonPropertyName("links")] - public OutcomeRollupScoreLinksModel Links { get; set; } - } +namespace CanvasModel.OutcomeResults; +public class OutcomeRollupScoreModel +{ + + [JsonPropertyName("score")] + public double? Score { get; set; } + + [JsonPropertyName("count")] + public uint? Count { get; set; } + + [JsonPropertyName("links")] + public OutcomeRollupScoreLinksModel Links { get; set; } } diff --git a/Management/Models/CanvasModel/Pages/PageModel.cs b/Management/Models/CanvasModel/Pages/PageModel.cs index 176c39f..82d6de3 100644 --- a/Management/Models/CanvasModel/Pages/PageModel.cs +++ b/Management/Models/CanvasModel/Pages/PageModel.cs @@ -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 { - - public class PageModel { - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime UpdatedAt { get; set; } - - [JsonPropertyName("editing_roles")] - public string EditingRoles { get; set; } - - [JsonPropertyName("last_edited_by")] - public UserDisplayModel LastEditedBy { get; set; } - - [JsonPropertyName("body")] - public string? Body { get; set; } - - [JsonPropertyName("published")] - public bool Published { get; set; } - - [JsonPropertyName("front_page")] - public bool FrontPage { 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("title")] + public string Title { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime UpdatedAt { get; set; } + + [JsonPropertyName("editing_roles")] + public string EditingRoles { get; set; } + + [JsonPropertyName("last_edited_by")] + public UserDisplayModel LastEditedBy { get; set; } + + [JsonPropertyName("body")] + public string? Body { get; set; } + + [JsonPropertyName("published")] + public bool Published { get; set; } + + [JsonPropertyName("front_page")] + public bool FrontPage { 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; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Pages/PageRevisionModel.cs b/Management/Models/CanvasModel/Pages/PageRevisionModel.cs index d4feb7d..0f2665d 100644 --- a/Management/Models/CanvasModel/Pages/PageRevisionModel.cs +++ b/Management/Models/CanvasModel/Pages/PageRevisionModel.cs @@ -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("revision_id")] - public ulong RevisionId { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime UpdatedAt { get; set; } - - [JsonPropertyName("latest")] - public bool Latest { get; set; } - - [JsonPropertyName("edited_by")] - public UserDisplayModel? EditedBy { get; set; } - - [JsonPropertyName("url")] - public string? Url { get; set; } - - [JsonPropertyName("title")] - public string? Title { get; set; } - - [JsonPropertyName("body")] - public string? Body { get; set; } - } + [JsonPropertyName("updated_at")] + public DateTime UpdatedAt { get; set; } + + [JsonPropertyName("latest")] + public bool Latest { get; set; } + + [JsonPropertyName("edited_by")] + public UserDisplayModel? EditedBy { get; set; } + + [JsonPropertyName("url")] + public string? Url { get; set; } + + [JsonPropertyName("title")] + public string? Title { get; set; } + + [JsonPropertyName("body")] + public string? Body { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyModel.cs b/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyModel.cs index 5ac6551..f626b80 100644 --- a/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyModel.cs +++ b/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyModel.cs @@ -1,10 +1,7 @@ -using System.Collections.Generic; - -namespace Model.ProficiencyRatings { - - public struct ProficiencyModel { - [JsonPropertyName("ratings")] - public IEnumerable Ratings { get; set; } - } +namespace CanvasModel.ProficiencyRatings; +public struct ProficiencyModel +{ + [JsonPropertyName("ratings")] + public IEnumerable Ratings { get; set; } } diff --git a/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyRatingModel.cs b/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyRatingModel.cs index 7462b64..08f4573 100644 --- a/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyRatingModel.cs +++ b/Management/Models/CanvasModel/ProficiencyRatings/ProficiencyRatingModel.cs @@ -1,19 +1,18 @@ -namespace Model.ProficiencyRatings { - - public class ProficiencyRatingModel { - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("points")] - public double Points { get; set; } - - [JsonPropertyName("mastery")] - public bool Mastery { get; set; } - - [JsonPropertyName("color")] - public string Color { get; set; } - } +namespace CanvasModel.ProficiencyRatings; +public class ProficiencyRatingModel +{ + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("points")] + public double Points { get; set; } + + [JsonPropertyName("mastery")] + public bool Mastery { get; set; } + + [JsonPropertyName("color")] + public string Color { get; set; } } diff --git a/Management/Models/CanvasModel/Quizzes/QuizModel.cs b/Management/Models/CanvasModel/Quizzes/QuizModel.cs index d1c29ed..a312cf9 100644 --- a/Management/Models/CanvasModel/Quizzes/QuizModel.cs +++ b/Management/Models/CanvasModel/Quizzes/QuizModel.cs @@ -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 { - - public class QuizModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("mobile_url")] - public string MobileUrl { get; set; } - - [JsonPropertyName("preview_url")] - public string PreviewUrl { get; set; } - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("quiz_type")] - public string QuizType { get; set; } - - [JsonPropertyName("assignment_group_id")] - public ulong AssignmentGroupId { get; set; } - - [JsonPropertyName("time_limit")] - public decimal? TimeLimit { get; set; } - - [JsonPropertyName("shuffle_answers")] - public bool? ShuffleAnswers { get; set; } - - [JsonPropertyName("hide_results")] - public string? HideResults { get; set; } - - [JsonPropertyName("show_correct_answers")] - public bool? ShowCorrectAnswers { get; set; } - - [JsonPropertyName("show_correct_answers_last_attempt")] - public bool? ShowCorrectAnswersLastAttempt { get; set; } - - [JsonPropertyName("show_correct_answers_at")] - public DateTime? ShowCorrectAnswersAt { get; set; } - - [JsonPropertyName("hide_correct_answers_at")] - public DateTime? HideCorrectAnswersAt { get; set; } - - [JsonPropertyName("one_time_results")] - public bool? OneTimeResults { get; set; } - - [JsonPropertyName("scoring_policy")] - public string? ScoringPolicy { get; set; } - - [JsonPropertyName("allowed_attempts")] - public int AllowedAttempts { get; set; } - - [JsonPropertyName("one_question_at_a_time")] - public bool? OneQuestionAtATime { get; set; } - - [JsonPropertyName("question_count")] - public uint? QuestionCount { get; set; } - - [JsonPropertyName("points_possible")] - public decimal? PointsPossible { get; set; } - - [JsonPropertyName("cant_go_back")] - public bool? CantGoBack { get; set; } - - [JsonPropertyName("access_code")] - public string? AccessCode { get; set; } - - [JsonPropertyName("ip_filter")] - public string? IpFilter { get; set; } - - [JsonPropertyName("due_at")] - public DateTime? DueAt { get; set; } - - [JsonPropertyName("lock_at")] - public DateTime? LockAt { get; set; } - - [JsonPropertyName("unlock_at")] - public DateTime? UnlockAt { get; set; } - - [JsonPropertyName("published")] - public bool? Published { get; set; } - - [JsonPropertyName("unpublishable")] - public bool? Unpublishable { 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("speedgrader_url")] - public string? SpeedGraderUrl { get; set; } - - [JsonPropertyName("quiz_extensions_url")] - public string QuizExtensionsUrl { get; set; } - - [JsonPropertyName("permissions")] - public QuizPermissionsModel Permissions { get; set; } - - [JsonPropertyName("all_dates")] - public object AllDates { get; set; } // exact type unspecified by canvas & no example value given - - [JsonPropertyName("version_number")] - public uint? VersionNumber { get; set; } - - [JsonPropertyName("question_types")] - public IEnumerable QuestionTypes { get; set; } - - [JsonPropertyName("anonymous_submissions")] - public bool? AnonymousSubmissions { get; set; } - } + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("mobile_url")] + public string MobileUrl { get; set; } + + [JsonPropertyName("preview_url")] + public string PreviewUrl { get; set; } + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("quiz_type")] + public string QuizType { get; set; } + + [JsonPropertyName("assignment_group_id")] + public ulong AssignmentGroupId { get; set; } + + [JsonPropertyName("time_limit")] + public decimal? TimeLimit { get; set; } + + [JsonPropertyName("shuffle_answers")] + public bool? ShuffleAnswers { get; set; } + + [JsonPropertyName("hide_results")] + public string? HideResults { get; set; } + + [JsonPropertyName("show_correct_answers")] + public bool? ShowCorrectAnswers { get; set; } + + [JsonPropertyName("show_correct_answers_last_attempt")] + public bool? ShowCorrectAnswersLastAttempt { get; set; } + + [JsonPropertyName("show_correct_answers_at")] + public DateTime? ShowCorrectAnswersAt { get; set; } + + [JsonPropertyName("hide_correct_answers_at")] + public DateTime? HideCorrectAnswersAt { get; set; } + + [JsonPropertyName("one_time_results")] + public bool? OneTimeResults { get; set; } + + [JsonPropertyName("scoring_policy")] + public string? ScoringPolicy { get; set; } + + [JsonPropertyName("allowed_attempts")] + public int AllowedAttempts { get; set; } + + [JsonPropertyName("one_question_at_a_time")] + public bool? OneQuestionAtATime { get; set; } + + [JsonPropertyName("question_count")] + public uint? QuestionCount { get; set; } + + [JsonPropertyName("points_possible")] + public decimal? PointsPossible { get; set; } + + [JsonPropertyName("cant_go_back")] + public bool? CantGoBack { get; set; } + + [JsonPropertyName("access_code")] + public string? AccessCode { get; set; } + + [JsonPropertyName("ip_filter")] + public string? IpFilter { get; set; } + + [JsonPropertyName("due_at")] + public DateTime? DueAt { get; set; } + + [JsonPropertyName("lock_at")] + public DateTime? LockAt { get; set; } + + [JsonPropertyName("unlock_at")] + public DateTime? UnlockAt { get; set; } + + [JsonPropertyName("published")] + public bool? Published { get; set; } + + [JsonPropertyName("unpublishable")] + public bool? Unpublishable { 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("speedgrader_url")] + public string? SpeedGraderUrl { get; set; } + + [JsonPropertyName("quiz_extensions_url")] + public string QuizExtensionsUrl { get; set; } + + [JsonPropertyName("permissions")] + public QuizPermissionsModel Permissions { get; set; } + + [JsonPropertyName("all_dates")] + public object AllDates { get; set; } // exact type unspecified by canvas & no example value given + + [JsonPropertyName("version_number")] + public uint? VersionNumber { get; set; } + + [JsonPropertyName("question_types")] + public IEnumerable QuestionTypes { get; set; } + + [JsonPropertyName("anonymous_submissions")] + public bool? AnonymousSubmissions { get; set; } } diff --git a/Management/Models/CanvasModel/Quizzes/QuizPermissionsModel.cs b/Management/Models/CanvasModel/Quizzes/QuizPermissionsModel.cs index 1d50830..4a975cb 100644 --- a/Management/Models/CanvasModel/Quizzes/QuizPermissionsModel.cs +++ b/Management/Models/CanvasModel/Quizzes/QuizPermissionsModel.cs @@ -1,28 +1,27 @@ -namespace Model.Quizzes { - - public class QuizPermissionsModel { - - [JsonPropertyName("read")] - public bool Read { get; set; } - - [JsonPropertyName("submit")] - public bool Submit { get; set; } - - [JsonPropertyName("create")] - public bool Create { get; set; } - - [JsonPropertyName("manage")] - public bool Manage { get; set; } - - [JsonPropertyName("read_statistics")] - public bool ReadStatistics { get; set; } - - [JsonPropertyName("review_grades")] - public bool ReviewGrades { get; set; } - - [JsonPropertyName("update")] - public bool Update { get; set; } - } +namespace CanvasModel.Quizzes; +public class QuizPermissionsModel +{ + + [JsonPropertyName("read")] + public bool Read { get; set; } + + [JsonPropertyName("submit")] + public bool Submit { get; set; } + + [JsonPropertyName("create")] + public bool Create { get; set; } + + [JsonPropertyName("manage")] + public bool Manage { get; set; } + + [JsonPropertyName("read_statistics")] + public bool ReadStatistics { get; set; } + + [JsonPropertyName("review_grades")] + public bool ReviewGrades { get; set; } + + [JsonPropertyName("update")] + public bool Update { get; set; } } diff --git a/Management/Models/CanvasModel/Reports/ReportDescriptionModel.cs b/Management/Models/CanvasModel/Reports/ReportDescriptionModel.cs index e5f4dc6..2a61c37 100644 --- a/Management/Models/CanvasModel/Reports/ReportDescriptionModel.cs +++ b/Management/Models/CanvasModel/Reports/ReportDescriptionModel.cs @@ -1,29 +1,24 @@ -using System.Collections.Generic; +namespace CanvasModel.Reports; +public class ReportDescriptionModel +{ + [JsonPropertyName("report")] + public string Report { get; set; } -namespace Model.Reports { - - // 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("title")] + public string Title { get; set; } - [JsonPropertyName("parameters")] - public Dictionary? Parameters { get; set; } - } + [JsonPropertyName("parameters")] + public Dictionary? Parameters { get; set; } +} - public class ReportParameterDescriptionModel { - - [JsonPropertyName("description")] - public string Description { get; set; } - - [JsonPropertyName("required")] - public bool Required { get; set; } - } +public class ReportParameterDescriptionModel +{ + + [JsonPropertyName("description")] + public string Description { get; set; } + + [JsonPropertyName("required")] + public bool Required { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Reports/ReportModel.cs b/Management/Models/CanvasModel/Reports/ReportModel.cs index 397ef3d..7dd8b68 100644 --- a/Management/Models/CanvasModel/Reports/ReportModel.cs +++ b/Management/Models/CanvasModel/Reports/ReportModel.cs @@ -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 { - - public class ReportModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("report")] - public string Report { get; set; } - - [JsonPropertyName("file_url")] - public string? FileUrl { get; set; } - - [JsonPropertyName("attachment")] - public FileAttachmentModel? Attachment { get; set; } - - [JsonPropertyName("status")] - public string Status { get; set; } - - [JsonPropertyName("created_at")] - public DateTime? CreatedAt { get; set; } - - [JsonPropertyName("started_at")] - public DateTime? StartedAt { 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 Parameters { get; set; } - - [JsonPropertyName("progress")] - public double? Progress { get; set; } - - [JsonPropertyName("current_line")] - public ulong? CurrentLine { get; set; } - } + [JsonPropertyName("report")] + public string Report { get; set; } + + [JsonPropertyName("file_url")] + public string? FileUrl { get; set; } + + [JsonPropertyName("attachment")] + public FileAttachmentModel? Attachment { get; set; } + + [JsonPropertyName("status")] + public string Status { get; set; } + + [JsonPropertyName("created_at")] + public DateTime? CreatedAt { get; set; } + + [JsonPropertyName("started_at")] + public DateTime? StartedAt { 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 Parameters { get; set; } + + [JsonPropertyName("progress")] + public double? Progress { get; set; } + + [JsonPropertyName("current_line")] + public ulong? CurrentLine { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Results/ResultModel.cs b/Management/Models/CanvasModel/Results/ResultModel.cs index d470a2c..0721d68 100644 --- a/Management/Models/CanvasModel/Results/ResultModel.cs +++ b/Management/Models/CanvasModel/Results/ResultModel.cs @@ -1,26 +1,24 @@ +namespace CanvasModel.Results; +public class ResultModel +{ + // yes indeed the docs say this model specifically uses camelCase properties -namespace Model.Results { - - public class ResultModel { - // yes indeed the docs say this model specifically uses camelCase properties + [JsonPropertyName("id")] + public string Id { get; set; } - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("userId")] - public string UserId { get; set; } - - [JsonPropertyName("resultScore")] - public string ResultScore { get; set; } - - [JsonPropertyName("resultMaximum")] - public string ResultMaximum { get; set; } - - [JsonPropertyName("comment")] - public string Comment { get; set; } - - [JsonPropertyName("scoreOf")] - public string ScoreOf { get; set; } - } + [JsonPropertyName("userId")] + public string UserId { get; set; } + + [JsonPropertyName("resultScore")] + public string ResultScore { get; set; } + + [JsonPropertyName("resultMaximum")] + public string ResultMaximum { get; set; } + + [JsonPropertyName("comment")] + public string Comment { get; set; } + + [JsonPropertyName("scoreOf")] + public string ScoreOf { get; set; } } diff --git a/Management/Models/CanvasModel/Roles/RoleModel.cs b/Management/Models/CanvasModel/Roles/RoleModel.cs index dcf652b..08a59c6 100644 --- a/Management/Models/CanvasModel/Roles/RoleModel.cs +++ b/Management/Models/CanvasModel/Roles/RoleModel.cs @@ -1,24 +1,22 @@ -using System.Collections.Generic; -using Model.Accounts; +using CanvasModel.Accounts; -namespace Model.Roles { - - public class RoleModel { - - [JsonPropertyName("label")] - public string Label { get; set; } - - [JsonPropertyName("base_role_type")] - public string BaseRoleType { get; set; } - - [JsonPropertyName("account")] - public AccountModel Account { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("permissions")] - public Dictionary Permissions { get; set; } - } +namespace CanvasModel.Roles; +public class RoleModel +{ + + [JsonPropertyName("label")] + public string Label { get; set; } + + [JsonPropertyName("base_role_type")] + public string BaseRoleType { get; set; } + + [JsonPropertyName("account")] + public AccountModel Account { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("permissions")] + public Dictionary Permissions { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Roles/RolePermissionsModel.cs b/Management/Models/CanvasModel/Roles/RolePermissionsModel.cs index 190cbf5..741c0a2 100644 --- a/Management/Models/CanvasModel/Roles/RolePermissionsModel.cs +++ b/Management/Models/CanvasModel/Roles/RolePermissionsModel.cs @@ -1,28 +1,27 @@ -namespace Model.Roles { - - public class RolePermissionsModel { - - [JsonPropertyName("enabled")] - public bool Enabled { get; set; } - - [JsonPropertyName("locked")] - public bool Locked { get; set; } - - [JsonPropertyName("applies_to_self")] - public bool AppliesToSelf { get; set; } - - [JsonPropertyName("applies_to_descendants")] - public bool AppliesToDescendants { get; set; } - - [JsonPropertyName("readonly")] - public bool Readonly { get; set; } - - [JsonPropertyName("explicit")] - public bool Explicit { get; set; } - - [JsonPropertyName("prior_default")] - public bool PriorDefault { get; set; } - } +namespace CanvasModel.Roles; +public class RolePermissionsModel +{ + + [JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonPropertyName("locked")] + public bool Locked { get; set; } + + [JsonPropertyName("applies_to_self")] + public bool AppliesToSelf { get; set; } + + [JsonPropertyName("applies_to_descendants")] + public bool AppliesToDescendants { get; set; } + + [JsonPropertyName("readonly")] + public bool Readonly { get; set; } + + [JsonPropertyName("explicit")] + public bool Explicit { get; set; } + + [JsonPropertyName("prior_default")] + public bool PriorDefault { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Sections/SectionModel.cs b/Management/Models/CanvasModel/Sections/SectionModel.cs index 489efc1..7adde5a 100644 --- a/Management/Models/CanvasModel/Sections/SectionModel.cs +++ b/Management/Models/CanvasModel/Sections/SectionModel.cs @@ -1,41 +1,36 @@ -using System; +namespace CanvasModel.Sections; +public class SectionModel +{ + [JsonPropertyName("id")] + public ulong Id { get; set; } + [JsonPropertyName("name")] + public string Name { get; set; } -namespace Model.Sections { - - public class SectionModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("sis_section_id")] - public string? SisSectionId { get; set; } - - [JsonPropertyName("integration_id")] - public string? IntegrationId { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { get; set; } - - [JsonPropertyName("start_at")] - public DateTime? StartAt { get; set; } - - [JsonPropertyName("end_at")] - public DateTime? EndAt { get; set; } - - [JsonPropertyName("restrict_enrollments_to_section_dates")] - public bool? RestrictEnrollmentsToSectionDates { get; set; } - - [JsonPropertyName("nonxlist_course_id")] - public ulong? NonCrossListedCourseId { get; set; } - - [JsonPropertyName("total_students")] - // [OptIn] - public uint? TotalStudents { get; set; } - } + [JsonPropertyName("sis_section_id")] + public string? SisSectionId { get; set; } + + [JsonPropertyName("integration_id")] + public string? IntegrationId { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { get; set; } + + [JsonPropertyName("start_at")] + public DateTime? StartAt { get; set; } + + [JsonPropertyName("end_at")] + public DateTime? EndAt { get; set; } + + [JsonPropertyName("restrict_enrollments_to_section_dates")] + public bool? RestrictEnrollmentsToSectionDates { get; set; } + + [JsonPropertyName("nonxlist_course_id")] + public ulong? NonCrossListedCourseId { get; set; } + + [JsonPropertyName("total_students")] + // [OptIn] + public uint? TotalStudents { get; set; } } diff --git a/Management/Models/CanvasModel/SisImports/SisImportCountsModel.cs b/Management/Models/CanvasModel/SisImports/SisImportCountsModel.cs index 6fc8007..76c3129 100644 --- a/Management/Models/CanvasModel/SisImports/SisImportCountsModel.cs +++ b/Management/Models/CanvasModel/SisImports/SisImportCountsModel.cs @@ -1,57 +1,55 @@ +namespace CanvasModel.SisImports; +public class SisImportCountsModel +{ -namespace Model.SisImports { + [JsonPropertyName("accounts")] + public ulong Accounts { get; set; } - public class SisImportCountsModel { - - [JsonPropertyName("accounts")] - public ulong Accounts { get; set; } - - [JsonPropertyName("terms")] - public ulong Terms { get; set; } - - [JsonPropertyName("abstract_courses")] - public ulong AbstractCourses { get; set; } - - [JsonPropertyName("courses")] - public ulong Courses { get; set; } - - [JsonPropertyName("sections")] - public ulong Sections { get; set; } - - [JsonPropertyName("xlists")] - public ulong CrossLists { get; set; } - - [JsonPropertyName("users")] - public ulong Users { get; set; } - - [JsonPropertyName("enrollments")] - public ulong Enrollments { get; set; } - - [JsonPropertyName("groups")] - public ulong Groups { get; set; } - - [JsonPropertyName("group_memberships")] - public ulong GroupMemberships { get; set; } - - [JsonPropertyName("grade_publishing_results")] - public ulong GradePublishingResults { get; set; } - - // the following three specific fields are null when 0, unlike the other ones which are 0 when 0 - - [JsonPropertyName("batch_courses_deleted")] - public ulong? BatchCoursesDeleted { get; set; } - - [JsonPropertyName("batch_sections_deleted")] - public ulong? BatchSectionsDeleted { get; set; } - - [JsonPropertyName("batch_enrollments_deleted")] - public ulong? BatchEnrollmentsDeleted { get; set; } - - [JsonPropertyName("error_count")] - public ulong Errors { get; set; } - - [JsonPropertyName("warning_count")] - public ulong Warnings { get; set; } - } + [JsonPropertyName("terms")] + public ulong Terms { get; set; } + + [JsonPropertyName("abstract_courses")] + public ulong AbstractCourses { get; set; } + + [JsonPropertyName("courses")] + public ulong Courses { get; set; } + + [JsonPropertyName("sections")] + public ulong Sections { get; set; } + + [JsonPropertyName("xlists")] + public ulong CrossLists { get; set; } + + [JsonPropertyName("users")] + public ulong Users { get; set; } + + [JsonPropertyName("enrollments")] + public ulong Enrollments { get; set; } + + [JsonPropertyName("groups")] + public ulong Groups { get; set; } + + [JsonPropertyName("group_memberships")] + public ulong GroupMemberships { get; set; } + + [JsonPropertyName("grade_publishing_results")] + public ulong GradePublishingResults { get; set; } + + // the following three specific fields are null when 0, unlike the other ones which are 0 when 0 + + [JsonPropertyName("batch_courses_deleted")] + public ulong? BatchCoursesDeleted { get; set; } + + [JsonPropertyName("batch_sections_deleted")] + public ulong? BatchSectionsDeleted { get; set; } + + [JsonPropertyName("batch_enrollments_deleted")] + public ulong? BatchEnrollmentsDeleted { get; set; } + + [JsonPropertyName("error_count")] + public ulong Errors { get; set; } + + [JsonPropertyName("warning_count")] + public ulong Warnings { get; set; } } diff --git a/Management/Models/CanvasModel/SisImports/SisImportDataModel.cs b/Management/Models/CanvasModel/SisImports/SisImportDataModel.cs index 4ea6e62..8499f72 100644 --- a/Management/Models/CanvasModel/SisImports/SisImportDataModel.cs +++ b/Management/Models/CanvasModel/SisImports/SisImportDataModel.cs @@ -1,18 +1,14 @@ -using System.Collections.Generic; +namespace CanvasModel.SisImports; +public class SisImportDataModel +{ + [JsonPropertyName("import_type")] + public string ImportType { get; set; } -namespace Model.SisImports { + [JsonPropertyName("supplied_batches")] + public IEnumerable SuppliedBatches { get; set; } - public class SisImportDataModel { - - [JsonPropertyName("import_type")] - public string ImportType { get; set; } - - [JsonPropertyName("supplied_batches")] - public IEnumerable SuppliedBatches { get; set; } - - [JsonPropertyName("counts")] - public SisImportCountsModel? Counts { get; set; } - } + [JsonPropertyName("counts")] + public SisImportCountsModel? Counts { get; set; } } diff --git a/Management/Models/CanvasModel/SisImports/SisImportModel.cs b/Management/Models/CanvasModel/SisImports/SisImportModel.cs index 833f98b..a9ebaff 100644 --- a/Management/Models/CanvasModel/SisImports/SisImportModel.cs +++ b/Management/Models/CanvasModel/SisImports/SisImportModel.cs @@ -1,78 +1,74 @@ -using System; -using System.Collections.Generic; +using CanvasModel.Users; -using Model.Users; +namespace CanvasModel.SisImports; +public class SisImportModel +{ -namespace Model.SisImports { + [JsonPropertyName("id")] + public ulong Id { get; set; } - public class SisImportModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("created_at")] - public DateTime? CreatedAt { get; set; } - - [JsonPropertyName("ended_at")] - public DateTime? EndedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("data")] - public SisImportDataModel Data { get; set; } - - [JsonPropertyName("statistics")] - public object? Statistics { get; set; } - // public SisImportStatisticsModel Statistics { get; set; } - - [JsonPropertyName("progress")] - public long? Progress { get; set; } - - [JsonPropertyName("errors_attachment")] - public object ErrorsAttachment { get; set; } - - [JsonPropertyName("user")] - public UserModel? User { get; set; } - - [JsonPropertyName("processing_warnings")] - public IEnumerable>? ProcessingWarnings { get; set; } - - [JsonPropertyName("processing_errors")] - public IEnumerable>? ProcessingErrors { get; set; } - - [JsonPropertyName("batch_mode")] - public bool? BatchMode { get; set; } - - [JsonPropertyName("batch_mode_term_id")] - public long? BatchModeTermId { get; set; } - - [JsonPropertyName("multi_term_batch_mode")] - public bool? MultiTermBatchMode { get; set; } + [JsonPropertyName("created_at")] + public DateTime? CreatedAt { get; set; } - [JsonPropertyName("skip_deletes")] - public bool? SkipDeletes { get; set; } - - [JsonPropertyName("override_sis_stickiness")] - public bool? OverrideSisStickiness { get; set; } - - [JsonPropertyName("add_sis_stickiness")] - public bool? AddSisStickiness { get; set; } - - [JsonPropertyName("clear_sis_stickiness")] - public bool? ClearSisStickiness { get; set; } - - [JsonPropertyName("diffing_data_set_identifier")] - public string DiffingDataSetIdentifier { get; set; } - - [JsonPropertyName("diffed_against_import_id")] - public ulong? DiffedAgainstImportId { get; set; } + [JsonPropertyName("ended_at")] + public DateTime? EndedAt { get; set; } - [JsonPropertyName("csv_attachments")] - public IEnumerable CsvAttachments { get; set; } - } + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("data")] + public SisImportDataModel Data { get; set; } + + [JsonPropertyName("statistics")] + public object? Statistics { get; set; } + // public SisImportStatisticsModel Statistics { get; set; } + + [JsonPropertyName("progress")] + public long? Progress { get; set; } + + [JsonPropertyName("errors_attachment")] + public object ErrorsAttachment { get; set; } + + [JsonPropertyName("user")] + public UserModel? User { get; set; } + + [JsonPropertyName("processing_warnings")] + public IEnumerable>? ProcessingWarnings { get; set; } + + [JsonPropertyName("processing_errors")] + public IEnumerable>? ProcessingErrors { get; set; } + + [JsonPropertyName("batch_mode")] + public bool? BatchMode { get; set; } + + [JsonPropertyName("batch_mode_term_id")] + public long? BatchModeTermId { get; set; } + + [JsonPropertyName("multi_term_batch_mode")] + public bool? MultiTermBatchMode { get; set; } + + [JsonPropertyName("skip_deletes")] + public bool? SkipDeletes { get; set; } + + [JsonPropertyName("override_sis_stickiness")] + public bool? OverrideSisStickiness { get; set; } + + [JsonPropertyName("add_sis_stickiness")] + public bool? AddSisStickiness { get; set; } + + [JsonPropertyName("clear_sis_stickiness")] + public bool? ClearSisStickiness { get; set; } + + [JsonPropertyName("diffing_data_set_identifier")] + public string DiffingDataSetIdentifier { get; set; } + + [JsonPropertyName("diffed_against_import_id")] + public ulong? DiffedAgainstImportId { get; set; } + + [JsonPropertyName("csv_attachments")] + public IEnumerable CsvAttachments { get; set; } } diff --git a/Management/Models/CanvasModel/SisImports/SisImportStatisticModel.cs b/Management/Models/CanvasModel/SisImports/SisImportStatisticModel.cs index aef0f33..d907c75 100644 --- a/Management/Models/CanvasModel/SisImports/SisImportStatisticModel.cs +++ b/Management/Models/CanvasModel/SisImports/SisImportStatisticModel.cs @@ -1,22 +1,21 @@ -namespace Model.SisImports { - - public class SisImportStatisticModel { - - [JsonPropertyName("created")] - public ulong? Created { get; set; } - - [JsonPropertyName("concluded")] - public ulong? Concluded { get; set; } - - [JsonPropertyName("deactivated")] - public ulong? Deactivated { get; set; } - - [JsonPropertyName("restored")] - public ulong? Restored { get; set; } - - [JsonPropertyName("deleted")] - public ulong? Deleted { get; set; } - } +namespace CanvasModel.SisImports; +public class SisImportStatisticModel +{ + + [JsonPropertyName("created")] + public ulong? Created { get; set; } + + [JsonPropertyName("concluded")] + public ulong? Concluded { get; set; } + + [JsonPropertyName("deactivated")] + public ulong? Deactivated { get; set; } + + [JsonPropertyName("restored")] + public ulong? Restored { get; set; } + + [JsonPropertyName("deleted")] + public ulong? Deleted { get; set; } } diff --git a/Management/Models/CanvasModel/SisImports/SisImportStatisticsModel.cs b/Management/Models/CanvasModel/SisImports/SisImportStatisticsModel.cs index 4a50ce8..10a6ffa 100644 --- a/Management/Models/CanvasModel/SisImports/SisImportStatisticsModel.cs +++ b/Management/Models/CanvasModel/SisImports/SisImportStatisticsModel.cs @@ -1,50 +1,49 @@ -// namespace Model.SisImports { +// namespace CanvasModel.SisImports; +// public class SisImportStatisticsModel +// { -// public class SisImportStatisticsModel { - -// [JsonPropertyName("total_state_changes")] -// public ulong TotalStateChanges { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? Account { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? EnrollmentTerm { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? CommunicationChannel { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? AbstractCourse { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? Course { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? CourseSection { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? Enrollment { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? GroupCategory { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? Group { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? GroupMembership { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? Pseudonym { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? UserObserver { get; set; } - -// [JsonPropertyName] -// public SisImportStatisticModel? AccountUser { get; set; } -// } +// [JsonPropertyName("total_state_changes")] +// public ulong TotalStateChanges { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? Account { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? EnrollmentTerm { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? CommunicationChannel { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? AbstractCourse { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? Course { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? CourseSection { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? Enrollment { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? GroupCategory { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? Group { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? GroupMembership { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? Pseudonym { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? UserObserver { get; set; } + +// [JsonPropertyName] +// public SisImportStatisticModel? AccountUser { get; set; } // } diff --git a/Management/Models/CanvasModel/Submissions/MediaCommentModel.cs b/Management/Models/CanvasModel/Submissions/MediaCommentModel.cs index 5e1c05a..658f628 100644 --- a/Management/Models/CanvasModel/Submissions/MediaCommentModel.cs +++ b/Management/Models/CanvasModel/Submissions/MediaCommentModel.cs @@ -1,22 +1,21 @@ -namespace Model.Submissions { - - public class MediaCommentModel { - - [JsonPropertyName("content-type")] - public string ContentType { get; set; } - - [JsonPropertyName("display_name")] - public string DisplayName { get; set; } - - [JsonPropertyName("media_id")] - public string MediaId { get; set; } - - [JsonPropertyName("media_type")] - public string MediaType { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - } +namespace CanvasModel.Submissions; +public class MediaCommentModel +{ + + [JsonPropertyName("content-type")] + public string ContentType { get; set; } + + [JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + [JsonPropertyName("media_id")] + public string MediaId { get; set; } + + [JsonPropertyName("media_type")] + public string MediaType { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Submissions/SubmissionCommentModel.cs b/Management/Models/CanvasModel/Submissions/SubmissionCommentModel.cs index c799919..991d3db 100644 --- a/Management/Models/CanvasModel/Submissions/SubmissionCommentModel.cs +++ b/Management/Models/CanvasModel/Submissions/SubmissionCommentModel.cs @@ -1,34 +1,30 @@ -using System; +using CanvasModel.Users; +namespace CanvasModel.Submissions; +public class SubmissionCommentModel +{ -using Model.Users; + [JsonPropertyName("id")] + public ulong Id { get; set; } -namespace Model.Submissions { - - public class SubmissionCommentModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("author_id")] - public ulong AuthorId { get; set; } - - [JsonPropertyName("author_name")] - public string AuthorName { get; set; } - - [JsonPropertyName("author")] - public UserDisplayModel Author { get; set; } - - [JsonPropertyName("comment")] - public string Comment { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("edited_at")] - public DateTime? EditedAt { get; set; } - - [JsonPropertyName("media_comment")] - public MediaCommentModel? MediaComment { get; set; } - } + [JsonPropertyName("author_id")] + public ulong AuthorId { get; set; } + + [JsonPropertyName("author_name")] + public string AuthorName { get; set; } + + [JsonPropertyName("author")] + public UserDisplayModel Author { get; set; } + + [JsonPropertyName("comment")] + public string Comment { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("edited_at")] + public DateTime? EditedAt { get; set; } + + [JsonPropertyName("media_comment")] + public MediaCommentModel? MediaComment { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Submissions/SubmissionModel.cs b/Management/Models/CanvasModel/Submissions/SubmissionModel.cs index 943faa9..ee76eb2 100644 --- a/Management/Models/CanvasModel/Submissions/SubmissionModel.cs +++ b/Management/Models/CanvasModel/Submissions/SubmissionModel.cs @@ -1,97 +1,92 @@ -using System; -using System.Collections.Generic; +using CanvasModel.Assignments; +using CanvasModel.Courses; +using CanvasModel.Users; +namespace CanvasModel.Submissions; +public class SubmissionModel +{ -using Model.Assignments; -using Model.Courses; -using Model.Users; + [JsonPropertyName("assignment_id")] + public ulong AssignmentId { get; set; } -namespace Model.Submissions { - - public class SubmissionModel { - - [JsonPropertyName("assignment_id")] - public ulong AssignmentId { get; set; } - - [JsonPropertyName("assignment")] - public AssignmentModel? Assignment { get; set; } - - [JsonPropertyName("course")] - public CourseModel? Course { get; set; } - - [JsonPropertyName("attempt")] - public uint? Attempt { get; set; } - - [JsonPropertyName("body")] - public string? Body { get; set; } - - [JsonPropertyName("grade")] - public string Grade { get; set; } - - [JsonPropertyName("grade_matches_current_submission")] - public bool? GradeMatchesCurrentSubmission { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - [JsonPropertyName("preview_url")] - public string PreviewUrl { get; set; } - - [JsonPropertyName("score")] - public decimal? Score { get; set; } - - [JsonPropertyName("submission_comments")] - public IEnumerable? SubmissionComments { get; set; } - - [JsonPropertyName("submission_type")] - public string SubmissionType { get; set; } - - [JsonPropertyName("submitted_at")] - public DateTime? SubmittedAt { get; set; } - - [JsonPropertyName("url")] - public string? Url { get; set; } - - [JsonPropertyName("user_id")] - public ulong UserId { get; set; } - - [JsonPropertyName("grader_id")] - public long? GraderId { get; set; } // why can this be negative??? - - [JsonPropertyName("graded_at")] - public DateTime? GradedAt { get; set; } - - [JsonPropertyName("user")] - public UserModel User { get; set; } - - [JsonPropertyName("late")] - public bool? Late { get; set; } - - [JsonPropertyName("assignment_visible")] - public bool? AssignmentVisible { get; set; } - - [JsonPropertyName("excused")] - public bool? Excused { get; set; } - - [JsonPropertyName("missing")] - public bool? Missing { get; set; } - - [JsonPropertyName("late_policy_status")] - public string LatePolicyStatus { get; set; } - - [JsonPropertyName("points_deducted")] - public double? PointsDeducted { get; set; } - - [JsonPropertyName("seconds_late")] - public double? SecondsLate { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } + [JsonPropertyName("assignment")] + public AssignmentModel? Assignment { get; set; } - [JsonPropertyName("extra_attempts")] - public uint? ExtraAttempts { get; set; } - - [JsonPropertyName("anonymous_id")] - public string? AnonymousId { get; set; } - } + [JsonPropertyName("course")] + public CourseModel? Course { get; set; } + + [JsonPropertyName("attempt")] + public uint? Attempt { get; set; } + + [JsonPropertyName("body")] + public string? Body { get; set; } + + [JsonPropertyName("grade")] + public string Grade { get; set; } + + [JsonPropertyName("grade_matches_current_submission")] + public bool? GradeMatchesCurrentSubmission { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("preview_url")] + public string PreviewUrl { get; set; } + + [JsonPropertyName("score")] + public decimal? Score { get; set; } + + [JsonPropertyName("submission_comments")] + public IEnumerable? SubmissionComments { get; set; } + + [JsonPropertyName("submission_type")] + public string SubmissionType { get; set; } + + [JsonPropertyName("submitted_at")] + public DateTime? SubmittedAt { get; set; } + + [JsonPropertyName("url")] + public string? Url { get; set; } + + [JsonPropertyName("user_id")] + public ulong UserId { get; set; } + + [JsonPropertyName("grader_id")] + public long? GraderId { get; set; } // why can this be negative??? + + [JsonPropertyName("graded_at")] + public DateTime? GradedAt { get; set; } + + [JsonPropertyName("user")] + public UserModel User { get; set; } + + [JsonPropertyName("late")] + public bool? Late { get; set; } + + [JsonPropertyName("assignment_visible")] + public bool? AssignmentVisible { get; set; } + + [JsonPropertyName("excused")] + public bool? Excused { get; set; } + + [JsonPropertyName("missing")] + public bool? Missing { get; set; } + + [JsonPropertyName("late_policy_status")] + public string LatePolicyStatus { get; set; } + + [JsonPropertyName("points_deducted")] + public double? PointsDeducted { get; set; } + + [JsonPropertyName("seconds_late")] + public double? SecondsLate { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("extra_attempts")] + public uint? ExtraAttempts { get; set; } + + [JsonPropertyName("anonymous_id")] + public string? AnonymousId { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/ToDos/ToDoItemModel.cs b/Management/Models/CanvasModel/ToDos/ToDoItemModel.cs index 34272ac..795b550 100644 --- a/Management/Models/CanvasModel/ToDos/ToDoItemModel.cs +++ b/Management/Models/CanvasModel/ToDos/ToDoItemModel.cs @@ -1,37 +1,36 @@ -using Model.Assignments; -using Model.Quizzes; +using CanvasModel.Assignments; +using CanvasModel.Quizzes; + +namespace CanvasModel.ToDos; + +public class ToDoItemModel +{ + + [JsonPropertyName("context_type")] + public string ContextType { get; set; } + + [JsonPropertyName("course_id")] + public ulong? CourseId { get; set; } + + [JsonPropertyName("group_id")] + public ulong? GroupId { get; set; } + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("ignore")] + public string IgnoreUrl { get; set; } + + [JsonPropertyName("ignore_permanently")] + public string PermanentIgnoreUrl { get; set; } + + [JsonPropertyName("assignment")] + public AssignmentModel? Assignment { get; set; } + + [JsonPropertyName("quiz")] + public QuizModel? Quiz { get; set; } + -namespace Model.ToDos { - - - public class ToDoItemModel { - - [JsonPropertyName("context_type")] - public string ContextType { get; set; } - - [JsonPropertyName("course_id")] - public ulong? CourseId { get; set; } - - [JsonPropertyName("group_id")] - public ulong? GroupId { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("ignore")] - public string IgnoreUrl { get; set; } - - [JsonPropertyName("ignore_permanently")] - public string PermanentIgnoreUrl { get; set; } - - [JsonPropertyName("assignment")] - public AssignmentModel? Assignment { get; set; } - - [JsonPropertyName("quiz")] - public QuizModel? Quiz { get; set; } - - - } } diff --git a/Management/Models/CanvasModel/Users/ActivityStreamObjectModel.cs b/Management/Models/CanvasModel/Users/ActivityStreamObjectModel.cs index 407dcda..e5b25d8 100644 --- a/Management/Models/CanvasModel/Users/ActivityStreamObjectModel.cs +++ b/Management/Models/CanvasModel/Users/ActivityStreamObjectModel.cs @@ -1,203 +1,185 @@ -using System; -using System.Collections.Generic; -using Model.Assignments; -using Model.Courses; -using Model.Submissions; -// +using CanvasModel.Assignments; +using CanvasModel.Courses; +using CanvasModel.Submissions; + +namespace CanvasModel.Users; +public class ActivityStreamObjectModel +{ + // General + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("updated_at")] + public DateTime? UpdatedAt { get; set; } + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("message")] + public string Message { get; set; } + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("read_state")] + public bool ReadState { get; set; } + + [JsonPropertyName("context_type")] + public string ContextType { get; set; } + + [JsonPropertyName("course_id")] + public ulong? CourseId { get; set; } + + [JsonPropertyName("group_id")] + public ulong? GroupId { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + // Type = DiscussionTopic | Announcement + + [JsonPropertyName("total_root_discussion_entries")] + public uint? TotalRootDiscussionEntries { get; set; } + + [JsonPropertyName("require_initial_post")] + public bool? RequireInitialPost { get; set; } + + [JsonPropertyName("user_has_posted")] + public bool? UserHasPosted { get; set; } + + [JsonPropertyName("root_discussion_entries")] + public object RootDiscussionEntries { get; set; } // todo this class/model + + // Type = DiscussionTopic + + [JsonPropertyName("discussion_topic_id")] + public ulong? DiscussionTopicId { get; set; } + + // Type = Announcement + + [JsonPropertyName("announcement_id")] + public ulong? AnnouncementId { get; set; } + + // Type = Conversation + + [JsonPropertyName("conversation_id")] + public ulong? ConversationId { get; set; } + + [JsonPropertyName("private")] + public bool? Private { get; set; } + + [JsonPropertyName("participant_count")] + public uint? ParticipantCount { get; set; } + + // Type = Message + + [JsonPropertyName("message_id")] + public ulong? MessageId { get; set; } + + [JsonPropertyName("notification_category")] + public string NotificationCategory { get; set; } + + // Type = Submission + + [JsonPropertyName("assignment_id")] + public ulong? AssignmentId { get; set; } + + [JsonPropertyName("assignment")] + public AssignmentModel? Assignment { get; set; } + + [JsonPropertyName("course")] + public CourseModel? Course { get; set; } + + [JsonPropertyName("attempt")] + public uint? Attempt { get; set; } + + [JsonPropertyName("body")] + public string? Body { get; set; } + + [JsonPropertyName("grade")] + public string Grade { get; set; } + + [JsonPropertyName("grade_matches_current_submission")] + public bool? GradeMatchesCurrentSubmission { get; set; } + + [JsonPropertyName("preview_url")] + public string PreviewUrl { get; set; } + + [JsonPropertyName("score")] + public decimal? Score { get; set; } + + [JsonPropertyName("submission_comments")] + public IEnumerable? SubmissionComments { get; set; } + + [JsonPropertyName("submission_type")] + public string SubmissionType { get; set; } + + [JsonPropertyName("submitted_at")] + public DateTime? SubmittedAt { get; set; } + + [JsonPropertyName("url")] + public string? Url { get; set; } + + [JsonPropertyName("user_id")] + public ulong? UserId { get; set; } + + [JsonPropertyName("grader_id")] + public long? GraderId { get; set; } // why can this be negative??? + + [JsonPropertyName("graded_at")] + public DateTime? GradedAt { get; set; } + + [JsonPropertyName("user")] + public UserModel? User { get; set; } + + [JsonPropertyName("late")] + public bool? Late { get; set; } + + [JsonPropertyName("assignment_visible")] + public bool? AssignmentVisible { get; set; } + + [JsonPropertyName("excused")] + public bool? Excused { get; set; } + + [JsonPropertyName("missing")] + public bool? Missing { get; set; } + + [JsonPropertyName("late_policy_status")] + public string LatePolicyStatus { get; set; } + + [JsonPropertyName("points_deducted")] + public double? PointsDeducted { get; set; } + + [JsonPropertyName("seconds_late")] + public double? SecondsLate { get; set; } + + [JsonPropertyName("workflow_state")] + public string WorkflowState { get; set; } + + [JsonPropertyName("extra_attempts")] + public uint? ExtraAttempts { get; set; } + + [JsonPropertyName("anonymous_id")] + public string? AnonymousId { get; set; } + + // Type = Conference + + [JsonPropertyName("web_conference_id")] + public ulong? WebConferenceId { get; set; } + + // Type = Collaboration + + [JsonPropertyName("collaboration_id")] + public ulong? CollaborationId { get; set; } + + // Type = AssignmentRequest + + [JsonPropertyName("assignment_request_id")] + public ulong? AssignmentRequestId { get; set; } -namespace Model.Users { - - public class ActivityStreamObjectModel { - - // General - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("updated_at")] - public DateTime? UpdatedAt { get; set; } - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("message")] - public string Message { get; set; } - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("read_state")] - public bool ReadState { get; set; } - - [JsonPropertyName("context_type")] - public string ContextType { get; set; } - - [JsonPropertyName("course_id")] - public ulong? CourseId { get; set; } - - [JsonPropertyName("group_id")] - public ulong? GroupId { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - - // - // Type = DiscussionTopic | Announcement - - [JsonPropertyName("total_root_discussion_entries")] - public uint? TotalRootDiscussionEntries { get; set; } - - [JsonPropertyName("require_initial_post")] - public bool? RequireInitialPost { get; set; } - - [JsonPropertyName("user_has_posted")] - public bool? UserHasPosted { get; set; } - - [JsonPropertyName("root_discussion_entries")] - public object RootDiscussionEntries { get; set; } // todo this class/model - - // - // Type = DiscussionTopic - - [JsonPropertyName("discussion_topic_id")] - public ulong? DiscussionTopicId { get; set; } - - // - // Type = Announcement - - [JsonPropertyName("announcement_id")] - public ulong? AnnouncementId { get; set; } - - // - // Type = Conversation - - [JsonPropertyName("conversation_id")] - public ulong? ConversationId { get; set; } - - [JsonPropertyName("private")] - public bool? Private { get; set; } - - [JsonPropertyName("participant_count")] - public uint? ParticipantCount { get; set; } - - // - // Type = Message - - [JsonPropertyName("message_id")] - public ulong? MessageId { get; set; } - - [JsonPropertyName("notification_category")] - public string NotificationCategory { get; set; } - - // - // Type = Submission - - - - [JsonPropertyName("assignment_id")] - public ulong? AssignmentId { get; set; } - - [JsonPropertyName("assignment")] - public AssignmentModel? Assignment { get; set; } - - [JsonPropertyName("course")] - public CourseModel? Course { get; set; } - - [JsonPropertyName("attempt")] - public uint? Attempt { get; set; } - - [JsonPropertyName("body")] - public string? Body { get; set; } - - [JsonPropertyName("grade")] - public string Grade { get; set; } - - [JsonPropertyName("grade_matches_current_submission")] - public bool? GradeMatchesCurrentSubmission { get; set; } - - [JsonPropertyName("preview_url")] - public string PreviewUrl { get; set; } - - [JsonPropertyName("score")] - public decimal? Score { get; set; } - - [JsonPropertyName("submission_comments")] - public IEnumerable? SubmissionComments { get; set; } - - [JsonPropertyName("submission_type")] - public string SubmissionType { get; set; } - - [JsonPropertyName("submitted_at")] - public DateTime? SubmittedAt { get; set; } - - [JsonPropertyName("url")] - public string? Url { get; set; } - - [JsonPropertyName("user_id")] - public ulong? UserId { get; set; } - - [JsonPropertyName("grader_id")] - public long? GraderId { get; set; } // why can this be negative??? - - [JsonPropertyName("graded_at")] - public DateTime? GradedAt { get; set; } - - [JsonPropertyName("user")] - public UserModel? User { get; set; } - - [JsonPropertyName("late")] - public bool? Late { get; set; } - - [JsonPropertyName("assignment_visible")] - public bool? AssignmentVisible { get; set; } - - [JsonPropertyName("excused")] - public bool? Excused { get; set; } - - [JsonPropertyName("missing")] - public bool? Missing { get; set; } - - [JsonPropertyName("late_policy_status")] - public string LatePolicyStatus { get; set; } - - [JsonPropertyName("points_deducted")] - public double? PointsDeducted { get; set; } - - [JsonPropertyName("seconds_late")] - public double? SecondsLate { get; set; } - - [JsonPropertyName("workflow_state")] - public string WorkflowState { get; set; } - - [JsonPropertyName("extra_attempts")] - public uint? ExtraAttempts { get; set; } - - [JsonPropertyName("anonymous_id")] - public string? AnonymousId { get; set; } - - // - // Type = Conference - - [JsonPropertyName("web_conference_id")] - public ulong? WebConferenceId { get; set; } - - // - // Type = Collaboration - - [JsonPropertyName("collaboration_id")] - public ulong? CollaborationId { get; set; } - - // - // Type = AssignmentRequest - - [JsonPropertyName("assignment_request_id")] - public ulong? AssignmentRequestId { get; set; } - - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/ActivityStreamSummaryEntryModel.cs b/Management/Models/CanvasModel/Users/ActivityStreamSummaryEntryModel.cs index 127ca4a..5a8e9ed 100644 --- a/Management/Models/CanvasModel/Users/ActivityStreamSummaryEntryModel.cs +++ b/Management/Models/CanvasModel/Users/ActivityStreamSummaryEntryModel.cs @@ -1,19 +1,18 @@ -namespace Model.Users { - - public class ActivityStreamSummaryEntryModel { - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("unread_count")] - public uint UnreadCount { get; set; } - - [JsonPropertyName("count")] - public uint Count { get; set; } - - - } +namespace CanvasModel.Users; +public class ActivityStreamSummaryEntryModel +{ + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("unread_count")] + public uint UnreadCount { get; set; } + + [JsonPropertyName("count")] + public uint Count { get; set; } + + } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/AnonymousUserDisplayModel.cs b/Management/Models/CanvasModel/Users/AnonymousUserDisplayModel.cs index 7ae6058..8511eda 100644 --- a/Management/Models/CanvasModel/Users/AnonymousUserDisplayModel.cs +++ b/Management/Models/CanvasModel/Users/AnonymousUserDisplayModel.cs @@ -1,15 +1,15 @@ -namespace Model.Users { - public class AnonymousUserDisplayModel { - - [JsonPropertyName("anonymous_id")] - public string AnonymousId { get; set; } - - [JsonPropertyName("avatar_image_url")] - public string AvatarImageUrl { get; set; } +namespace CanvasModel.Users; +public class AnonymousUserDisplayModel +{ + + [JsonPropertyName("anonymous_id")] + public string AnonymousId { get; set; } + + [JsonPropertyName("avatar_image_url")] + public string AvatarImageUrl { get; set; } + - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/AvatarModel.cs b/Management/Models/CanvasModel/Users/AvatarModel.cs index b4ffb90..704cdf6 100644 --- a/Management/Models/CanvasModel/Users/AvatarModel.cs +++ b/Management/Models/CanvasModel/Users/AvatarModel.cs @@ -1,33 +1,33 @@ -namespace Model.Users { - public class AvatarModel { - - [JsonPropertyName("type")] - public string Type { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("token")] - public string Token { get; set; } - - [JsonPropertyName("display_name")] - public string DisplayName { get; set; } - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("content_type")] - public string ContentType { get; set; } - - [JsonPropertyName("filename")] - public string Filename { get; set; } - - [JsonPropertyName("size")] - public ulong Size { get; set; } +namespace CanvasModel.Users; +public class AvatarModel +{ + + [JsonPropertyName("type")] + public string Type { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("token")] + public string Token { get; set; } + + [JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("content_type")] + public string ContentType { get; set; } + + [JsonPropertyName("filename")] + public string Filename { get; set; } + + [JsonPropertyName("size")] + public ulong Size { get; set; } + - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/CourseNicknameModel.cs b/Management/Models/CanvasModel/Users/CourseNicknameModel.cs index 45a9c91..ba7fe8d 100644 --- a/Management/Models/CanvasModel/Users/CourseNicknameModel.cs +++ b/Management/Models/CanvasModel/Users/CourseNicknameModel.cs @@ -1,18 +1,18 @@ -namespace Model.Users { - public class CourseNicknameModel { - - [JsonPropertyName("course_id")] - public ulong CourseId { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("nickname")] - public string Nickname { get; set; } +namespace CanvasModel.Users; +public class CourseNicknameModel +{ + + [JsonPropertyName("course_id")] + public ulong CourseId { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("nickname")] + public string Nickname { get; set; } + - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/PageViewLinksModel.cs b/Management/Models/CanvasModel/Users/PageViewLinksModel.cs index 4b5f031..be3ca9f 100644 --- a/Management/Models/CanvasModel/Users/PageViewLinksModel.cs +++ b/Management/Models/CanvasModel/Users/PageViewLinksModel.cs @@ -1,24 +1,24 @@ -namespace Model.Users { - public class PageViewLinksModel { - - [JsonPropertyName("user")] - public ulong User { get; set; } - - [JsonPropertyName("context")] - public ulong? Context { get; set; } - - [JsonPropertyName("asset")] - public ulong? Asset { get; set; } - - [JsonPropertyName("real_user")] - public ulong? RealUser { get; set; } - - [JsonPropertyName("account")] - public ulong? Account { get; set; } +namespace CanvasModel.Users; +public class PageViewLinksModel +{ + + [JsonPropertyName("user")] + public ulong User { get; set; } + + [JsonPropertyName("context")] + public ulong? Context { get; set; } + + [JsonPropertyName("asset")] + public ulong? Asset { get; set; } + + [JsonPropertyName("real_user")] + public ulong? RealUser { get; set; } + + [JsonPropertyName("account")] + public ulong? Account { get; set; } + - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/PageViewModel.cs b/Management/Models/CanvasModel/Users/PageViewModel.cs index 8bf0a31..9eb8a7b 100644 --- a/Management/Models/CanvasModel/Users/PageViewModel.cs +++ b/Management/Models/CanvasModel/Users/PageViewModel.cs @@ -2,57 +2,57 @@ using System; -namespace Model.Users { - public class PageViewModel { - - [JsonPropertyName("id")] - public string Id { get; set; } - - [JsonPropertyName("app_name")] - public string AppName { get; set; } - - [JsonPropertyName("url")] - public string Url { get; set; } - - [JsonPropertyName("context_type")] - public string ContextType { get; set; } - - [JsonPropertyName("asset_type")] - public string AssetType { get; set; } - - [JsonPropertyName("controller")] - public string Controller { get; set; } - - [JsonPropertyName("action")] - public string Action { get; set; } +namespace CanvasModel.Users; +public class PageViewModel +{ + + [JsonPropertyName("id")] + public string Id { get; set; } + + [JsonPropertyName("app_name")] + public string AppName { get; set; } + + [JsonPropertyName("url")] + public string Url { get; set; } + + [JsonPropertyName("context_type")] + public string ContextType { get; set; } + + [JsonPropertyName("asset_type")] + public string AssetType { get; set; } + + [JsonPropertyName("controller")] + public string Controller { get; set; } + + [JsonPropertyName("action")] + public string Action { get; set; } + + [JsonPropertyName("interaction_seconds")] + public decimal? InteractionSeconds { get; set; } + + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + [JsonPropertyName("user_request")] + public bool? UserRequest { get; set; } + + [JsonPropertyName("render_time")] + public double? RenderTime { get; set; } + + [JsonPropertyName("user_agent")] + public string UserAgent { get; set; } + + [JsonPropertyName("participated")] + public bool? Participated { get; set; } + + [JsonPropertyName("http_method")] + public string HttpMethod { get; set; } + + [JsonPropertyName("remote_ip")] + public string RemoteIp { get; set; } + + [JsonPropertyName("links")] + public PageViewLinksModel Links { get; set; } - [JsonPropertyName("interaction_seconds")] - public decimal? InteractionSeconds { get; set; } - - [JsonPropertyName("created_at")] - public DateTime CreatedAt { get; set; } - - [JsonPropertyName("user_request")] - public bool? UserRequest { get; set; } - - [JsonPropertyName("render_time")] - public double? RenderTime { get; set; } - - [JsonPropertyName("user_agent")] - public string UserAgent { get; set; } - - [JsonPropertyName("participated")] - public bool? Participated { get; set; } - - [JsonPropertyName("http_method")] - public string HttpMethod { get; set; } - - [JsonPropertyName("remote_ip")] - public string RemoteIp { get; set; } - - [JsonPropertyName("links")] - public PageViewLinksModel Links { get; set; } - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/ProfileModel.cs b/Management/Models/CanvasModel/Users/ProfileModel.cs index f0a03f9..8729342 100644 --- a/Management/Models/CanvasModel/Users/ProfileModel.cs +++ b/Management/Models/CanvasModel/Users/ProfileModel.cs @@ -1,51 +1,51 @@ -namespace Model.Users { - public class ProfileModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("short_name")] - public string ShortName { get; set; } - - [JsonPropertyName("sortable_name")] - public string SortableName { get; set; } - - [JsonPropertyName("title")] - public string Title { get; set; } - - [JsonPropertyName("bio")] - public string Bio { get; set; } - - [JsonPropertyName("primary_email")] - public string PrimaryEmail { get; set; } - - [JsonPropertyName("login_id")] - public string LoginId { get; set; } - - [JsonPropertyName("sis_user_id")] - public string SisUserId { get; set; } - - [JsonPropertyName("lti_user_id")] - public string LtiUserId { get; set; } - - [JsonPropertyName("avatar_url")] - public string AvatarUrl { get; set; } - - [JsonPropertyName("calendar")] - public object Calendar { get; set; } - - [JsonPropertyName("time_zone")] - public string TimeZone { get; set; } - - [JsonPropertyName("locale")] - public string Locale { get; set; } +namespace CanvasModel.Users; +public class ProfileModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("short_name")] + public string ShortName { get; set; } + + [JsonPropertyName("sortable_name")] + public string SortableName { get; set; } + + [JsonPropertyName("title")] + public string Title { get; set; } + + [JsonPropertyName("bio")] + public string Bio { get; set; } + + [JsonPropertyName("primary_email")] + public string PrimaryEmail { get; set; } + + [JsonPropertyName("login_id")] + public string LoginId { get; set; } + + [JsonPropertyName("sis_user_id")] + public string SisUserId { get; set; } + + [JsonPropertyName("lti_user_id")] + public string LtiUserId { get; set; } + + [JsonPropertyName("avatar_url")] + public string AvatarUrl { get; set; } + + [JsonPropertyName("calendar")] + public object Calendar { get; set; } + + [JsonPropertyName("time_zone")] + public string TimeZone { get; set; } + + [JsonPropertyName("locale")] + public string Locale { get; set; } + - - } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/ShortUserModel.cs b/Management/Models/CanvasModel/Users/ShortUserModel.cs index 224d130..5ed6307 100644 --- a/Management/Models/CanvasModel/Users/ShortUserModel.cs +++ b/Management/Models/CanvasModel/Users/ShortUserModel.cs @@ -1,19 +1,18 @@ -namespace Model.Users { - - public class ShortUserModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("display_name")] - public string DisplayName { get; set; } - - [JsonPropertyName("avatar_image_url")] - public string AvatarImageUrl { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } - } +namespace CanvasModel.Users; +public class ShortUserModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("display_name")] + public string DisplayName { get; set; } + + [JsonPropertyName("avatar_image_url")] + public string AvatarImageUrl { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } } diff --git a/Management/Models/CanvasModel/Users/UserDisplayModel.cs b/Management/Models/CanvasModel/Users/UserDisplayModel.cs index c6db990..1053552 100644 --- a/Management/Models/CanvasModel/Users/UserDisplayModel.cs +++ b/Management/Models/CanvasModel/Users/UserDisplayModel.cs @@ -2,29 +2,28 @@ -namespace Model.Users { - - public class UserDisplayModel { - - [JsonPropertyName("id")] - public ulong? Id { get; set; } - - [JsonPropertyName("short_name")] - public string? ShortName { get; set; } - - [JsonPropertyName("display_name")] - public string? DisplayName { get; set; } - - [JsonPropertyName("avatar_image_url")] - public string AvatarImageUrl { get; set; } - - [JsonPropertyName("html_url")] - public string HtmlUrl { get; set; } +namespace CanvasModel.Users; +public class UserDisplayModel +{ - [JsonPropertyName("pronouns")] - public string? Pronouns { get; set; } - - [JsonPropertyName("anonymous_id")] - public string AnonymousId { get; set; } - } + [JsonPropertyName("id")] + public ulong? Id { get; set; } + + [JsonPropertyName("short_name")] + public string? ShortName { get; set; } + + [JsonPropertyName("display_name")] + public string? DisplayName { get; set; } + + [JsonPropertyName("avatar_image_url")] + public string AvatarImageUrl { get; set; } + + [JsonPropertyName("html_url")] + public string HtmlUrl { get; set; } + + [JsonPropertyName("pronouns")] + public string? Pronouns { get; set; } + + [JsonPropertyName("anonymous_id")] + public string AnonymousId { get; set; } } \ No newline at end of file diff --git a/Management/Models/CanvasModel/Users/UserModel.cs b/Management/Models/CanvasModel/Users/UserModel.cs index de03f16..fe97790 100644 --- a/Management/Models/CanvasModel/Users/UserModel.cs +++ b/Management/Models/CanvasModel/Users/UserModel.cs @@ -1,63 +1,59 @@ -using System; -using System.Collections.Generic; +using CanvasModel.Enrollments; + +namespace CanvasModel.Users; +public class UserModel +{ + + [JsonPropertyName("id")] + public ulong Id { get; set; } + + [JsonPropertyName("name")] + public string Name { get; set; } + + [JsonPropertyName("sortable_name")] + public string SortableName { get; set; } + + [JsonPropertyName("short_name")] + public string ShortName { get; set; } + + [JsonPropertyName("sis_user_id")] + public string SisUserId { get; set; } + + [JsonPropertyName("sis_import_id")] + public ulong? SisImportId { get; set; } + + [JsonPropertyName("integration_id")] + public string IntegrationId { get; set; } + + [JsonPropertyName("login_id")] + public string LoginId { get; set; } + + [JsonPropertyName("avatar_url")] + public string AvatarUrl { get; set; } + + [JsonPropertyName("enrollments")] + public List Enrollments { get; set; } + + [JsonPropertyName("email")] + public string Email { get; set; } + + [JsonPropertyName("locale")] + public string Locale { get; set; } + + [JsonPropertyName("effective_locale")] + public string EffectiveLocale { get; set; } + + [JsonPropertyName("last_login")] + public DateTime? LastLogin { get; set; } + + [JsonPropertyName("time_zone")] + public string TimeZone { get; set; } + + [JsonPropertyName("bio")] + public string Bio { get; set; } + + [JsonPropertyName("permissions")] + public Dictionary Permissions { get; set; } -using Model.Enrollments; - -namespace Model.Users { - public class UserModel { - - [JsonPropertyName("id")] - public ulong Id { get; set; } - - [JsonPropertyName("name")] - public string Name { get; set; } - - [JsonPropertyName("sortable_name")] - public string SortableName { get; set; } - - [JsonPropertyName("short_name")] - public string ShortName { get; set; } - - [JsonPropertyName("sis_user_id")] - public string SisUserId { get; set; } - - [JsonPropertyName("sis_import_id")] - public ulong? SisImportId { get; set; } - - [JsonPropertyName("integration_id")] - public string IntegrationId { get; set; } - - [JsonPropertyName("login_id")] - public string LoginId { get; set; } - - [JsonPropertyName("avatar_url")] - public string AvatarUrl { get; set; } - - [JsonPropertyName("enrollments")] - public List Enrollments { get; set; } - - [JsonPropertyName("email")] - public string Email { get; set; } - - [JsonPropertyName("locale")] - public string Locale { get; set; } - - [JsonPropertyName("effective_locale")] - public string EffectiveLocale { get; set; } - - [JsonPropertyName("last_login")] - public DateTime? LastLogin { get; set; } - - [JsonPropertyName("time_zone")] - public string TimeZone { get; set; } - - [JsonPropertyName("bio")] - public string Bio { get; set; } - - [JsonPropertyName("permissions")] - public Dictionary Permissions { get; set; } - - - } } \ No newline at end of file