mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 07:56:26 +00:00
22 lines
462 B
C#
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);
|
|
}
|
|
}
|
|
} |