reformatted models

This commit is contained in:
2023-01-04 17:22:36 -07:00
parent c8175971b7
commit c28230691e
122 changed files with 3812 additions and 4005 deletions

View File

@@ -0,0 +1,10 @@
namespace Management.Test;
public class SemesterPlannerTests
{
[Test]
public void TestCanCreatePlannerFromCanvasSemester()
{
var
}
}

View File

@@ -0,0 +1,4 @@
public class SemesterPlanner
{
}

View File

@@ -1,9 +1,9 @@
namespace Model.Accounts { namespace CanvasModel.Accounts;
public class AccountModel
public class AccountModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -44,4 +44,3 @@ namespace Model.Accounts {
[JsonPropertyName("workflow_state")] [JsonPropertyName("workflow_state")]
public string WorkflowState { get; set; } public string WorkflowState { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Accounts { namespace CanvasModel.Accounts;
public class HelpLinkModel
public class HelpLinkModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@@ -20,4 +20,3 @@ namespace Model.Accounts {
[JsonPropertyName("available_to")] [JsonPropertyName("available_to")]
public IEnumerable<string> AvailableTo { get; set; } public IEnumerable<string> AvailableTo { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Accounts { namespace CanvasModel.Accounts;
public class HelpLinksModel
public class HelpLinksModel { {
[JsonPropertyName("help_link_name")] [JsonPropertyName("help_link_name")]
public string HelpLinkName { get; set; } public string HelpLinkName { get; set; }
@@ -17,4 +17,3 @@ namespace Model.Accounts {
[JsonPropertyName("default_help_links")] [JsonPropertyName("default_help_links")]
public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; } public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Accounts { namespace CanvasModel.Accounts;
public class TermsOfServiceModel
public class TermsOfServiceModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -19,4 +19,3 @@ namespace Model.Accounts {
[JsonPropertyName("content")] [JsonPropertyName("content")]
public string Content { get; set; } public string Content { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
using System; using System;
namespace Model.Analytics { namespace CanvasModel.Analytics;
public class CourseAssignmentSummaryModel
public class CourseAssignmentSummaryModel { {
[JsonPropertyName("assignment_id")] [JsonPropertyName("assignment_id")]
public ulong AssignmentId { get; set; } public ulong AssignmentId { get; set; }
@@ -44,4 +44,3 @@ namespace Model.Analytics {
[JsonPropertyName("tardiness_breakdown")] [JsonPropertyName("tardiness_breakdown")]
public TardinessModel TardinessBreakdown { get; set; } public TardinessModel TardinessBreakdown { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Analytics { namespace CanvasModel.Analytics;
public class CourseStudentSummaryModel
public class CourseStudentSummaryModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -28,4 +28,3 @@ namespace Model.Analytics {
[JsonPropertyName("tardiness_breakdown")] [JsonPropertyName("tardiness_breakdown")]
public TardinessModel TardinessBreakdown { get; set; } public TardinessModel TardinessBreakdown { get; set; }
} }
}

View File

@@ -2,13 +2,13 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Analytics { namespace CanvasModel.Analytics;
// The format of this model in the documentation is COMPLETELY WRONG. Each property is an array of objects, not an object, // 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 // 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. // {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. // The primary keys (date and category) are thankfully discrete, so we can trivially build the dictionary ourselves.
public class DepartmentParticipationModel { public class DepartmentParticipationModel
{
[JsonPropertyName("by_date")] [JsonPropertyName("by_date")]
public IEnumerable<DepartmentParticipationDateEntryModel> ByDate { get; set; } public IEnumerable<DepartmentParticipationDateEntryModel> ByDate { get; set; }
@@ -17,7 +17,8 @@ namespace Model.Analytics {
public IEnumerable<DepartmentParticipationCategoryEntryModel> ByCategory { get; set; } public IEnumerable<DepartmentParticipationCategoryEntryModel> ByCategory { get; set; }
} }
public class DepartmentParticipationDateEntryModel { public class DepartmentParticipationDateEntryModel
{
[JsonPropertyName("date")] [JsonPropertyName("date")]
public DateTime Date { get; set; } public DateTime Date { get; set; }
@@ -29,7 +30,8 @@ namespace Model.Analytics {
public ulong Participations { get; set; } public ulong Participations { get; set; }
} }
public class DepartmentParticipationCategoryEntryModel { public class DepartmentParticipationCategoryEntryModel
{
[JsonPropertyName("category")] [JsonPropertyName("category")]
public string Category { get; set; } public string Category { get; set; }
@@ -37,4 +39,3 @@ namespace Model.Analytics {
[JsonPropertyName("views")] [JsonPropertyName("views")]
public ulong Views { get; set; } public ulong Views { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Analytics { namespace CanvasModel.Analytics;
public class DepartmentStatisticsModel
public class DepartmentStatisticsModel { {
[JsonPropertyName("courses")] [JsonPropertyName("courses")]
public ulong Courses { get; set; } public ulong Courses { get; set; }
@@ -28,4 +28,3 @@ namespace Model.Analytics {
[JsonPropertyName("assignments")] [JsonPropertyName("assignments")]
public ulong Assignments { get; set; } public ulong Assignments { get; set; }
} }
}

View File

@@ -1,7 +1,8 @@
namespace Model.Analytics { namespace CanvasModel.Analytics;
public class TardinessModel { public class TardinessModel
{
[JsonPropertyName("missing")] [JsonPropertyName("missing")]
public decimal Missing { get; set; } public decimal Missing { get; set; }
@@ -18,4 +19,3 @@ namespace Model.Analytics {
[JsonPropertyName("total")] [JsonPropertyName("total")]
public decimal Total { get; set; } public decimal Total { get; set; }
} }
}

View File

@@ -2,9 +2,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Analytics { namespace CanvasModel.Analytics;
public struct UserAssignmentSubmissionDataModel
public struct UserAssignmentSubmissionDataModel { {
[JsonPropertyName("submitted_at")] [JsonPropertyName("submitted_at")]
public DateTime? SubmittedAt { get; set; } public DateTime? SubmittedAt { get; set; }
@@ -13,7 +13,8 @@ namespace Model.Analytics {
public double? Score { get; set; } public double? Score { get; set; }
} }
public class UserAssignmentDataModel { public class UserAssignmentDataModel
{
[JsonPropertyName("assignment_id")] [JsonPropertyName("assignment_id")]
public ulong AssignmentId { get; set; } public ulong AssignmentId { get; set; }
@@ -54,4 +55,3 @@ namespace Model.Analytics {
[JsonPropertyName("submission")] [JsonPropertyName("submission")]
public UserAssignmentSubmissionDataModel? Submission { get; set; } public UserAssignmentSubmissionDataModel? Submission { get; set; }
} }
}

View File

@@ -2,9 +2,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Analytics { namespace CanvasModel.Analytics;
public struct UserParticipationModel
public struct UserParticipationModel { {
[JsonPropertyName("page_views")] [JsonPropertyName("page_views")]
public Dictionary<DateTime, ulong> PageViews { get; set; } public Dictionary<DateTime, ulong> PageViews { get; set; }
@@ -13,7 +13,8 @@ namespace Model.Analytics {
public IEnumerable<UserParticipationEventModel> Participations { get; set; } public IEnumerable<UserParticipationEventModel> Participations { get; set; }
} }
public struct UserParticipationEventModel { public struct UserParticipationEventModel
{
[JsonPropertyName("created_at")] [JsonPropertyName("created_at")]
public DateTime CreatedAt { get; set; } public DateTime CreatedAt { get; set; }
@@ -21,4 +22,3 @@ namespace Model.Analytics {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
} }
}

View File

@@ -2,11 +2,12 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Calendar; using CanvasModel.Calendar;
namespace Model.Appointments { namespace CanvasModel.Appointments;
public class AppointmentGroupModel { public class AppointmentGroupModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -83,4 +84,4 @@ namespace Model.Appointments {
[JsonPropertyName("updated_at")] [JsonPropertyName("updated_at")]
public DateTime UpdatedAt { get; set; } public DateTime UpdatedAt { get; set; }
} }
}

View File

@@ -1,9 +1,10 @@
using System; using System;
namespace Model.Appointments { namespace CanvasModel.Appointments;
public class AppointmentModel { public class AppointmentModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -14,4 +15,4 @@ namespace Model.Appointments {
[JsonPropertyName("end_at")] [JsonPropertyName("end_at")]
public DateTime EndAt { get; set; } public DateTime EndAt { get; set; }
} }
}

View File

@@ -1,8 +1,7 @@
using System; using System;
namespace Model.Assignments namespace CanvasModel.Assignments;
{
public class AssignmentDateModel public class AssignmentDateModel
{ {
@@ -25,4 +24,3 @@ namespace Model.Assignments
[JsonPropertyName("lock_at")] [JsonPropertyName("lock_at")]
public DateTime? LockAt { get; set; } public DateTime? LockAt { get; set; }
} }
}

View File

@@ -2,12 +2,12 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Discussions; using CanvasModel.Discussions;
using Model.Submissions; using CanvasModel.Submissions;
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class AssignmentModel
public class AssignmentModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -210,4 +210,3 @@ namespace Model.Assignments {
[JsonPropertyName("allowed_attempts")] [JsonPropertyName("allowed_attempts")]
public int AllowedAttempts { get; set; } public int AllowedAttempts { get; set; }
} }
}

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class AssignmentOverrideModel
public class AssignmentOverrideModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -40,4 +40,3 @@ namespace Model.Assignments {
[JsonPropertyName("lock_at")] [JsonPropertyName("lock_at")]
public DateTime? LockAt { get; set; } public DateTime? LockAt { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class ExternalToolTagAttributesModel
public class ExternalToolTagAttributesModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -13,4 +13,3 @@ namespace Model.Assignments {
[JsonPropertyName("resource_link_id")] [JsonPropertyName("resource_link_id")]
public string ResourceLinkId { get; set; } public string ResourceLinkId { get; set; }
} }
}

View File

@@ -2,9 +2,9 @@ using System;
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class LockInfoModel
public class LockInfoModel { {
[JsonPropertyName("asset_string")] [JsonPropertyName("asset_string")]
public string AssetString { get; set; } public string AssetString { get; set; }
@@ -21,4 +21,3 @@ namespace Model.Assignments {
[JsonPropertyName("manually_locked")] [JsonPropertyName("manually_locked")]
public bool? ManuallyLocked { get; set; } public bool? ManuallyLocked { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class NeedsGradingCountModel
public class NeedsGradingCountModel { {
[JsonPropertyName("section_id")] [JsonPropertyName("section_id")]
public string SectionId { get; set; } public string SectionId { get; set; }
@@ -10,4 +10,3 @@ namespace Model.Assignments {
[JsonPropertyName("needs_grading_count")] [JsonPropertyName("needs_grading_count")]
public uint NeedsGradingCount { get; set; } public uint NeedsGradingCount { get; set; }
} }
}

View File

@@ -2,8 +2,7 @@ using System.Collections.Generic;
namespace Model.Assignments namespace CanvasModel.Assignments;
{
public class RubricCriteriaModel public class RubricCriteriaModel
{ {
@@ -35,4 +34,3 @@ namespace Model.Assignments
[JsonPropertyName("ignore_for_scoring")] [JsonPropertyName("ignore_for_scoring")]
public bool? IgnoreForScoring { get; set; } public bool? IgnoreForScoring { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class RubricRatingModel
public class RubricRatingModel { {
[JsonPropertyName("points")] [JsonPropertyName("points")]
public double Points { get; set; } public double Points { get; set; }
@@ -16,4 +16,3 @@ namespace Model.Assignments {
[JsonPropertyName("long_description")] [JsonPropertyName("long_description")]
public string LongDescription { get; set; } public string LongDescription { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Assignments { namespace CanvasModel.Assignments;
public class TurnitinSettingsModel
public class TurnitinSettingsModel { {
[JsonPropertyName("originality_report_visibility")] [JsonPropertyName("originality_report_visibility")]
public string OriginalityReportVisibility { get; set; } public string OriginalityReportVisibility { get; set; }
@@ -28,4 +28,3 @@ namespace Model.Assignments {
[JsonPropertyName("exclude_small_matches_value")] [JsonPropertyName("exclude_small_matches_value")]
public uint? ExcludeSmallMatchesValue { get; set; } public uint? ExcludeSmallMatchesValue { get; set; }
} }
}

View File

@@ -1,10 +1,10 @@
using System; using System;
namespace Model.Authentications { namespace CanvasModel.Authentications;
// NOTE: the api documentation for this model is incorrect // NOTE: the api documentation for this model is incorrect
public class AuthenticationEventModel { public class AuthenticationEventModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@@ -19,7 +19,8 @@ namespace Model.Authentications {
public AuthenticationEventLinksModel Links { get; set; } public AuthenticationEventLinksModel Links { get; set; }
} }
public struct AuthenticationEventLinksModel { public struct AuthenticationEventLinksModel
{
[JsonPropertyName("login")] [JsonPropertyName("login")]
public ulong Login { get; set; } public ulong Login { get; set; }
@@ -33,4 +34,3 @@ namespace Model.Authentications {
[JsonPropertyName("page_view")] [JsonPropertyName("page_view")]
public ulong? PageView { get; set; } public ulong? PageView { get; set; }
} }
}

View File

@@ -1,11 +1,11 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Authentications { namespace CanvasModel.Authentications;
public struct AuthenticationEventsResponseModel { public struct AuthenticationEventsResponseModel
{
[JsonPropertyName("events")] [JsonPropertyName("events")]
public IEnumerable<AuthenticationEventModel> Events { get; set; } public IEnumerable<AuthenticationEventModel> Events { get; set; }
} }
}

View File

@@ -1,5 +1,5 @@
namespace Model.Calendar namespace CanvasModel.Calendar;
{
public record AssignmentEventModel public record AssignmentEventModel
{ {
@@ -51,4 +51,3 @@ namespace Model.Calendar
// "important_dates": true // "important_dates": true
} }
}

View File

@@ -2,19 +2,19 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Assignments; using CanvasModel.Assignments;
using Model.Groups; using CanvasModel.Groups;
using Model.Users; using CanvasModel.Users;
namespace Model.Calendar namespace CanvasModel.Calendar;
{
/* /*
* This class combines the fields of normal, reservation, time-slot, and assignment calendar events. * 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. * Concrete structure classes will specialize to these types and inherit from a common base.
*/ */
public record CalendarEventModel { public record CalendarEventModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -124,4 +124,3 @@ namespace Model.Calendar
[JsonPropertyName("participants_per_appointment")] [JsonPropertyName("participants_per_appointment")]
public uint? ParticipantsPerAppointment { get; set; } public uint? ParticipantsPerAppointment { get; set; }
} }
}

View File

@@ -1,10 +1,9 @@
namespace Model.ContentShares { namespace CanvasModel.ContentShares;
public struct ContentExportIdModel
public struct ContentExportIdModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
} }
}

View File

@@ -2,12 +2,12 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Courses; using CanvasModel.Courses;
using Model.Users; using CanvasModel.Users;
namespace Model.ContentShares { namespace CanvasModel.ContentShares;
public class ContentShareModel
public class ContentShareModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -42,4 +42,3 @@ namespace Model.ContentShares {
[JsonPropertyName("content_export")] [JsonPropertyName("content_export")]
public ContentExportIdModel? ContentExport { get; set; } public ContentExportIdModel? ContentExport { get; set; }
} }
}

View File

@@ -2,12 +2,12 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Discussions; using CanvasModel.Discussions;
using Model.Submissions; using CanvasModel.Submissions;
namespace Model.Conversations { namespace CanvasModel.Conversations;
public class ConversationMessageModel
public class ConversationMessageModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -33,4 +33,3 @@ namespace Model.Conversations {
[JsonPropertyName("attachments")] [JsonPropertyName("attachments")]
public IEnumerable<FileAttachmentModel> Attachments { get; set; } public IEnumerable<FileAttachmentModel> Attachments { get; set; }
} }
}

View File

@@ -3,9 +3,9 @@ using System.Collections.Generic;
namespace Model.Conversations { namespace CanvasModel.Conversations;
public class ConversationModel
public class ConversationModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -55,4 +55,3 @@ namespace Model.Conversations {
[JsonPropertyName("context_name")] [JsonPropertyName("context_name")]
public string ContextName { get; set; } public string ContextName { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
namespace Model.Conversations { namespace CanvasModel.Conversations;
public class ConversationParticipantModel
public class ConversationParticipantModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -17,4 +17,3 @@ namespace Model.Conversations {
[JsonPropertyName("avatar_url")] [JsonPropertyName("avatar_url")]
public string? AvatarUrl { get; set; } public string? AvatarUrl { get; set; }
} }
}

View File

@@ -1,12 +1,11 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Conversations { namespace CanvasModel.Conversations;
public class DetailedConversationModel : ConversationModel
public class DetailedConversationModel : ConversationModel { {
[JsonPropertyName("messages")] [JsonPropertyName("messages")]
public IEnumerable<ConversationMessageModel> Messages { get; set; } public IEnumerable<ConversationMessageModel> Messages { get; set; }
} }
}

View File

@@ -1,9 +1,8 @@
namespace Model.Courses { namespace CanvasModel.Courses;
public struct CalendarLinkModel
public struct CalendarLinkModel { {
[JsonPropertyName("ics")] [JsonPropertyName("ics")]
public string Ics { get; set; } public string Ics { get; set; }
} }
}

View File

@@ -2,11 +2,11 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Enrollments; using CanvasModel.Enrollments;
namespace Model.Courses { namespace CanvasModel.Courses;
public class CourseModel
public class CourseModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -149,4 +149,3 @@ namespace Model.Courses {
[JsonPropertyName("blueprint_restrictions_by_object_type")] [JsonPropertyName("blueprint_restrictions_by_object_type")]
public Dictionary<string, Dictionary<string, bool>>? BlueprintRestrictionsByObjectType { get; set; } public Dictionary<string, Dictionary<string, bool>>? BlueprintRestrictionsByObjectType { get; set; }
} }
}

View File

@@ -2,9 +2,9 @@ using System;
namespace Model.Courses { namespace CanvasModel.Courses;
public class CourseProgressModel
public class CourseProgressModel { {
[JsonPropertyName("requirement_count")] [JsonPropertyName("requirement_count")]
public uint? RequirementCount { get; set; } public uint? RequirementCount { get; set; }
@@ -18,4 +18,3 @@ namespace Model.Courses {
[JsonPropertyName("completed_at")] [JsonPropertyName("completed_at")]
public DateTime? CompletedAt { get; set; } public DateTime? CompletedAt { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Courses { namespace CanvasModel.Courses;
public class CourseSettingsModel
public class CourseSettingsModel { {
[JsonPropertyName("allow_final_grade_override")] [JsonPropertyName("allow_final_grade_override")]
public bool AllowFinalGradeOverride { get; set; } public bool AllowFinalGradeOverride { get; set; }
@@ -46,4 +46,3 @@ namespace Model.Courses {
[JsonPropertyName("home_page_announcements_limit")] [JsonPropertyName("home_page_announcements_limit")]
public long HomePageAnnouncementLimit { get; set; } public long HomePageAnnouncementLimit { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Courses { namespace CanvasModel.Courses;
public class ShortCourseModel
public class ShortCourseModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -10,4 +10,3 @@ namespace Model.Courses {
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string Name { get; set; }
} }
}

View File

@@ -1,9 +1,7 @@
using System;
namespace CanvasModel.Courses;
namespace Model.Courses { public class TermModel
{
public class TermModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -17,4 +15,3 @@ namespace Model.Courses {
[JsonPropertyName("end_at")] [JsonPropertyName("end_at")]
public DateTime? EndAt { get; set; } public DateTime? EndAt { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.CustomGradebookColumns { namespace CanvasModel.CustomGradebookColumns;
public struct ColumnDatumModel
public struct ColumnDatumModel { {
[JsonPropertyName("content")] [JsonPropertyName("content")]
public string Content { get; set; } public string Content { get; set; }
@@ -10,4 +10,3 @@ namespace Model.CustomGradebookColumns {
[JsonPropertyName("user_id")] [JsonPropertyName("user_id")]
public ulong UserId { get; set; } public ulong UserId { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.CustomGradebookColumns { namespace CanvasModel.CustomGradebookColumns;
public class CustomColumnModel
public class CustomColumnModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -22,4 +22,3 @@ namespace Model.CustomGradebookColumns {
[JsonPropertyName("read_only")] [JsonPropertyName("read_only")]
public bool? ReadOnly { get; set; } public bool? ReadOnly { get; set; }
} }
}

View File

@@ -1,12 +1,12 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using Model.Users; using CanvasModel.Users;
namespace Model.Discussions { namespace CanvasModel.Discussions;
public class DiscussionTopicModel
public class DiscussionTopicModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -113,4 +113,3 @@ namespace Model.Discussions {
[JsonPropertyName("author")] [JsonPropertyName("author")]
public UserDisplayModel Author { get; set; } public UserDisplayModel Author { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
namespace Model.Discussions { namespace CanvasModel.Discussions;
public class FileAttachmentModel
public class FileAttachmentModel { {
[JsonPropertyName("content_type")] [JsonPropertyName("content_type")]
public string ContentType { get; set; } public string ContentType { get; set; }
@@ -19,4 +19,3 @@ namespace Model.Discussions {
} }
}

View File

@@ -4,9 +4,9 @@ using System.Collections.Generic;
namespace Model.Discussions { namespace CanvasModel.Discussions;
public class TopicEntryModel
public class TopicEntryModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -46,4 +46,3 @@ namespace Model.Discussions {
} }
}

View File

@@ -2,9 +2,9 @@ using System;
namespace Model.Discussions { namespace CanvasModel.Discussions;
public class TopicReplyModel
public class TopicReplyModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -32,4 +32,3 @@ namespace Model.Discussions {
} }
}

View File

@@ -2,8 +2,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.EnrollmentTerms { namespace CanvasModel.EnrollmentTerms;
public class EnrollmentTermModel { public class EnrollmentTermModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -32,11 +33,11 @@ namespace Model.EnrollmentTerms {
public Dictionary<string, EnrollmentTermDateOverrideModel> Overrides { get; set; } public Dictionary<string, EnrollmentTermDateOverrideModel> Overrides { get; set; }
} }
public struct EnrollmentTermDateOverrideModel { public struct EnrollmentTermDateOverrideModel
{
[JsonPropertyName("start_at")] [JsonPropertyName("start_at")]
public DateTime? StartAt { get; set; } public DateTime? StartAt { get; set; }
[JsonPropertyName("end_at")] [JsonPropertyName("end_at")]
public DateTime? EndAt { get; set; } public DateTime? EndAt { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.EnrollmentTerms { namespace CanvasModel.EnrollmentTerms;
public struct RedundantEnrollmentTermsResponse { public struct RedundantEnrollmentTermsResponse
{
[JsonPropertyName("enrollment_terms")] [JsonPropertyName("enrollment_terms")]
public IEnumerable<EnrollmentTermModel> EnrollmentTerms { get; set; } public IEnumerable<EnrollmentTermModel> EnrollmentTerms { get; set; }
} }
}

View File

@@ -1,11 +1,8 @@
using System; using CanvasModel.Users;
namespace CanvasModel.Enrollments;
using Model.Users; public class EnrollmentModel
{
namespace Model.Enrollments {
public class EnrollmentModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -136,4 +133,3 @@ namespace Model.Enrollments {
[JsonPropertyName("current_period_unposted_final_grade")] [JsonPropertyName("current_period_unposted_final_grade")]
public string? CurrentPeriodUnpostedFinalGrade { get; set; } public string? CurrentPeriodUnpostedFinalGrade { get; set; }
} }
}

View File

@@ -1,9 +1,9 @@
namespace Model.Enrollments { namespace CanvasModel.Enrollments;
public class GradeModel
public class GradeModel { {
[JsonPropertyName("html_url")] [JsonPropertyName("html_url")]
public string? HtmlUrl { get; set; } public string? HtmlUrl { get; set; }
@@ -32,4 +32,3 @@ namespace Model.Enrollments {
[JsonPropertyName("unposted_final_score")] [JsonPropertyName("unposted_final_score")]
public string? UnpostedFinalScore { get; set; } public string? UnpostedFinalScore { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class AccountNavigationModel
public class AccountNavigationModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -22,4 +22,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("display_type")] [JsonPropertyName("display_type")]
public string DisplayType { get; set; } public string DisplayType { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class CourseHomeSubNavigationModel
public class CourseHomeSubNavigationModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("icon_url")] [JsonPropertyName("icon_url")]
public string IconUrl { get; set; } public string IconUrl { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class CourseNavigationModel
public class CourseNavigationModel { {
[JsonPropertyName("enabled")] [JsonPropertyName("enabled")]
public bool? Enabled { get; set; } public bool? Enabled { get; set; }
@@ -22,4 +22,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("display_type")] [JsonPropertyName("display_type")]
public string DisplayType { get; set; } public string DisplayType { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class EditorButtonModel
public class EditorButtonModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -22,4 +22,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("message_type")] [JsonPropertyName("message_type")]
public string MessageType { get; set; } public string MessageType { get; set; }
} }
}

View File

@@ -2,9 +2,9 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class ExternalToolModel
public class ExternalToolModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -72,4 +72,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("not_selectable")] [JsonPropertyName("not_selectable")]
public bool? NotSelectable { get; set; } public bool? NotSelectable { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class HomeworkSubmissionModel
public class HomeworkSubmissionModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("message_type")] [JsonPropertyName("message_type")]
public string MessageType { get; set; } public string MessageType { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class LinkSelectionModel
public class LinkSelectionModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("message_type")] [JsonPropertyName("message_type")]
public string MessageType { get; set; } public string MessageType { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class MigrationSelectionModel
public class MigrationSelectionModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -13,4 +13,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("message_type")] [JsonPropertyName("message_type")]
public string MessageType { get; set; } public string MessageType { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class ResourceSelectionModel
public class ResourceSelectionModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -19,4 +19,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("selection_height")] [JsonPropertyName("selection_height")]
public uint? SelectionHeight { get; set; } public uint? SelectionHeight { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class ToolConfigurationModel
public class ToolConfigurationModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("prefer_sis_email")] [JsonPropertyName("prefer_sis_email")]
public bool? PreferSisEmail { get; set; } public bool? PreferSisEmail { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ExternalTools { namespace CanvasModel.ExternalTools;
public class UserNavigationModel
public class UserNavigationModel { {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ExternalTools {
[JsonPropertyName("visibility")] [JsonPropertyName("visibility")]
public string Visibility { get; set; } public string Visibility { get; set; }
} }
}

View File

@@ -1,8 +1,9 @@
using System; using System;
namespace Model.Files { namespace CanvasModel.Files;
public class CanvasFileModel { public class CanvasFileModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -74,4 +75,3 @@ namespace Model.Files {
[JsonPropertyName("preview_url")] [JsonPropertyName("preview_url")]
public string PreviewUrl { get; set; } public string PreviewUrl { get; set; }
} }
}

View File

@@ -1,8 +1,9 @@
using System; using System;
namespace Model.Files { namespace CanvasModel.Files;
public class FolderModel { public class FolderModel
{
[JsonPropertyName("context_type")] [JsonPropertyName("context_type")]
public string ContextType { get; set; } public string ContextType { get; set; }
@@ -64,4 +65,3 @@ namespace Model.Files {
[JsonPropertyName("for_submissions")] [JsonPropertyName("for_submissions")]
public bool? ForSubmissions { get; set; } public bool? ForSubmissions { get; set; }
} }
}

View File

@@ -1,7 +1,8 @@
namespace Model.Files { namespace CanvasModel.Files;
public class LicenseModel { public class LicenseModel
{
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@@ -12,4 +13,3 @@ namespace Model.Files {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
} }
}

View File

@@ -1,8 +1,9 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace Model.Files { namespace CanvasModel.Files;
public class UsageRightsModel { public class UsageRightsModel
{
[JsonPropertyName("legal_copyright")] [JsonPropertyName("legal_copyright")]
public string LegalCopyright { get; set; } public string LegalCopyright { get; set; }
@@ -22,4 +23,3 @@ namespace Model.Files {
[JsonPropertyName("file_ids")] [JsonPropertyName("file_ids")]
public IEnumerable<ulong> FileIds { get; set; } public IEnumerable<ulong> FileIds { get; set; }
} }
}

View File

@@ -1,9 +1,7 @@
namespace CanvasModel.GradeChangelog;
public class GradeChangeEventLinksModel
namespace Model.GradeChangelog { {
public class GradeChangeEventLinksModel {
[JsonPropertyName("assignment")] [JsonPropertyName("assignment")]
public ulong Assignment { get; set; } public ulong Assignment { get; set; }
@@ -20,4 +18,3 @@ namespace Model.GradeChangelog {
[JsonPropertyName("page_view")] [JsonPropertyName("page_view")]
public string? PageView { get; set; } public string? PageView { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System;
namespace CanvasModel.GradeChangelog;
public class GradeChangeEventModel
namespace Model.GradeChangelog { {
public class GradeChangeEventModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@@ -39,4 +36,3 @@ namespace Model.GradeChangelog {
[JsonPropertyName("links")] [JsonPropertyName("links")]
public GradeChangeEventLinksModel? Links { get; set; } public GradeChangeEventLinksModel? Links { get; set; }
} }
}

View File

@@ -1,11 +1,8 @@
using System.Collections.Generic;
namespace CanvasModel.GradeChangelog;
namespace Model.GradeChangelog { public class RedundantGradeChangeEventResponse
{
public class RedundantGradeChangeEventResponse {
[JsonPropertyName("events")] [JsonPropertyName("events")]
public IEnumerable<GradeChangeEventModel> Events { get; set; } public IEnumerable<GradeChangeEventModel> Events { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
namespace CanvasModel.Gradebook;
namespace Model.Gradebook { public class DayModel
{
public class DayModel {
[JsonPropertyName("date")] [JsonPropertyName("date")]
public DateTime Date { get; set; } public DateTime Date { get; set; }
@@ -12,4 +9,3 @@ namespace Model.Gradebook {
[JsonPropertyName("graders")] [JsonPropertyName("graders")]
public IEnumerable<GraderModel> Graders { get; set; } public IEnumerable<GraderModel> Graders { get; set; }
} }
}

View File

@@ -1,10 +1,9 @@
using System.Collections.Generic;
using Model.Assignments; using CanvasModel.Assignments;
namespace Model.Gradebook { namespace CanvasModel.Gradebook;
public class GraderModel
public class GraderModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -16,4 +15,3 @@ namespace Model.Gradebook {
[JsonPropertyName("assignments")] [JsonPropertyName("assignments")]
public IEnumerable<AssignmentModel> Assignments { get; set; } public IEnumerable<AssignmentModel> Assignments { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System.Collections.Generic;
namespace CanvasModel.Gradebook;
public class SubmissionHistoryModel
namespace Model.Gradebook { {
public class SubmissionHistoryModel {
[JsonPropertyName("submission_id")] [JsonPropertyName("submission_id")]
public ulong SubmissionId { get; set; } public ulong SubmissionId { get; set; }
@@ -12,4 +9,3 @@ namespace Model.Gradebook {
[JsonPropertyName("versions")] [JsonPropertyName("versions")]
public IEnumerable<SubmissionVersionModel>? Versions { get; set; } public IEnumerable<SubmissionVersionModel>? Versions { get; set; }
} }
}

View File

@@ -1,10 +1,8 @@
using System; using CanvasModel.Submissions;
using Model.Submissions; namespace CanvasModel.Gradebook;
public class SubmissionVersionModel : SubmissionModel
namespace Model.Gradebook { {
public class SubmissionVersionModel : SubmissionModel {
[JsonPropertyName("assignment_name")] [JsonPropertyName("assignment_name")]
public string AssignmentName { get; set; } public string AssignmentName { get; set; }
@@ -36,4 +34,3 @@ namespace Model.Gradebook {
[JsonPropertyName("previous_grader")] [JsonPropertyName("previous_grader")]
public string PreviousGrader { get; set; } public string PreviousGrader { get; set; }
} }
}

View File

@@ -1,8 +1,7 @@
using System;
namespace CanvasModel.GradingPeriods;
namespace Model.GradingPeriods { public class GradingPeriodModel
public class GradingPeriodModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -25,4 +24,3 @@ namespace Model.GradingPeriods {
[JsonPropertyName("is_closed")] [JsonPropertyName("is_closed")]
public bool? IsClosed { get; set; } public bool? IsClosed { get; set; }
} }
}

View File

@@ -1,9 +1,8 @@
using System.Collections.Generic;
namespace Model.GradingPeriods { namespace CanvasModel.GradingPeriods;
public class RedundantGradingPeriodResponse { public class RedundantGradingPeriodResponse
{
[JsonPropertyName("grading_periods")] [JsonPropertyName("grading_periods")]
public IEnumerable<GradingPeriodModel> GradingPeriods { get; set; } public IEnumerable<GradingPeriodModel> GradingPeriods { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Groups { namespace CanvasModel.Groups;
public class GroupMembershipModel
public class GroupMembershipModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -25,4 +25,3 @@ namespace Model.Groups {
[JsonPropertyName("sis_import_id")] [JsonPropertyName("sis_import_id")]
public ulong? SisImportId { get; set; } public ulong? SisImportId { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System.Collections.Generic;
namespace CanvasModel.Groups;
public class GroupModel
namespace Model.Groups { {
public class GroupModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -57,4 +54,3 @@ namespace Model.Groups {
[JsonPropertyName("permissions")] [JsonPropertyName("permissions")]
public Dictionary<string, bool> Permissions { get; set; } public Dictionary<string, bool> Permissions { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Modules { namespace CanvasModel.Modules;
public class CompletionRequirementModel
public class CompletionRequirementModel { {
[JsonPropertyName("type")] [JsonPropertyName("type")]
public string Type { get; set; } public string Type { get; set; }
@@ -13,4 +13,3 @@ namespace Model.Modules {
[JsonPropertyName("completed")] [JsonPropertyName("completed")]
public bool? Completed { get; set; } public bool? Completed { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System;
namespace CanvasModel.Modules;
public class ContentDetailsModel
namespace Model.Modules { {
public class ContentDetailsModel {
[JsonPropertyName("points_possible")] [JsonPropertyName("points_possible")]
public uint? PointsPossible { get; set; } public uint? PointsPossible { get; set; }
@@ -24,4 +21,3 @@ namespace Model.Modules {
[JsonPropertyName("lock_explanation")] [JsonPropertyName("lock_explanation")]
public string? LockExplanation { get; set; } public string? LockExplanation { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
namespace CanvasModel.Modules;
public class ModuleItemModel
{
namespace Model.Modules {
public class ModuleItemModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -49,4 +46,3 @@ namespace Model.Modules {
[JsonPropertyName("published")] [JsonPropertyName("published")]
public bool? Published { get; set; } public bool? Published { get; set; }
} }
}

View File

@@ -1,11 +1,7 @@
using System.Collections.Generic;
namespace Model.Modules {
public class ModuleItemSequenceModel {
namespace CanvasModel.Modules;
public class ModuleItemSequenceModel
{
[JsonPropertyName("items")] [JsonPropertyName("items")]
public IEnumerable<ModuleItemSequenceNodeModel> Items { get; set; } public IEnumerable<ModuleItemSequenceNodeModel> Items { get; set; }
} }
}

View File

@@ -1,9 +1,7 @@
namespace CanvasModel.Modules;
public class ModuleItemSequenceNodeModel
{
namespace Model.Modules {
public class ModuleItemSequenceNodeModel {
[JsonPropertyName("prev")] [JsonPropertyName("prev")]
public ModuleItemModel? Prev { get; set; } public ModuleItemModel? Prev { get; set; }
@@ -17,4 +15,3 @@ namespace Model.Modules {
[JsonPropertyName("mastery_path")] [JsonPropertyName("mastery_path")]
public object? MasteryPath { get; set; } // todo concrete type? public object? MasteryPath { get; set; } // todo concrete type?
} }
}

View File

@@ -1,12 +1,7 @@
using System;
using System.Collections.Generic;
namespace CanvasModel.Modules;
public class ModuleModel
{
namespace Model.Modules {
public class ModuleModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -53,4 +48,3 @@ namespace Model.Modules {
[JsonPropertyName("published")] [JsonPropertyName("published")]
public bool? Published { get; set; } public bool? Published { get; set; }
} }
}

View File

@@ -1,9 +1,7 @@
namespace CanvasModel.OutcomeResults;
public class OutcomeAlignmentModel
namespace Model.OutcomeResults { {
public class OutcomeAlignmentModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public string Id { get; set; } public string Id { get; set; }
@@ -14,4 +12,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("html_url")] [JsonPropertyName("html_url")]
public string? HtmlUrl { get; set; } public string? HtmlUrl { get; set; }
} }
}

View File

@@ -1,10 +1,6 @@
using System.Collections.Generic; namespace CanvasModel.OutcomeResults;
public struct OutcomePathModel
{
namespace Model.OutcomeResults {
public struct OutcomePathModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -12,4 +8,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("parts")] [JsonPropertyName("parts")]
public IEnumerable<OutcomePathPartModel>? Parts { get; set; } public IEnumerable<OutcomePathPartModel>? Parts { get; set; }
} }
}

View File

@@ -1,10 +1,9 @@
namespace Model.OutcomeResults { namespace CanvasModel.OutcomeResults;
public struct OutcomePathPartModel
public struct OutcomePathPartModel { {
[JsonPropertyName("name")] [JsonPropertyName("name")]
public string Name { get; set; } public string Name { get; set; }
} }
}

View File

@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
namespace Model.OutcomeResults { namespace CanvasModel.OutcomeResults;
public class OutcomeResultModel
public class OutcomeResultModel { {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -21,4 +19,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("percent")] [JsonPropertyName("percent")]
public decimal Percent { get; set; } public decimal Percent { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.OutcomeResults { namespace CanvasModel.OutcomeResults;
public class OutcomeRollupLinksModel
public class OutcomeRollupLinksModel { {
[JsonPropertyName("course")] [JsonPropertyName("course")]
public ulong? Course { get; set; } public ulong? Course { get; set; }
@@ -13,4 +13,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("section")] [JsonPropertyName("section")]
public ulong? Section { get; set; } public ulong? Section { get; set; }
} }
}

View File

@@ -1,10 +1,8 @@
using System.Collections.Generic;
namespace CanvasModel.OutcomeResults;
namespace Model.OutcomeResults { public class OutcomeRollupModel
{
public class OutcomeRollupModel {
[JsonPropertyName("scores")] [JsonPropertyName("scores")]
public IEnumerable<OutcomeRollupScoreModel>? Scores { get; set; } public IEnumerable<OutcomeRollupScoreModel>? Scores { get; set; }
@@ -15,4 +13,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("links")] [JsonPropertyName("links")]
public OutcomeRollupLinksModel Links { get; set; } public OutcomeRollupLinksModel Links { get; set; }
} }
}

View File

@@ -1,10 +1,9 @@
namespace Model.OutcomeResults { namespace CanvasModel.OutcomeResults;
public class OutcomeRollupScoreLinksModel
public class OutcomeRollupScoreLinksModel { {
[JsonPropertyName("outcome")] [JsonPropertyName("outcome")]
public ulong Outcome { get; set; } public ulong Outcome { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.OutcomeResults { namespace CanvasModel.OutcomeResults;
public class OutcomeRollupScoreModel
public class OutcomeRollupScoreModel { {
[JsonPropertyName("score")] [JsonPropertyName("score")]
public double? Score { get; set; } public double? Score { get; set; }
@@ -13,4 +13,3 @@ namespace Model.OutcomeResults {
[JsonPropertyName("links")] [JsonPropertyName("links")]
public OutcomeRollupScoreLinksModel Links { get; set; } public OutcomeRollupScoreLinksModel Links { get; set; }
} }
}

View File

@@ -1,12 +1,9 @@
using System; using CanvasModel.Assignments;
using CanvasModel.Users;
namespace CanvasModel.Pages;
using Model.Assignments; public class PageModel
using Model.Users; {
namespace Model.Pages {
public class PageModel {
[JsonPropertyName("url")] [JsonPropertyName("url")]
public string Url { get; set; } public string Url { get; set; }
@@ -47,4 +44,3 @@ namespace Model.Pages {
[JsonPropertyName("page_id")] [JsonPropertyName("page_id")]
public string PageId { get; set; } public string PageId { get; set; }
} }
}

View File

@@ -1,10 +1,8 @@
using System; using CanvasModel.Users;
namespace CanvasModel.Pages;
using Model.Users; public class PageRevisionModel
{
namespace Model.Pages {
public class PageRevisionModel {
[JsonPropertyName("revision_id")] [JsonPropertyName("revision_id")]
public ulong RevisionId { get; set; } public ulong RevisionId { get; set; }
@@ -27,4 +25,3 @@ namespace Model.Pages {
[JsonPropertyName("body")] [JsonPropertyName("body")]
public string? Body { get; set; } public string? Body { get; set; }
} }
}

View File

@@ -1,10 +1,7 @@
using System.Collections.Generic;
namespace CanvasModel.ProficiencyRatings;
namespace Model.ProficiencyRatings { public struct ProficiencyModel
{
public struct ProficiencyModel {
[JsonPropertyName("ratings")] [JsonPropertyName("ratings")]
public IEnumerable<ProficiencyRatingModel> Ratings { get; set; } public IEnumerable<ProficiencyRatingModel> Ratings { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.ProficiencyRatings { namespace CanvasModel.ProficiencyRatings;
public class ProficiencyRatingModel
public class ProficiencyRatingModel { {
[JsonPropertyName("description")] [JsonPropertyName("description")]
public string Description { get; set; } public string Description { get; set; }
@@ -16,4 +16,3 @@ namespace Model.ProficiencyRatings {
[JsonPropertyName("color")] [JsonPropertyName("color")]
public string Color { get; set; } public string Color { get; set; }
} }
}

View File

@@ -1,12 +1,9 @@
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")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -125,4 +122,3 @@ namespace Model.Quizzes {
[JsonPropertyName("anonymous_submissions")] [JsonPropertyName("anonymous_submissions")]
public bool? AnonymousSubmissions { get; set; } public bool? AnonymousSubmissions { get; set; }
} }
}

View File

@@ -1,8 +1,8 @@
namespace Model.Quizzes { namespace CanvasModel.Quizzes;
public class QuizPermissionsModel
public class QuizPermissionsModel { {
[JsonPropertyName("read")] [JsonPropertyName("read")]
public bool Read { get; set; } public bool Read { get; set; }
@@ -25,4 +25,3 @@ namespace Model.Quizzes {
[JsonPropertyName("update")] [JsonPropertyName("update")]
public bool Update { get; set; } public bool Update { get; set; }
} }
}

View File

@@ -1,12 +1,7 @@
using System.Collections.Generic;
namespace CanvasModel.Reports;
public class ReportDescriptionModel
namespace Model.Reports { {
// ReSharper disable MemberCanBePrivate.Global
// ReSharper disable ClassNeverInstantiated.Global
public class ReportDescriptionModel {
[JsonPropertyName("report")] [JsonPropertyName("report")]
public string Report { get; set; } public string Report { get; set; }
@@ -18,7 +13,8 @@ namespace Model.Reports {
public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; } public Dictionary<string, ReportParameterDescriptionModel>? Parameters { get; set; }
} }
public class ReportParameterDescriptionModel { public class ReportParameterDescriptionModel
{
[JsonPropertyName("description")] [JsonPropertyName("description")]
public string Description { get; set; } public string Description { get; set; }
@@ -26,4 +22,3 @@ namespace Model.Reports {
[JsonPropertyName("required")] [JsonPropertyName("required")]
public bool Required { get; set; } public bool Required { get; set; }
} }
}

View File

@@ -1,13 +1,9 @@
using System;
using System.Collections.Generic;
using CanvasModel.Discussions;
namespace CanvasModel.Reports;
using Model.Discussions; public class ReportModel
{
namespace Model.Reports {
public class ReportModel {
[JsonPropertyName("id")] [JsonPropertyName("id")]
public ulong Id { get; set; } public ulong Id { get; set; }
@@ -44,4 +40,3 @@ namespace Model.Reports {
[JsonPropertyName("current_line")] [JsonPropertyName("current_line")]
public ulong? CurrentLine { get; set; } public ulong? CurrentLine { get; set; }
} }
}

View File

@@ -1,8 +1,7 @@
namespace CanvasModel.Results;
namespace Model.Results { public class ResultModel
{
public class ResultModel {
// yes indeed the docs say this model specifically uses camelCase properties // yes indeed the docs say this model specifically uses camelCase properties
[JsonPropertyName("id")] [JsonPropertyName("id")]
@@ -23,4 +22,3 @@ namespace Model.Results {
[JsonPropertyName("scoreOf")] [JsonPropertyName("scoreOf")]
public string ScoreOf { get; set; } public string ScoreOf { get; set; }
} }
}

View File

@@ -1,10 +1,9 @@
using System.Collections.Generic;
using Model.Accounts; using CanvasModel.Accounts;
namespace Model.Roles { namespace CanvasModel.Roles;
public class RoleModel
public class RoleModel { {
[JsonPropertyName("label")] [JsonPropertyName("label")]
public string Label { get; set; } public string Label { get; set; }
@@ -21,4 +20,3 @@ namespace Model.Roles {
[JsonPropertyName("permissions")] [JsonPropertyName("permissions")]
public Dictionary<string, RolePermissionsModel> Permissions { get; set; } public Dictionary<string, RolePermissionsModel> Permissions { get; set; }
} }
}

Some files were not shown because too many files have changed in this diff Show More