mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
am syncing assignment groups
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
|
||||
namespace CanvasModel.Assignments;
|
||||
|
||||
public record CanvasAssignmentGroup
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; init; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public required string Name { get; init; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public int Position { get; init; }
|
||||
|
||||
[JsonPropertyName("group_weight")]
|
||||
public double GroupWeight { get; init; }
|
||||
|
||||
// [JsonPropertyName("sis_source_id")]
|
||||
// public string? SisSourceId { get; init; } = null;
|
||||
|
||||
// [JsonPropertyName("integration_data")]
|
||||
// public Dictionary<string, string> IntegrationData { get; init; } = new Dictionary<string, string>();
|
||||
|
||||
// [JsonPropertyName("assignments")]
|
||||
// public List<CanvasAssignment> Assignments { get; init; }
|
||||
|
||||
// [JsonPropertyName("rules")]
|
||||
// public object Rules { get; init; } // The specific type for 'Rules' is not detailed in the spec, so using object for now.
|
||||
}
|
||||
9
Management/Models/Local/LocalAssignmentGroup.cs
Normal file
9
Management/Models/Local/LocalAssignmentGroup.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace LocalModels;
|
||||
|
||||
public record LocalAssignmentGroup
|
||||
{
|
||||
public ulong? CanvasId { get; init; }
|
||||
public string Id { get; init; } = string.Empty;
|
||||
public required string Name { get; init; }
|
||||
public double Weight { get; init; }
|
||||
}
|
||||
@@ -11,6 +11,8 @@ public record LocalCourse
|
||||
public SimpleTimeOnly DefaultDueTime { get; init; } = new SimpleTimeOnly();
|
||||
public IEnumerable<AssignmentTemplate> AssignmentTemplates { get; init; } =
|
||||
Enumerable.Empty<AssignmentTemplate>();
|
||||
public IEnumerable<LocalAssignmentGroup> AssignmentGroups { get; init; } =
|
||||
Enumerable.Empty<LocalAssignmentGroup>();
|
||||
}
|
||||
|
||||
public record SimpleTimeOnly
|
||||
|
||||
Reference in New Issue
Block a user