Colorscape Love (#3326)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Joe Milazzo 2024-10-31 18:44:03 -05:00 committed by GitHub
parent b44f89d1e8
commit a847468a6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
42 changed files with 1009 additions and 429 deletions

View file

@ -0,0 +1,16 @@
using System.Collections.Generic;
using YamlDotNet.Serialization;
namespace API.DTOs.CoverDb;
public class CoverDbAuthor
{
[YamlMember(Alias = "name", ApplyNamingConventions = false)]
public string Name { get; set; }
[YamlMember(Alias = "aliases", ApplyNamingConventions = false)]
public List<string> Aliases { get; set; } = new List<string>();
[YamlMember(Alias = "ids", ApplyNamingConventions = false)]
public CoverDbPersonIds Ids { get; set; }
[YamlMember(Alias = "image_path", ApplyNamingConventions = false)]
public string ImagePath { get; set; }
}

View file

@ -0,0 +1,10 @@
using System.Collections.Generic;
using YamlDotNet.Serialization;
namespace API.DTOs.CoverDb;
public class CoverDbPeople
{
[YamlMember(Alias = "people", ApplyNamingConventions = false)]
public List<CoverDbAuthor> People { get; set; } = new List<CoverDbAuthor>();
}

View file

@ -0,0 +1,20 @@
using YamlDotNet.Serialization;
namespace API.DTOs.CoverDb;
#nullable enable
public class CoverDbPersonIds
{
[YamlMember(Alias = "hardcover_id", ApplyNamingConventions = false)]
public string? HardcoverId { get; set; } = null;
[YamlMember(Alias = "amazon_id", ApplyNamingConventions = false)]
public string? AmazonId { get; set; } = null;
[YamlMember(Alias = "metron_id", ApplyNamingConventions = false)]
public string? MetronId { get; set; } = null;
[YamlMember(Alias = "comicvine_id", ApplyNamingConventions = false)]
public string? ComicVineId { get; set; } = null;
[YamlMember(Alias = "anilist_id", ApplyNamingConventions = false)]
public string? AnilistId { get; set; } = null;
[YamlMember(Alias = "mal_id", ApplyNamingConventions = false)]
public string? MALId { get; set; } = null;
}

View file

@ -8,6 +8,8 @@ public class UpdatePersonDto
public int Id { get; init; }
[Required]
public bool CoverImageLocked { get; set; }
[Required]
public string Name {get; set;}
public string? Description { get; set; }
public int? AniListId { get; set; }

View file

@ -43,4 +43,6 @@ public class ReadingListItemDto
/// The chapter summary
/// </summary>
public string? Summary { get; set; }
public bool IsSpecial { get; set; }
}