Release 1.0.0.3: fix artist wrapper and lyrics fallback
This commit is contained in:
1 parent
16515c5166
commit
84e3ea34c8
10 files changed
+92
-13
No files matched your search
@@ -229,6 +229,22 @@ public sealed class ArtistLinkDto
|
||||
public string? SocialNetwork { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Response of /artists/{id}.</summary>
|
||||
public sealed class ArtistDetailResponse
|
||||
{
|
||||
[JsonPropertyName("artist")]
|
||||
public ArtistDto? Artist { get; set; }
|
||||
|
||||
[JsonPropertyName("albums")]
|
||||
public List<AlbumDto> Albums { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("similarArtists")]
|
||||
public List<ArtistDto> SimilarArtists { get; set; } = [];
|
||||
|
||||
[JsonPropertyName("allCovers")]
|
||||
public List<CoverDto> AllCovers { get; set; } = [];
|
||||
}
|
||||
|
||||
/// <summary>Response of /artists/{id}/info.</summary>
|
||||
public sealed class ArtistInfoResponse
|
||||
{
|
||||
@@ -297,6 +313,30 @@ public sealed class GenreTitleDto
|
||||
public string? FullTitle { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Track supplement response.</summary>
|
||||
public sealed class SupplementResponse
|
||||
{
|
||||
[JsonPropertyName("result")]
|
||||
public SupplementDto? Result { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Track supplement payload.</summary>
|
||||
public sealed class SupplementDto
|
||||
{
|
||||
[JsonPropertyName("lyrics")]
|
||||
public SupplementLyricsDto? Lyrics { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Lyrics contained in a track supplement.</summary>
|
||||
public sealed class SupplementLyricsDto
|
||||
{
|
||||
[JsonPropertyName("lyrics")]
|
||||
public string? Lyrics { get; set; }
|
||||
|
||||
[JsonPropertyName("fullLyrics")]
|
||||
public string? FullLyrics { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Lyrics lookup response.</summary>
|
||||
public sealed class LyricsResponse
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user