model refactorings

This commit is contained in:
2023-01-04 21:03:36 -07:00
parent b9824a7327
commit dcc8fef898
119 changed files with 989 additions and 3773 deletions

View File

@@ -1,26 +1,22 @@
using System;
namespace CanvasModel.Assignments;
public class AssignmentDateModel
{
public record AssignmentDateModel
(
[property: JsonPropertyName("title")]
string Title,
[JsonPropertyName("id")]
public ulong? Id { get; set; }
[property: JsonPropertyName("id")]
ulong? Id = null,
[JsonPropertyName("base")]
public bool? Base { get; set; }
[property: JsonPropertyName("base")]
bool? Base = null,
[JsonPropertyName("title")]
public string Title { get; set; }
[property: JsonPropertyName("due_at")]
DateTime? DueAt = null,
[JsonPropertyName("due_at")]
public DateTime? DueAt { get; set; }
[property: JsonPropertyName("unlock_at")]
DateTime? UnlockAt = null,
[JsonPropertyName("unlock_at")]
public DateTime? UnlockAt { get; set; }
[JsonPropertyName("lock_at")]
public DateTime? LockAt { get; set; }
}
[property: JsonPropertyName("lock_at")]
DateTime? LockAt = null
);