mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
got rubric creation working
This commit is contained in:
37
Management/Models/CanvasModels/Assignments/CanvasRubric.cs
Normal file
37
Management/Models/CanvasModels/Assignments/CanvasRubric.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
namespace CanvasModel.Assignments;
|
||||
|
||||
public record CanvasRubric
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public ulong? Id { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public required string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("context_id")]
|
||||
public ulong ContextId { get; set; }
|
||||
|
||||
[JsonPropertyName("context_type")]
|
||||
public required string ContextType { get; set; }
|
||||
|
||||
[JsonPropertyName("points_possible")]
|
||||
public double PointsPossible { get; set; }
|
||||
|
||||
[JsonPropertyName("reusable")]
|
||||
public bool Reusable { get; set; }
|
||||
|
||||
[JsonPropertyName("read_only")]
|
||||
public bool ReadOnly { get; set; }
|
||||
|
||||
// [JsonPropertyName("free_form_criterion_comments")]
|
||||
// public bool? FreeFormCriterionComments { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_score_total")]
|
||||
public bool? HideScoreTotal { get; set; }
|
||||
|
||||
// [JsonPropertyName("data")]
|
||||
// public required IEnumerable<CanvasRubricCriteria> Data { get; set; }
|
||||
|
||||
// assessments
|
||||
// associations
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
namespace CanvasModel.Assignments;
|
||||
|
||||
public record CanvasRubricAssociation
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("rubrid_id")]
|
||||
public ulong RubricId { get; set; }
|
||||
|
||||
[JsonPropertyName("association_id")]
|
||||
public ulong AssociationId { get; set; }
|
||||
|
||||
[JsonPropertyName("association_type")]
|
||||
public required string AssociationType { get; set; }
|
||||
|
||||
[JsonPropertyName("use_for_grading")]
|
||||
public bool UseForGrading { get; set; }
|
||||
|
||||
[JsonPropertyName("summary_data")]
|
||||
public string? SummaryDaata { get; set; }
|
||||
|
||||
[JsonPropertyName("purpose")]
|
||||
public required string Purpose { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_score_total")]
|
||||
public bool? HideScoreTotal { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_points")]
|
||||
public bool HidePoints { get; set; }
|
||||
|
||||
[JsonPropertyName("hide_outcome-results")]
|
||||
public bool HideOUtcomeResult { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user