mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
reformatted models
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
|
||||
public struct CalendarLinkModel {
|
||||
[JsonPropertyName("ics")]
|
||||
public string Ics { get; set; }
|
||||
}
|
||||
namespace CanvasModel.Courses;
|
||||
public struct CalendarLinkModel
|
||||
{
|
||||
[JsonPropertyName("ics")]
|
||||
public string Ics { get; set; }
|
||||
}
|
||||
@@ -2,151 +2,150 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
using Model.Enrollments;
|
||||
using CanvasModel.Enrollments;
|
||||
|
||||
namespace Model.Courses {
|
||||
|
||||
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<EnrollmentModel>? 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<string, bool> 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<string, bool>? BlueprintRestrictions { get; set; }
|
||||
namespace CanvasModel.Courses;
|
||||
public class CourseModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("blueprint_restrictions_by_object_type")]
|
||||
public Dictionary<string, Dictionary<string, bool>>? 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<EnrollmentModel>? 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<string, bool> 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<string, bool>? BlueprintRestrictions { get; set; }
|
||||
|
||||
[JsonPropertyName("blueprint_restrictions_by_object_type")]
|
||||
public Dictionary<string, Dictionary<string, bool>>? BlueprintRestrictionsByObjectType { get; set; }
|
||||
}
|
||||
@@ -2,20 +2,19 @@ using System;
|
||||
|
||||
|
||||
|
||||
namespace Model.Courses {
|
||||
|
||||
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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user