Spotify.NET/SpotifyAPI.Web/Models/Response/SimpleTrack.cs

29 lines
963 B
C#
Raw Normal View History

using System.Collections.Generic;
2020-05-02 21:48:21 +01:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SpotifyAPI.Web
{
public class SimpleTrack
{
2020-05-25 17:00:38 +01:00
public List<SimpleArtist> Artists { get; set; } = default!;
public List<string> AvailableMarkets { get; set; } = default!;
public int DiscNumber { get; set; }
public int DurationMs { get; set; }
public bool Explicit { get; set; }
2020-05-25 17:00:38 +01:00
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; }
2020-05-25 17:00:38 +01:00
public LinkedTrack LinkedFrom { get; set; } = default!;
public string Name { get; set; } = default!;
public string PreviewUrl { get; set; } = default!;
public int TrackNumber { get; set; }
2020-05-02 21:48:21 +01:00
[JsonConverter(typeof(StringEnumConverter))]
public ItemType Type { get; set; }
2020-05-25 17:00:38 +01:00
public string Uri { get; set; } = default!;
}
}
2020-05-25 17:00:38 +01:00