Spotify.NET/SpotifyAPI/Local/Models/SpotifyResource.cs

22 lines
462 B
C#
Raw Normal View History

using Newtonsoft.Json;
using System;
namespace SpotifyAPI.Local.Models
{
public class SpotifyResource
{
[JsonProperty("name")]
2016-03-31 11:08:23 +01:00
public string Name { get; set; }
[JsonProperty("uri")]
2016-03-31 11:08:23 +01:00
public string Uri { get; set; }
[JsonProperty("location")]
public TrackResourceLocation Location { get; set; }
public SpotifyUri ParseUri()
{
return SpotifyUri.Parse(Uri);
}
}
}