mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds the Cover Art Archive music artwork plugin, its fixtures, and its unit and security test suites
This commit is contained in:
1 parent
c8a8d8750b
commit
fb05561619
36 files changed
+4029
No files matched your search
+18
@@ -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; }
|
||||
}
|
||||
+49
@@ -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; }
|
||||
}
|
||||
Reference in new issue
Block a user