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,60 +1,56 @@
using System.Collections.Generic;
namespace CanvasModel.Groups;
public class GroupModel
{
[JsonPropertyName("id")]
public ulong Id { get; set; }
namespace Model.Groups {
public class GroupModel {
[JsonPropertyName("id")]
public ulong Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("is_public")]
public bool? IsPublic { get; set; }
[JsonPropertyName("followed_by_user")]
public bool FollowedByUser { get; set; }
[JsonPropertyName("join_level")]
public string JoinLevel { get; set; }
[JsonPropertyName("members_count")]
public uint MembersCount { get; set; }
[JsonPropertyName("avatar_url")]
public string AvatarUrl { get; set; }
[JsonPropertyName("context_type")]
public string ContextType { get; set; }
[JsonPropertyName("course_id")]
public ulong? CourseId { get; set; }
[JsonPropertyName("account_id")]
public ulong? AccountId { get; set; }
[JsonPropertyName("role")]
public string Role { get; set; }
[JsonPropertyName("group_category_id")]
public ulong GroupCategoryId { get; set; }
[JsonPropertyName("sis_group_id")]
public string? SisGroupId { get; set; }
[JsonPropertyName("sis_import_id")]
public ulong? SisImportId { get; set; }
[JsonPropertyName("storage_quota_mb")]
public uint StorageQuoteMb { get; set; }
[JsonPropertyName("permissions")]
public Dictionary<string, bool> Permissions { get; set; }
}
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("description")]
public string? Description { get; set; }
[JsonPropertyName("is_public")]
public bool? IsPublic { get; set; }
[JsonPropertyName("followed_by_user")]
public bool FollowedByUser { get; set; }
[JsonPropertyName("join_level")]
public string JoinLevel { get; set; }
[JsonPropertyName("members_count")]
public uint MembersCount { get; set; }
[JsonPropertyName("avatar_url")]
public string AvatarUrl { get; set; }
[JsonPropertyName("context_type")]
public string ContextType { get; set; }
[JsonPropertyName("course_id")]
public ulong? CourseId { get; set; }
[JsonPropertyName("account_id")]
public ulong? AccountId { get; set; }
[JsonPropertyName("role")]
public string Role { get; set; }
[JsonPropertyName("group_category_id")]
public ulong GroupCategoryId { get; set; }
[JsonPropertyName("sis_group_id")]
public string? SisGroupId { get; set; }
[JsonPropertyName("sis_import_id")]
public ulong? SisImportId { get; set; }
[JsonPropertyName("storage_quota_mb")]
public uint StorageQuoteMb { get; set; }
[JsonPropertyName("permissions")]
public Dictionary<string, bool> Permissions { get; set; }
}