Spotify.NET/SpotifyAPI.Web/Models/Response/CurrentlyPlayingContext.cs
2020-06-06 17:43:49 +02:00

27 lines
754 B
C#

using Newtonsoft.Json;
namespace SpotifyAPI.Web
{
public class CurrentlyPlayingContext
{
public Device Device { get; set; } = default!;
public string RepeatState { get; set; } = default!;
public bool ShuffleState { get; set; }
public Context Context { get; set; } = default!;
public long Timestamp { get; set; }
public int ProgressMs { get; set; }
public bool IsPlaying { get; set; }
/// <summary>
/// Can be a FullTrack or FullEpisode
/// </summary>
/// <value></value>
[JsonConverter(typeof(PlayableItemConverter))]
public IPlayableItem Item { get; set; } = default!;
public string CurrentlyPlayingType { get; set; } = default!;
public Actions Actions { get; set; } = default!;
}
}