mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-10-17 15:33:09 +01:00
24 lines
550 B
C#
24 lines
550 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace SpotifyAPI.Local.Models
|
|||
|
{
|
|||
|
public class SpotifyUri
|
|||
|
{
|
|||
|
public string Base { get; internal set; }
|
|||
|
public string Type { get; internal set; }
|
|||
|
public string Id { get; internal set; }
|
|||
|
|
|||
|
public SpotifyUri(string Uri)
|
|||
|
{
|
|||
|
string[] props = Uri.Split(':');
|
|||
|
this.Base = props[0];
|
|||
|
this.Type = props[1];
|
|||
|
this.Id = props[2];
|
|||
|
}
|
|||
|
}
|
|||
|
}
|