Small UI changes (#3787)
This commit is contained in:
parent
50a052e412
commit
5b8a643d82
203 changed files with 369 additions and 446 deletions
|
|
@ -5,7 +5,7 @@ namespace API.DTOs.ReadingLists.CBL;
|
|||
|
||||
|
||||
[XmlRoot(ElementName="Book")]
|
||||
public class CblBook
|
||||
public sealed record CblBook
|
||||
{
|
||||
[XmlAttribute("Series")]
|
||||
public string Series { get; set; }
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
namespace API.DTOs.ReadingLists.CBL;
|
||||
|
||||
|
||||
public class CblConflictQuestion
|
||||
public sealed record CblConflictQuestion
|
||||
{
|
||||
public string SeriesName { get; set; }
|
||||
public IList<int> LibrariesIds { get; set; }
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public enum CblImportReason
|
|||
InvalidFile = 9,
|
||||
}
|
||||
|
||||
public class CblBookResult
|
||||
public sealed record CblBookResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Order in the CBL
|
||||
|
|
@ -114,7 +114,7 @@ public class CblBookResult
|
|||
/// <summary>
|
||||
/// Represents the summary from the Import of a given CBL
|
||||
/// </summary>
|
||||
public class CblImportSummaryDto
|
||||
public sealed record CblImportSummaryDto
|
||||
{
|
||||
public string CblName { get; set; }
|
||||
/// <summary>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace API.DTOs.ReadingLists.CBL;
|
|||
|
||||
|
||||
[XmlRoot(ElementName="Books")]
|
||||
public class CblBooks
|
||||
public sealed record CblBooks
|
||||
{
|
||||
[XmlElement(ElementName="Book")]
|
||||
public List<CblBook> Book { get; set; }
|
||||
|
|
@ -13,7 +13,7 @@ public class CblBooks
|
|||
|
||||
|
||||
[XmlRoot(ElementName="ReadingList")]
|
||||
public class CblReadingList
|
||||
public sealed record CblReadingList
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of the Reading List
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class CreateReadingListDto
|
||||
public sealed record CreateReadingListDto
|
||||
{
|
||||
public string Title { get; init; } = default!;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.ComponentModel.DataAnnotations;
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class DeleteReadingListsDto
|
||||
public sealed record DeleteReadingListsDto
|
||||
{
|
||||
[Required]
|
||||
public IList<int> ReadingListIds { get; set; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class PromoteReadingListsDto
|
||||
public sealed record PromoteReadingListsDto
|
||||
{
|
||||
public IList<int> ReadingListIds { get; init; }
|
||||
public bool Promoted { get; init; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class ReadingListCast
|
||||
public sealed record ReadingListCast
|
||||
{
|
||||
public ICollection<PersonDto> Writers { get; set; } = [];
|
||||
public ICollection<PersonDto> CoverArtists { get; set; } = [];
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using API.Entities.Interfaces;
|
|||
namespace API.DTOs.ReadingLists;
|
||||
#nullable enable
|
||||
|
||||
public class ReadingListDto : IHasCoverImage
|
||||
public sealed record ReadingListDto : IHasCoverImage
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public string Title { get; set; } = default!;
|
||||
|
|
@ -20,8 +20,8 @@ public class ReadingListDto : IHasCoverImage
|
|||
/// </summary>
|
||||
public string? CoverImage { get; set; } = string.Empty;
|
||||
|
||||
public string PrimaryColor { get; set; } = string.Empty;
|
||||
public string SecondaryColor { get; set; } = string.Empty;
|
||||
public string? PrimaryColor { get; set; } = string.Empty;
|
||||
public string? SecondaryColor { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Number of Items in the Reading List
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using API.Entities.Interfaces;
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class ReadingListInfoDto : IHasReadTimeEstimate
|
||||
public sealed record ReadingListInfoDto : IHasReadTimeEstimate
|
||||
{
|
||||
/// <summary>
|
||||
/// Total Pages across all Reading List Items
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ using API.Entities.Enums;
|
|||
namespace API.DTOs.ReadingLists;
|
||||
#nullable enable
|
||||
|
||||
public class ReadingListItemDto
|
||||
public sealed record ReadingListItemDto
|
||||
{
|
||||
public int Id { get; init; }
|
||||
public int Order { get; init; }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListByChapterDto
|
||||
public sealed record UpdateReadingListByChapterDto
|
||||
{
|
||||
public int ChapterId { get; init; }
|
||||
public int SeriesId { get; init; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListByMultipleDto
|
||||
public sealed record UpdateReadingListByMultipleDto
|
||||
{
|
||||
public int SeriesId { get; init; }
|
||||
public int ReadingListId { get; init; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListByMultipleSeriesDto
|
||||
public sealed record UpdateReadingListByMultipleSeriesDto
|
||||
{
|
||||
public int ReadingListId { get; init; }
|
||||
public IReadOnlyList<int> SeriesIds { get; init; } = default!;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListBySeriesDto
|
||||
public sealed record UpdateReadingListBySeriesDto
|
||||
{
|
||||
public int SeriesId { get; init; }
|
||||
public int ReadingListId { get; init; }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListByVolumeDto
|
||||
public sealed record UpdateReadingListByVolumeDto
|
||||
{
|
||||
public int VolumeId { get; init; }
|
||||
public int SeriesId { get; init; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.ReadingLists;
|
||||
|
||||
public class UpdateReadingListDto
|
||||
public sealed record UpdateReadingListDto
|
||||
{
|
||||
[Required]
|
||||
public int ReadingListId { get; set; }
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ namespace API.DTOs.ReadingLists;
|
|||
/// <summary>
|
||||
/// DTO for moving a reading list item to another position within the same list
|
||||
/// </summary>
|
||||
public class UpdateReadingListPosition
|
||||
public sealed record UpdateReadingListPosition
|
||||
{
|
||||
[Required] public int ReadingListId { get; set; }
|
||||
[Required] public int ReadingListItemId { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue