Spotify.NET/SpotifyAPI.Web/Models/Response/FullTrack.cs
Lewis-Fam 9dbd210a2f
Fixed issues #926, and #928. (#942)
* Fixed issues #926, and #928.
Added JsonConverter attributes to properties.

* Fixed complier warning CA1305
2024-02-10 11:03:22 +01:00

35 lines
1.3 KiB
C#

using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SpotifyAPI.Web
{
public class FullTrack : IPlayableItem
{
public SimpleAlbum Album { get; set; } = default!;
public List<SimpleArtist> Artists { get; set; } = default!;
public List<string> AvailableMarkets { get; set; } = default!;
public int DiscNumber { get; set; }
[JsonConverter(typeof(DoubleToIntConverter))]
public int DurationMs { get; set; }
public bool Explicit { get; set; }
public Dictionary<string, string> ExternalIds { get; set; } = default!;
public Dictionary<string, string> ExternalUrls { get; set; } = default!;
public string Href { get; set; } = default!;
public string Id { get; set; } = default!;
public bool IsPlayable { get; set; }
public LinkedTrack LinkedFrom { get; set; } = default!;
public Dictionary<string, string> Restrictions { get; set; } = default!;
public string Name { get; set; } = default!;
public int Popularity { get; set; }
public string PreviewUrl { get; set; } = default!;
public int TrackNumber { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public ItemType Type { get; set; }
public string Uri { get; set; } = default!;
public bool IsLocal { get; set; }
}
}