chore: init commit from GitHub
Some checks are pending
Deploy / update (push) Waiting to run
Build Project .NET / build (push) Waiting to run

This commit is contained in:
Lisoveliy
2025-05-12 19:44:33 +03:00
parent 11a3f40596
commit aebe654c38
107 changed files with 18953 additions and 403 deletions

View File

@@ -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!;
}
}