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,47 +1,46 @@
namespace Model.Accounts {
public class AccountModel {
[JsonPropertyName("id")]
public ulong Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("uuid")]
public string Uuid { get; set; }
[JsonPropertyName("parent_account_id")]
public ulong? ParentAccountId { get; set; }
[JsonPropertyName("root_account_id")]
public ulong? RootAccountId { get; set; }
[JsonPropertyName("default_user_storage_quota_mb")]
public ulong? DefaultUserStorageQuotaMb { get; set; }
[JsonPropertyName("default_group_storage_quota_mb")]
public ulong? DefaultGroupStorageQuotaMb { get; set; }
[JsonPropertyName("default_time_zone")]
public string DefaultTimeZone { get; set; }
[JsonPropertyName("sis_account_id")]
public string? SisAccountId { get; set; }
[JsonPropertyName("integrationI-d")]
public string? IntegrationId { get; set; }
[JsonPropertyName("sis_import_id")]
public string? SisImportId { get; set; }
[JsonPropertyName("lti_guid")]
public string LtiGuid { get; set; }
[JsonPropertyName("workflow_state")]
public string WorkflowState { get; set; }
}
namespace CanvasModel.Accounts;
public class AccountModel
{
[JsonPropertyName("id")]
public ulong Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("uuid")]
public string Uuid { get; set; }
[JsonPropertyName("parent_account_id")]
public ulong? ParentAccountId { get; set; }
[JsonPropertyName("root_account_id")]
public ulong? RootAccountId { get; set; }
[JsonPropertyName("default_user_storage_quota_mb")]
public ulong? DefaultUserStorageQuotaMb { get; set; }
[JsonPropertyName("default_group_storage_quota_mb")]
public ulong? DefaultGroupStorageQuotaMb { get; set; }
[JsonPropertyName("default_time_zone")]
public string DefaultTimeZone { get; set; }
[JsonPropertyName("sis_account_id")]
public string? SisAccountId { get; set; }
[JsonPropertyName("integrationI-d")]
public string? IntegrationId { get; set; }
[JsonPropertyName("sis_import_id")]
public string? SisImportId { get; set; }
[JsonPropertyName("lti_guid")]
public string LtiGuid { get; set; }
[JsonPropertyName("workflow_state")]
public string WorkflowState { get; set; }
}

View File

@@ -1,23 +1,22 @@
using System.Collections.Generic;
namespace Model.Accounts {
namespace CanvasModel.Accounts;
public class HelpLinkModel
{
public class HelpLinkModel {
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("text")]
public string Text { get; set; }
[JsonPropertyName("subtext")]
public string Subtext { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("available_to")]
public IEnumerable<string> AvailableTo { get; set; }
}
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("text")]
public string Text { get; set; }
[JsonPropertyName("subtext")]
public string Subtext { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("available_to")]
public IEnumerable<string> AvailableTo { get; set; }
}

View File

@@ -1,20 +1,19 @@
using System.Collections.Generic;
namespace Model.Accounts {
public class HelpLinksModel {
[JsonPropertyName("help_link_name")]
public string HelpLinkName { get; set; }
[JsonPropertyName("help_link_icon")]
public string HelpLinkIcon { get; set; }
[JsonPropertyName("custom_help_links")]
public IEnumerable<HelpLinkModel> CustomHelpLinks { get; set; }
[JsonPropertyName("default_help_links")]
public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; }
}
namespace CanvasModel.Accounts;
public class HelpLinksModel
{
[JsonPropertyName("help_link_name")]
public string HelpLinkName { get; set; }
[JsonPropertyName("help_link_icon")]
public string HelpLinkIcon { get; set; }
[JsonPropertyName("custom_help_links")]
public IEnumerable<HelpLinkModel> CustomHelpLinks { get; set; }
[JsonPropertyName("default_help_links")]
public IEnumerable<HelpLinkModel> DefaultHelpLinks { get; set; }
}

View File

@@ -1,22 +1,21 @@
namespace Model.Accounts {
namespace CanvasModel.Accounts;
public class TermsOfServiceModel
{
public class TermsOfServiceModel {
[JsonPropertyName("id")]
public ulong Id { get; set; }
[JsonPropertyName("terms_type")]
public string TermsType { get; set; }
[JsonPropertyName("passive")]
public bool Passive { get; set; }
[JsonPropertyName("account_id")]
public ulong AccountId { get; set; }
[JsonPropertyName("content")]
public string Content { get; set; }
}
[JsonPropertyName("id")]
public ulong Id { get; set; }
[JsonPropertyName("terms_type")]
public string TermsType { get; set; }
[JsonPropertyName("passive")]
public bool Passive { get; set; }
[JsonPropertyName("account_id")]
public ulong AccountId { get; set; }
[JsonPropertyName("content")]
public string Content { get; set; }
}