mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
reformatted models
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class AccountNavigationModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class AccountNavigationModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class CourseHomeSubNavigationModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class CourseHomeSubNavigationModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class CourseNavigationModel {
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("visible")]
|
||||
public string Visibility { get; set; }
|
||||
|
||||
[JsonPropertyName("window_target")]
|
||||
public string WindowTarget { get; set; }
|
||||
|
||||
[JsonPropertyName("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class CourseNavigationModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("visible")]
|
||||
public string Visibility { get; set; }
|
||||
|
||||
[JsonPropertyName("window_target")]
|
||||
public string WindowTarget { get; set; }
|
||||
|
||||
[JsonPropertyName("default")]
|
||||
public bool? Default { get; set; }
|
||||
|
||||
[JsonPropertyName("display_type")]
|
||||
public string DisplayType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class EditorButtonModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class EditorButtonModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -2,74 +2,73 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class ExternalToolModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("domain")]
|
||||
public string Domain { get; set; }
|
||||
|
||||
[JsonPropertyName("consumer_key")]
|
||||
public string ConsumerKey { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("privacy_level")]
|
||||
public string PrivacyLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("custom_fields")]
|
||||
public Dictionary<string, string> CustomFields { get; set; }
|
||||
|
||||
[JsonPropertyName("account_navigation")]
|
||||
public AccountNavigationModel AccountNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_home_sub_navigation")]
|
||||
public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_navigation")]
|
||||
public CourseNavigationModel CourseNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("editor_button")]
|
||||
public EditorButtonModel EditorButton { get; set; }
|
||||
|
||||
[JsonPropertyName("homework_submission")]
|
||||
public HomeworkSubmissionModel HomeworkSubmission { get; set; }
|
||||
|
||||
[JsonPropertyName("migration_selection")]
|
||||
public MigrationSelectionModel MigrationSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("resource_selection")]
|
||||
public ResourceSelectionModel ResourceSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("tool_configuration")]
|
||||
public ToolConfigurationModel ToolConfiguration { get; set; }
|
||||
|
||||
[JsonPropertyName("user_navigation")]
|
||||
public UserNavigationModel UserNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("not_selectable")]
|
||||
public bool? NotSelectable { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ExternalToolModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("domain")]
|
||||
public string Domain { get; set; }
|
||||
|
||||
[JsonPropertyName("consumer_key")]
|
||||
public string ConsumerKey { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("description")]
|
||||
public string Description { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("privacy_level")]
|
||||
public string PrivacyLevel { get; set; }
|
||||
|
||||
[JsonPropertyName("custom_fields")]
|
||||
public Dictionary<string, string> CustomFields { get; set; }
|
||||
|
||||
[JsonPropertyName("account_navigation")]
|
||||
public AccountNavigationModel AccountNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_home_sub_navigation")]
|
||||
public CourseHomeSubNavigationModel CourseHomeSubNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("course_navigation")]
|
||||
public CourseNavigationModel CourseNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("editor_button")]
|
||||
public EditorButtonModel EditorButton { get; set; }
|
||||
|
||||
[JsonPropertyName("homework_submission")]
|
||||
public HomeworkSubmissionModel HomeworkSubmission { get; set; }
|
||||
|
||||
[JsonPropertyName("migration_selection")]
|
||||
public MigrationSelectionModel MigrationSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("resource_selection")]
|
||||
public ResourceSelectionModel ResourceSelection { get; set; }
|
||||
|
||||
[JsonPropertyName("tool_configuration")]
|
||||
public ToolConfigurationModel ToolConfiguration { get; set; }
|
||||
|
||||
[JsonPropertyName("user_navigation")]
|
||||
public UserNavigationModel UserNavigation { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("not_selectable")]
|
||||
public bool? NotSelectable { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class HomeworkSubmissionModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class HomeworkSubmissionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class LinkSelectionModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class LinkSelectionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class MigrationSelectionModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class MigrationSelectionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,22 +1,21 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class ResourceSelectionModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ResourceSelectionModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("icon_url")]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_width")]
|
||||
public uint? SelectionWidth { get; set; }
|
||||
|
||||
[JsonPropertyName("selection_height")]
|
||||
public uint? SelectionHeight { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class ToolConfigurationModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
|
||||
[JsonPropertyName("prefer_sis_email")]
|
||||
public bool? PreferSisEmail { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class ToolConfigurationModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("message_type")]
|
||||
public string MessageType { get; set; }
|
||||
|
||||
[JsonPropertyName("prefer_sis_email")]
|
||||
public bool? PreferSisEmail { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
|
||||
|
||||
namespace Model.ExternalTools {
|
||||
|
||||
public class UserNavigationModel {
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("visibility")]
|
||||
public string Visibility { get; set; }
|
||||
}
|
||||
namespace CanvasModel.ExternalTools;
|
||||
public class UserNavigationModel
|
||||
{
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool? Enabled { get; set; }
|
||||
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; }
|
||||
|
||||
[JsonPropertyName("visibility")]
|
||||
public string Visibility { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user