// Add/Delete methods public static bool Like(Track track, bool dislike = true) { return Like(track.ID, dislike); }
public static void DownloadTrack(Track track) { var wc = new WebClient(); if(!Directory.Exists("Tracks")) Directory.CreateDirectory("Tracks"); wc.DownloadFileAsync(new Uri(track.StreamUrl), "Tracks\\" + track.Title + ".mp3"); }
static void OnSongStarted(Track track) { if(SongStarted != null) SongStarted(track, EventArgs.Empty); }
// Add/Delete methods public static bool Like(Track track, bool dislike = true) { return(Like(track.ID, dislike)); }