mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +00:00
Added missing currently_playing_type field to PlaybackContext (#292)
This commit is contained in:
parent
6591b5f64c
commit
ec99296f7d
20
SpotifyAPI.Web/Enums/TrackType.cs
Normal file
20
SpotifyAPI.Web/Enums/TrackType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
@ -31,5 +31,9 @@ namespace SpotifyAPI.Web.Models
|
|||||||
|
|
||||||
[JsonProperty("item")]
|
[JsonProperty("item")]
|
||||||
public FullTrack Item { get; set; }
|
public FullTrack Item { get; set; }
|
||||||
|
|
||||||
|
[JsonProperty("currently_playing_type")]
|
||||||
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
|
public TrackType CurrentlyPlayingType { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user