mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
passing canvas models tests
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace CanvasModel.EnrollmentTerms;
|
||||
|
||||
public record EnrollmentTermModel
|
||||
(
|
||||
[property: JsonPropertyName("id")] ulong Id,
|
||||
[property: JsonPropertyName("name")] string Name,
|
||||
[property: JsonPropertyName("sis_term_id")] string? SisTermId = null,
|
||||
[property: JsonPropertyName("sis_import_id")] ulong? SisImportId = null,
|
||||
[property: JsonPropertyName("start_at")] DateTime? StartAt = null,
|
||||
[property: JsonPropertyName("end_at")] DateTime? EndAt = null,
|
||||
[property: JsonPropertyName("grading_period_group_id")] ulong? GradingPeriodGroupId = null,
|
||||
[property: JsonPropertyName("workflow_state")] string? WorkflowState = null,
|
||||
[property: JsonPropertyName("overrides")]
|
||||
Dictionary<string, EnrollmentTermDateOverrideModel>? Overrides = null
|
||||
);
|
||||
|
||||
public record EnrollmentTermDateOverrideModel
|
||||
(
|
||||
[property: JsonPropertyName("start_at")] DateTime? StartAt = null,
|
||||
[property: JsonPropertyName("end_at")] DateTime? EndAt = null
|
||||
);
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace CanvasModel.EnrollmentTerms;
|
||||
|
||||
public record RedundantEnrollmentTermsResponse
|
||||
(
|
||||
[property: JsonPropertyName("enrollment_terms")]
|
||||
IEnumerable<EnrollmentTermModel> EnrollmentTerms
|
||||
);
|
||||
Reference in New Issue
Block a user