2020-05-07 17:03:20 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class CurrentlyPlayingContext
|
|
|
|
{
|
2020-05-25 17:00:38 +01:00
|
|
|
public Device Device { get; set; } = default!;
|
|
|
|
public string RepeatState { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public bool ShuffleState { get; set; }
|
2020-05-25 17:00:38 +01:00
|
|
|
public Context Context { get; set; } = default!;
|
2020-05-08 09:25:33 +01:00
|
|
|
public long Timestamp { get; set; }
|
|
|
|
public int ProgressMs { get; set; }
|
|
|
|
public bool IsPlaying { get; set; }
|
2020-05-07 17:03:20 +01:00
|
|
|
|
2020-06-06 16:43:49 +01:00
|
|
|
/// <summary>
|
|
|
|
/// Can be a FullTrack or FullEpisode
|
|
|
|
/// </summary>
|
|
|
|
/// <value></value>
|
2020-05-07 17:03:20 +01:00
|
|
|
[JsonConverter(typeof(PlayableItemConverter))]
|
2020-05-25 17:00:38 +01:00
|
|
|
public IPlayableItem Item { get; set; } = default!;
|
2020-05-07 17:03:20 +01:00
|
|
|
|
2020-05-25 17:00:38 +01:00
|
|
|
public string CurrentlyPlayingType { get; set; } = default!;
|
|
|
|
public Actions Actions { get; set; } = default!;
|
2020-05-07 17:03:20 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|