reformatted models

This commit is contained in:
2023-01-04 17:22:36 -07:00
parent c8175971b7
commit c28230691e
122 changed files with 3812 additions and 4005 deletions

View File

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