2015-10-16 23:44:35 +01:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
2015-07-07 17:11:11 +01:00
|
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Local.Models
|
|
|
|
|
{
|
|
|
|
|
public class SpotifyResource
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("name")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Name { get; set; }
|
2015-10-16 23:44:35 +01:00
|
|
|
|
|
2015-07-07 17:11:11 +01:00
|
|
|
|
[JsonProperty("uri")]
|
2016-03-31 11:08:23 +01:00
|
|
|
|
public string Uri { get; set; }
|
2015-10-16 23:44:35 +01:00
|
|
|
|
|
2015-07-07 17:11:11 +01:00
|
|
|
|
[JsonProperty("location")]
|
|
|
|
|
public TrackResourceLocation Location { get; set; }
|
2016-03-20 04:02:15 +00:00
|
|
|
|
|
|
|
|
|
public SpotifyUri ParseUri()
|
|
|
|
|
{
|
2016-03-21 14:48:50 +00:00
|
|
|
|
return SpotifyUri.Parse(Uri);
|
2016-03-20 04:02:15 +00:00
|
|
|
|
}
|
2015-07-07 17:11:11 +01:00
|
|
|
|
}
|
2015-10-16 23:44:35 +01:00
|
|
|
|
}
|