mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-27 00:16: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);
|
|
}
|
|
}
|
|
} |