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

19 lines
266 B
C#
Raw Permalink Normal View History

2020-05-01 19:05:28 +01:00
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace SpotifyAPI.Web
{
2020-05-02 21:48:21 +01:00
public enum ItemType
2020-05-01 19:05:28 +01:00
{
Track,
Episode
}
public class BasePlayableItem
2020-05-01 19:05:28 +01:00
{
[JsonConverter(typeof(StringEnumConverter))]
public ItemType Type { get; }
2020-05-01 19:05:28 +01:00
}
}
2020-05-25 17:00:38 +01:00