mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Adds the MusicBrainz music metadata plugin, its fixtures, and its unit test suite
This commit is contained in:
1 parent
1ffa14cec4
commit
0abda472c6
101 files changed
+11461
No files matched your search
+54
@@ -0,0 +1,54 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Plugins.MusicBrainz.Common.Models.Contracts.Responses;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a response for an area from the MusicBrainz API.
|
||||
/// </summary>
|
||||
internal sealed record MusicBrainzAreaResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the MusicBrainz identifier of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("id")]
|
||||
public string? Id { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("name")]
|
||||
public string? Name { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the sort name of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("sort-name")]
|
||||
public string? SortName { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the disambiguation comment of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("disambiguation")]
|
||||
public string? Disambiguation { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the MusicBrainz type of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("type")]
|
||||
public string? Type { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ISO 3166-1 codes of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("iso-3166-1-codes")]
|
||||
public List<string> Iso3166Part1Codes { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets the ISO 3166-2 codes of the area.
|
||||
/// </summary>
|
||||
[JsonPropertyName("iso-3166-2-codes")]
|
||||
public List<string> Iso3166Part2Codes { get; init; } = [];
|
||||
}
|
||||
Reference in new issue
Block a user