mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
scafolded project
This commit is contained in:
50
Management/Models/CanvasModel/Pages/PageModel.cs
Normal file
50
Management/Models/CanvasModel/Pages/PageModel.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
|
||||
|
||||
using Model.Assignments;
|
||||
using Model.Users;
|
||||
|
||||
namespace Model.Pages {
|
||||
|
||||
public class PageModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("editing_roles")]
|
||||
public string EditingRoles { get; set; }
|
||||
|
||||
[JsonPropertyName("last_edited_by")]
|
||||
public UserDisplayModel LastEditedBy { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
|
||||
[JsonPropertyName("published")]
|
||||
public bool Published { get; set; }
|
||||
|
||||
[JsonPropertyName("front_page")]
|
||||
public bool FrontPage { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
public LockInfoModel? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string? LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("page_id")]
|
||||
public string PageId { get; set; }
|
||||
}
|
||||
}
|
||||
30
Management/Models/CanvasModel/Pages/PageRevisionModel.cs
Normal file
30
Management/Models/CanvasModel/Pages/PageRevisionModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
|
||||
|
||||
using Model.Users;
|
||||
|
||||
namespace Model.Pages {
|
||||
public class PageRevisionModel {
|
||||
|
||||
[JsonPropertyName("revision_id")]
|
||||
public ulong RevisionId { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("latest")]
|
||||
public bool Latest { get; set; }
|
||||
|
||||
[JsonPropertyName("edited_by")]
|
||||
public UserDisplayModel? EditedBy { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string? Url { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("body")]
|
||||
public string? Body { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user