Renames project paths from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:34:43 +02:00
1 parent ce6fddb4c9
commit 0f659a4877
6450 files changed

No files matched your search

@@ -0,0 +1,68 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.DTO.Common;
using Lumina.Contracts.DTO.MediaContributors;
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
using System.Collections.Generic;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for the metadata of a book returned by a metadata provider.
/// </summary>
/// <param name="Title">The title of the book.</param>
/// <param name="OriginalTitle">The original title of the book, if different from the current title.</param>
/// <param name="Description">A brief description or summary of the book.</param>
/// <param name="ReleaseInfo">The release information, including release date and other relevant details.</param>
/// <param name="Genres">The list of genres associated with the book.</param>
/// <param name="Tags">The list of tags that further describe or categorize the book.</param>
/// <param name="Language">The language in which the book is written.</param>
/// <param name="OriginalLanguage">The original language of the book, if it has been translated.</param>
/// <param name="Publisher">The name of the publisher of the book.</param>
/// <param name="PageCount">The number of pages in the book.</param>
/// <param name="Format">The format of the book (e.g., Hardcover, Paperback), if applicable.</param>
/// <param name="Edition">The edition of the book, if applicable.</param>
/// <param name="VolumeNumber">The volume or book number in the series, if applicable.</param>
/// <param name="Series">The series name, if the book is part of a series.</param>
/// <param name="ASIN">The ASIN (Amazon Standard Identification Number) of the book, if applicable.</param>
/// <param name="GoodreadsId">The Goodreads ID of the book, if applicable.</param>
/// <param name="LCCN">The Library of Congress Control Number (LCCN) of the book, if applicable.</param>
/// <param name="OCLCNumber">The OCLC Number (WorldCat identifier) of the book, if applicable.</param>
/// <param name="OpenLibraryId">The Open Library ID of the book, if applicable.</param>
/// <param name="LibraryThingId">The LibraryThing ID of the book, if applicable.</param>
/// <param name="GoogleBooksId">The Google Books ID of the book, if applicable.</param>
/// <param name="BarnesAndNobleId">The Barnes &amp; Noble ID of the book, if applicable.</param>
/// <param name="AppleBooksId">The Apple Books ID of the book, if applicable.</param>
/// <param name="Isbns">The list of ISBN (International Standard Book Number) of the book.</param>
/// <param name="Contributors">The list of media contributors of the book.</param>
/// <param name="Ratings">The list of ratings for the book.</param>
/// <param name="CoverImagePath">The path of the cover image of the book, if applicable.</param>
public sealed record BookMetadataDto(
string? Title,
string? OriginalTitle,
string? Description,
ReleaseInfoDto? ReleaseInfo,
List<GenreDto>? Genres,
List<TagDto>? Tags,
LanguageInfoDto? Language,
LanguageInfoDto? OriginalLanguage,
string? Publisher,
int? PageCount,
BookFormat? Format,
string? Edition,
float? VolumeNumber,
BookSeriesDto? Series,
string? ASIN,
string? GoodreadsId,
string? LCCN,
string? OCLCNumber,
string? OpenLibraryId,
string? LibraryThingId,
string? GoogleBooksId,
string? BarnesAndNobleId,
string? AppleBooksId,
List<IsbnDto>? Isbns,
List<MediaContributorDto>? Contributors,
List<BookRatingDto>? Ratings,
string? CoverImagePath
) : MetadataDto;
@@ -0,0 +1,26 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.DTO.Common;
using System;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for a book metadata lookup.
/// </summary>
/// <param name="LibraryId">The Id of the media library the book belongs to.</param>
/// <param name="Path">The file system path of the book.</param>
/// <param name="Isbn">The ISBN (International Standard Book Number) of the book, if applicable.</param>
/// <param name="OpenLibraryId">The Open Library ID of the book, if applicable.</param>
/// <param name="Title">The title of the book, if applicable.</param>
/// <param name="Author">The author of the book, if applicable.</param>
/// <param name="LanguageCode">The language code of the book, if applicable.</param>
public sealed record BookMetadataLookupDto(
Guid LibraryId,
string Path,
string? Isbn = null,
string? OpenLibraryId = null,
string? Title = null,
string? Author = null,
string? LanguageCode = null
) : MetadataLookupDto;
@@ -0,0 +1,22 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.DTO.Common;
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for book rating.
/// </summary>
/// <param name="Value">The rating value for the book.</param>
/// <param name="MaxValue">The maximum possible rating value for the book.</param>
/// <param name="Source">The source of the book rating (e.g., a specific website or platform).</param>
/// <param name="VoteCount">The number of votes that contributed to the book rating.</param>
[DebuggerDisplay("{Value}/{MaxValue}")]
public record BookRatingDto(
decimal? Value,
decimal? MaxValue,
BookRatingSource? Source,
int? VoteCount
) : RatingDto(Value, MaxValue, VoteCount);
@@ -0,0 +1,14 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for book series.
/// </summary>
/// <param name="Title">The title of the book series.</param>
[DebuggerDisplay("Title: {Title}")]
public record BookSeriesDto(
string? Title
);
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for ISBN information.
/// </summary>
/// <param name="Value">The ISBN value.</param>
/// <param name="Format">The format of the ISBN (e.g., ISBN-10 or ISBN-13).</param>
[DebuggerDisplay("ISBN: {Value} ({Format})")]
public record IsbnDto(
string? Value,
IsbnFormat? Format
);
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for the normalized document model of a book, produced by a reader plugin.
/// </summary>
/// <param name="Title">The title of the book.</param>
/// <param name="Author">The author of the book, if known.</param>
/// <param name="CoverResourceKey">The resource key of the cover image of the book, if applicable.</param>
/// <param name="TableOfContents">The hierarchical table of contents of the book.</param>
/// <param name="Spine">The ordered spine of the reading sections of the book.</param>
/// <param name="Resources">The resources of the book, keyed by their resource key.</param>
/// <param name="HasTextContent">Whether the book has extractable text content. A scanned book, whose pages are only images, has no text content.</param>
[DebuggerDisplay("Title: {Title}")]
public sealed record ReadingDocumentDto(
string Title,
string? Author,
string? CoverResourceKey,
IReadOnlyList<ReadingTocEntryDto> TableOfContents,
IReadOnlyList<ReadingSpineItemDto> Spine,
IReadOnlyDictionary<string, ReadingResourceInfoDto> Resources,
bool HasTextContent
);
@@ -0,0 +1,16 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for the binary data of a reading resource.
/// </summary>
/// <param name="Data">The binary data of the resource.</param>
/// <param name="MimeType">The MIME type of the resource.</param>
[DebuggerDisplay("MimeType: {MimeType}")]
public sealed record ReadingResourceDataDto(
byte[] Data,
string MimeType
);
@@ -0,0 +1,16 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for the file information of a resource of a reading document.
/// </summary>
/// <param name="RelativeFilePath">The path of the resource file, relative to the extraction directory of the book.</param>
/// <param name="MimeType">The MIME type of the resource.</param>
[DebuggerDisplay("RelativeFilePath: {RelativeFilePath}")]
public sealed record ReadingResourceInfoDto(
string RelativeFilePath,
string MimeType
);
@@ -0,0 +1,18 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for the content of a reading section.
/// </summary>
/// <param name="LocationRef">The opaque location reference of the reading section.</param>
/// <param name="Title">The title of the reading section, if known.</param>
/// <param name="ContentHtml">The sanitized HTML content of the reading section, ready to be rendered by the client.</param>
[DebuggerDisplay("LocationRef: {LocationRef}")]
public sealed record ReadingSectionDto(
string LocationRef,
string? Title,
string ContentHtml
);
@@ -0,0 +1,18 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for an item of the spine of a reading document.
/// </summary>
/// <param name="LocationRef">The opaque location reference of the reading section.</param>
/// <param name="Title">The title of the reading section, if known.</param>
/// <param name="RelativeSectionFilePath">The path of the section content file, relative to the extraction directory of the book.</param>
[DebuggerDisplay("LocationRef: {LocationRef}")]
public sealed record ReadingSpineItemDto(
string LocationRef,
string? Title,
string RelativeSectionFilePath
);
@@ -0,0 +1,19 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary.BookLibrary.Reading;
/// <summary>
/// Data transfer object for an entry of the table of contents of a reading document.
/// </summary>
/// <param name="Label">The label of the table of contents entry.</param>
/// <param name="LocationRef">The opaque location reference of the reading section the entry points to.</param>
/// <param name="Children">The child entries of the table of contents entry.</param>
[DebuggerDisplay("Label: {Label}")]
public sealed record ReadingTocEntryDto(
string Label,
string LocationRef,
IReadOnlyList<ReadingTocEntryDto> Children
);
@@ -0,0 +1,34 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Contracts.DTO.Common;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace Lumina.Contracts.DTO.MediaLibrary.WrittenContentLibrary;
/// <summary>
/// Data transfer object for written content metadata.
/// </summary>
/// <param name="Title">The title of the written content. Required.</param>
/// <param name="OriginalTitle">The original title of the written content, if different from the current title. Optional.</param>
/// <param name="Description">Gets a brief description or summary of the written content. Optional.</param>
/// <param name="ReleaseInfo">The release information, including release date and other relevant details. Required.</param>
/// <param name="Genres">The list of genres associated with the written content. Required.</param>
/// <param name="Tags">The list of tags that further describe or categorize the written content. Required.</param>
/// <param name="Language">The language in which the written content is written. Optional.</param>
/// <param name="OriginalLanguage">The original language of the written content, if it has been translated. Optional.</param>
/// <param name="Publisher">The name of the publisher of the written content. Optional.</param>
/// <param name="PageCount">The number of pages in the written content. Optional.</param>
[DebuggerDisplay("Title: {Title}")]
public record WrittenContentMetadataDto(
string? Title,
string? OriginalTitle,
string? Description,
ReleaseInfoDto? ReleaseInfo,
List<GenreDto>? Genres,
List<TagDto>? Tags,
LanguageInfoDto? Language,
LanguageInfoDto? OriginalLanguage,
string? Publisher,
int? PageCount
);