mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
reformatted models
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Model.Accounts;
|
||||
using CanvasModel.Accounts;
|
||||
|
||||
namespace Model.Roles {
|
||||
|
||||
public class RoleModel {
|
||||
|
||||
[JsonPropertyName("label")]
|
||||
public string Label { get; set; }
|
||||
|
||||
[JsonPropertyName("base_role_type")]
|
||||
public string BaseRoleType { get; set; }
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public AccountModel Account { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, RolePermissionsModel> Permissions { get; set; }
|
||||
}
|
||||
namespace CanvasModel.Roles;
|
||||
public class RoleModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("label")]
|
||||
public string Label { get; set; }
|
||||
|
||||
[JsonPropertyName("base_role_type")]
|
||||
public string BaseRoleType { get; set; }
|
||||
|
||||
[JsonPropertyName("account")]
|
||||
public AccountModel Account { get; set; }
|
||||
|
||||
[JsonPropertyName("workflow_state")]
|
||||
public string WorkflowState { get; set; }
|
||||
|
||||
[JsonPropertyName("permissions")]
|
||||
public Dictionary<string, RolePermissionsModel> Permissions { get; set; }
|
||||
}
|
||||
@@ -1,28 +1,27 @@
|
||||
|
||||
|
||||
namespace Model.Roles {
|
||||
|
||||
public class RolePermissionsModel {
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("locked")]
|
||||
public bool Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("applies_to_self")]
|
||||
public bool AppliesToSelf { get; set; }
|
||||
|
||||
[JsonPropertyName("applies_to_descendants")]
|
||||
public bool AppliesToDescendants { get; set; }
|
||||
|
||||
[JsonPropertyName("readonly")]
|
||||
public bool Readonly { get; set; }
|
||||
|
||||
[JsonPropertyName("explicit")]
|
||||
public bool Explicit { get; set; }
|
||||
|
||||
[JsonPropertyName("prior_default")]
|
||||
public bool PriorDefault { get; set; }
|
||||
}
|
||||
namespace CanvasModel.Roles;
|
||||
public class RolePermissionsModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("locked")]
|
||||
public bool Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("applies_to_self")]
|
||||
public bool AppliesToSelf { get; set; }
|
||||
|
||||
[JsonPropertyName("applies_to_descendants")]
|
||||
public bool AppliesToDescendants { get; set; }
|
||||
|
||||
[JsonPropertyName("readonly")]
|
||||
public bool Readonly { get; set; }
|
||||
|
||||
[JsonPropertyName("explicit")]
|
||||
public bool Explicit { get; set; }
|
||||
|
||||
[JsonPropertyName("prior_default")]
|
||||
public bool PriorDefault { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user