forked from JohnnyCrazy/SpotifyAPI-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlaybackContext.cs
More file actions
39 lines (30 loc) · 1.05 KB
/
PlaybackContext.cs
File metadata and controls
39 lines (30 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using SpotifyAPI.Web.Enums;
namespace SpotifyAPI.Web.Models
{
public class PlaybackContext : BasicModel
{
[JsonProperty("device")]
public Device Device { get; set; }
[JsonProperty("repeat_state")]
[JsonConverter(typeof(StringEnumConverter))]
public RepeatState RepeatState { get; set; }
[JsonProperty("shuffle_state")]
public bool ShuffleState { get; set; }
[JsonProperty("context")]
public Context Context { get; set; }
[JsonProperty("timestamp")]
public long Timestamp { get; set; }
[JsonProperty("progress_ms")]
public int ProgressMs { get; set; }
[JsonProperty("is_playing")]
public bool IsPlaying { get; set; }
[JsonProperty("item")]
public FullTrack Item { get; set; }
[JsonProperty("currently_playing_type")]
[JsonConverter(typeof(StringEnumConverter))]
public TrackType CurrentlyPlayingType { get; set; }
}
}