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,18 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Plugins.CoverArtArchive.Common.Models.Contracts.Responses;
/// <summary>
/// Represents a response for the artwork of a release or a release group from the Cover Art Archive API.
/// </summary>
internal sealed record CoverArtArchiveArtworkResponse
{
/// <summary>
/// Gets the images of the artwork. It is nullable because the deserializer writes a JSON null over the initializer, and may also contain null elements.
/// </summary>
[JsonPropertyName("images")]
public List<CoverArtArchiveImageResponse?>? Images { get; init; }
}
@@ -0,0 +1,49 @@
#region ========================================================================= USING =====================================================================================
using System.Collections.Generic;
using System.Text.Json.Serialization;
#endregion
namespace Lumina.Plugins.CoverArtArchive.Common.Models.Contracts.Responses;
/// <summary>
/// Represents a response for a single image of the artwork of a release or a release group from the Cover Art Archive API.
/// </summary>
internal sealed record CoverArtArchiveImageResponse
{
/// <summary>
/// Gets the URL of the full size image.
/// </summary>
[JsonPropertyName("image")]
public string? Image { get; init; }
/// <summary>
/// Gets the URL of the thumbnail of the image.
/// </summary>
[JsonPropertyName("thumbnail")]
public string? Thumbnail { get; init; }
/// <summary>
/// Gets the types of the image, like "Front", "Back", "Booklet", "Medium", "Tray", "Spine" or "Poster".
/// It is nullable because the deserializer writes a JSON null over the initializer, and may also contain null elements.
/// </summary>
[JsonPropertyName("types")]
public List<string?>? Types { get; init; }
/// <summary>
/// Gets a value indicating whether the image is the front cover.
/// </summary>
[JsonPropertyName("front")]
public bool IsFront { get; init; }
/// <summary>
/// Gets a value indicating whether the image is the back cover.
/// </summary>
[JsonPropertyName("back")]
public bool IsBack { get; init; }
/// <summary>
/// Gets the optional comment describing the image.
/// </summary>
[JsonPropertyName("comment")]
public string? Comment { get; init; }
}
@@ -0,0 +1,27 @@
#region ========================================================================= USING =====================================================================================
using System;
#endregion
namespace Lumina.Plugins.CoverArtArchive.Common.Models.DTO.Settings;
/// <summary>
/// Data transfer object for the settings that configure the Cover Art Archive artwork plugin.
/// </summary>
internal sealed class CoverArtArchiveSettingsDto
{
/// <summary>
/// Gets or sets the user agent sent with every request to the Cover Art Archive API.
/// </summary>
public string UserAgent { get; set; } = "Lumina-CoverArtArchive/1.0";
/// <summary>
/// Gets or sets the contact email sent with every request to the Cover Art Archive API.
/// The MetaBrainz services expect a meaningful user agent that carries a way to contact its author.
/// </summary>
public string? ContactEmail { get; set; }
/// <summary>
/// Gets or sets the minimum interval between consecutive requests to the Cover Art Archive API, so that the public service is not overwhelmed.
/// </summary>
public TimeSpan MinimumRequestInterval { get; set; } = TimeSpan.FromSeconds(1.0);
}