got rubric creation working

This commit is contained in:
2023-07-31 16:27:38 -06:00
parent 70db40867c
commit 17734ab641
10 changed files with 276 additions and 80 deletions

View 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
}

View File

@@ -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; }
}