Exemplo n.º 1
0
 // Add/Delete methods
 public static bool Like(Track track, bool dislike = true)
 {
     return Like(track.ID, dislike);
 }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 static void OnSongStarted(Track track)
 {
     if(SongStarted != null)
         SongStarted(track, EventArgs.Empty);
 }
Exemplo n.º 4
0
 // Add/Delete methods
 public static bool Like(Track track, bool dislike = true)
 {
     return(Like(track.ID, dislike));
 }