Spotify.NET/SpotifyAPI/Local/Models/SpotifyResource.cs
2016-03-31 12:08:23 +02:00

22 lines
462 B
C#

using Newtonsoft.Json;
using System;
namespace SpotifyAPI.Local.Models
{
public class SpotifyResource
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("uri")]
public string Uri { get; set; }
[JsonProperty("location")]
public TrackResourceLocation Location { get; set; }
public SpotifyUri ParseUri()
{
return SpotifyUri.Parse(Uri);
}
}
}