We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6591b5f commit ec99296Copy full SHA for ec99296
SpotifyAPI.Web/Enums/TrackType.cs
@@ -0,0 +1,20 @@
1
+using System;
2
+
3
+namespace SpotifyAPI.Web.Enums
4
+{
5
+ [Flags]
6
+ public enum TrackType
7
+ {
8
+ [String("track")]
9
+ Track = 1,
10
11
+ [String("episode")]
12
+ Episode = 2,
13
14
+ [String("ad")]
15
+ Ad = 4,
16
17
+ [String("unknown")]
18
+ Unknown = 8
19
+ }
20
+}
SpotifyAPI.Web/Models/PlaybackContext.cs
@@ -31,5 +31,9 @@ public class PlaybackContext : BasicModel
31
32
[JsonProperty("item")]
33
public FullTrack Item { get; set; }
34
35
+ [JsonProperty("currently_playing_type")]
36
+ [JsonConverter(typeof(StringEnumConverter))]
37
+ public TrackType CurrentlyPlayingType { get; set; }
38
}
39
0 commit comments