chore: init commit from GitHub
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Spotify;
|
||||
|
||||
/// <summary>
|
||||
/// Json Structure for spotify auth response
|
||||
/// </summary>
|
||||
public class SpotifyAuthResponse : DefaultAuthResponse;
|
||||
@@ -0,0 +1,31 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Spotify;
|
||||
|
||||
/// <summary>
|
||||
/// Json Structure for spotify search response
|
||||
/// </summary>
|
||||
internal class SpotifySearchResponse
|
||||
{
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
[JsonPropertyName("tracks")] public TrackList Tracks { get; set; } = null!;
|
||||
|
||||
public class TrackList
|
||||
{
|
||||
[JsonPropertyName("items")] public List<Item> Items { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class ExternalUrls
|
||||
{
|
||||
[JsonPropertyName("spotify")] public string Spotify { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class Item
|
||||
{
|
||||
[JsonPropertyName("href")] public string? Href { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("id")] public string? Id { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("external_urls")] public ExternalUrls ExternalUrls { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Spotify;
|
||||
|
||||
/// <summary>
|
||||
/// Json Structure for tidal track response
|
||||
/// </summary>
|
||||
public class SpotifyTrackResponse
|
||||
{
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("artists")] public Artist[] Artists { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("album")] public Album Albums { get; set; } = null!;
|
||||
|
||||
public class Artist
|
||||
{
|
||||
[JsonPropertyName("id")] public string Id { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class Album
|
||||
{
|
||||
[JsonPropertyName("id")] public string Id { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user