mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
scafolded project
This commit is contained in:
77
Management/Models/CanvasModel/Files/CanvasFileModel.cs
Normal file
77
Management/Models/CanvasModel/Files/CanvasFileModel.cs
Normal file
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class CanvasFileModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("uuid")]
|
||||
public string Uuid { get; set; }
|
||||
|
||||
[JsonPropertyName("folder_id")]
|
||||
public ulong FolderId { get; set; }
|
||||
|
||||
[JsonPropertyName("display_name")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[JsonPropertyName("filename")]
|
||||
public string Filename { get; set; }
|
||||
|
||||
[JsonPropertyName("content_type")]
|
||||
public string ContentType { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("size")]
|
||||
public ulong Size { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("locked")]
|
||||
public bool Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool HiddenForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("thumbnail_url")]
|
||||
public string ThumbnailUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("modified_at")]
|
||||
public DateTime? ModifiedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("mime_class")]
|
||||
public string MimeClass { get; set; }
|
||||
|
||||
[JsonPropertyName("media_entry_id")]
|
||||
public string MediaEntryId { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_info")]
|
||||
// public LockInfo? LockInfo { get; set; }
|
||||
public object? LockInfo { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_explanation")]
|
||||
public string LockExplanation { get; set; }
|
||||
|
||||
[JsonPropertyName("preview_url")]
|
||||
public string PreviewUrl { get; set; }
|
||||
}
|
||||
}
|
||||
67
Management/Models/CanvasModel/Files/FolderModel.cs
Normal file
67
Management/Models/CanvasModel/Files/FolderModel.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class FolderModel {
|
||||
|
||||
[JsonPropertyName("context_type")]
|
||||
public string ContextType { get; set; }
|
||||
|
||||
[JsonPropertyName("context_id")]
|
||||
public ulong ContextId { get; set; }
|
||||
|
||||
[JsonPropertyName("files_count")]
|
||||
public uint FilesCount { get; set; }
|
||||
|
||||
[JsonPropertyName("position")]
|
||||
public int? Position { get; set; }
|
||||
|
||||
[JsonPropertyName("updated_at")]
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("folders_url")]
|
||||
public string FoldersUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("files_url")]
|
||||
public string FilesUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("full_name")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[JsonPropertyName("lock_at")]
|
||||
public DateTime? LockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public ulong Id { get; set; }
|
||||
|
||||
[JsonPropertyName("folders_count")]
|
||||
public uint FoldersCount { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("parents_folder_id")]
|
||||
public ulong? ParentFolderId { get; set; }
|
||||
|
||||
[JsonPropertyName("created_at")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
|
||||
[JsonPropertyName("unlock_at")]
|
||||
public DateTime? UnlockAt { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden")]
|
||||
public bool? Hidden { get; set; }
|
||||
|
||||
[JsonPropertyName("hidden_for_user")]
|
||||
public bool? HiddenForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("locker")]
|
||||
public bool? Locked { get; set; }
|
||||
|
||||
[JsonPropertyName("locked_for_user")]
|
||||
public bool? LockedForUser { get; set; }
|
||||
|
||||
[JsonPropertyName("for_submissions")]
|
||||
public bool? ForSubmissions { get; set; }
|
||||
}
|
||||
}
|
||||
15
Management/Models/CanvasModel/Files/LicenseModel.cs
Normal file
15
Management/Models/CanvasModel/Files/LicenseModel.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class LicenseModel {
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
25
Management/Models/CanvasModel/Files/UsageRightsModel.cs
Normal file
25
Management/Models/CanvasModel/Files/UsageRightsModel.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace Model.Files {
|
||||
public class UsageRightsModel {
|
||||
|
||||
[JsonPropertyName("legal_copyright")]
|
||||
public string LegalCopyright { get; set; }
|
||||
|
||||
[JsonPropertyName("use_justification")]
|
||||
public string UsageJustification { get; set; }
|
||||
|
||||
[JsonPropertyName("license")]
|
||||
public string License { get; set; }
|
||||
|
||||
[JsonPropertyName("license_name")]
|
||||
public string LicenseName { get; set; }
|
||||
|
||||
[JsonPropertyName("message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonPropertyName("file_ids")]
|
||||
public IEnumerable<ulong> FileIds { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user