Added missing currently_playing_type field to PlaybackContext (#292)

This commit is contained in:
Alessandro Attard Barbini 2018-10-01 19:53:04 +02:00 committed by Jonas Dellinger
parent 6591b5f64c
commit ec99296f7d
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
using System;
namespace SpotifyAPI.Web.Enums
{
[Flags]
public enum TrackType
{
[String("track")]
Track = 1,
[String("episode")]
Episode = 2,
[String("ad")]
Ad = 4,
[String("unknown")]
Unknown = 8
}
}

View File

@ -31,5 +31,9 @@ namespace SpotifyAPI.Web.Models
[JsonProperty("item")]
public FullTrack Item { get; set; }
[JsonProperty("currently_playing_type")]
[JsonConverter(typeof(StringEnumConverter))]
public TrackType CurrentlyPlayingType { get; set; }
}
}