chore: init commit from GitHub
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Tidal;
|
||||
|
||||
/// <summary>
|
||||
/// Json Structure for tidal track response
|
||||
/// </summary>
|
||||
public class TidalArtistResponse
|
||||
{
|
||||
[JsonPropertyName("data")] public DataObject Data { get; set; } = new();
|
||||
|
||||
public class DataObject
|
||||
{
|
||||
[JsonPropertyName("attributes")] public AttributesObject Attributes { get; set; } = new();
|
||||
|
||||
}
|
||||
|
||||
public class AttributesObject
|
||||
{
|
||||
[JsonPropertyName("name")] public string Name { get; set; } = null!;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Tidal;
|
||||
|
||||
public class TidalAuthResponse : DefaultAuthResponse;
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Tidal;
|
||||
|
||||
internal class TidalSearchResponse
|
||||
{
|
||||
[JsonPropertyName("data")] public TidalTrackResponse.DataObject Data { get; set; } = null!;
|
||||
|
||||
public class Track
|
||||
{
|
||||
[JsonPropertyName("resource")] public TidalTrackResponse.DataObject DataObject { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
// ReSharper disable NullableWarningSuppressionIsUsed
|
||||
|
||||
namespace SWAD.API.Models.JsonStructures.MusicAPI.Tidal;
|
||||
|
||||
/// <summary>
|
||||
/// Json Structure for tidal track response
|
||||
/// </summary>
|
||||
public class TidalTrackResponse
|
||||
{
|
||||
[JsonPropertyName("data")] public DataObject Data { get; set; } = new();
|
||||
|
||||
public class DataObject
|
||||
{
|
||||
[JsonPropertyName("attributes")] public AttributesObject Attributes { get; set; } = new();
|
||||
[JsonPropertyName("relationships")] public RelationShipsObject RelationShips { get; set; } = new();
|
||||
|
||||
}
|
||||
|
||||
public class AttributesObject
|
||||
{
|
||||
[JsonPropertyName("title")] public string Title { get; set; } = null!;
|
||||
|
||||
}
|
||||
|
||||
public class RelationShipsObject
|
||||
{
|
||||
[JsonPropertyName("artists")] public ArtistObject Artist { get; set; } = null!;
|
||||
[JsonPropertyName("tracks")] public ArtistObject Track { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class ArtistObject
|
||||
{
|
||||
[JsonPropertyName("data")] public List<ArtistDataObject> Data { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class TrackObject
|
||||
{
|
||||
[JsonPropertyName("data")] public List<TrackDataObject> Data { get; set; } = null!;
|
||||
}
|
||||
|
||||
public class TrackDataObject
|
||||
{
|
||||
[JsonPropertyName("id")] public string Id { get; set; } = null!;
|
||||
}
|
||||
|
||||
|
||||
public class ArtistDataObject
|
||||
{
|
||||
[JsonPropertyName("id")] public string Id { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user