Spotify.NET/SpotifyAPI/Web/Models/FullTrack.cs

69 lines
1.9 KiB
C#
Raw Normal View History

using Newtonsoft.Json;
using System;
using System.Collections.Generic;
namespace SpotifyAPI.Web.Models
{
public class FullTrack : BasicModel
{
[JsonProperty("album")]
public SimpleAlbum Album { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("artists")]
public List<SimpleArtist> Artists { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("available_markets")]
public List<String> AvailableMarkets { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("disc_number")]
public int DiscNumber { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("duration_ms")]
public int DurationMs { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("explicit")]
public Boolean Explicit { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("external_ids")]
public Dictionary<String, String> ExternalIds { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("external_urls")]
public Dictionary<String, String> ExternUrls { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("href")]
public String Href { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("id")]
public String Id { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("name")]
public String Name { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("popularity")]
public int Popularity { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("preview_url")]
public String PreviewUrl { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("track_number")]
public int TrackNumber { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("type")]
public String Type { get; set; }
2015-07-26 13:03:53 +01:00
[JsonProperty("uri")]
public String Uri { get; set; }
/// <summary>
2015-07-26 13:03:53 +01:00
/// Only filled when the "market"-parameter was supplied!
/// </summary>
[JsonProperty("is_playable")]
public Boolean? IsPlayable { get; set; }
/// <summary>
2015-07-26 13:03:53 +01:00
/// Only filled when the "market"-parameter was supplied!
/// </summary>
[JsonProperty("linked_from")]
public LinkedFrom LinkedFrom { get; set; }
}
2015-07-26 13:03:53 +01:00
}