Exemplo n.º 1
0
    public SongStream DownloadSong(DownloadAuthorization Authorization, string filePath)
    {
        // Turn off response buffering.
        System.Web.HttpContext.Current.Response.Buffer = false;
        // Return a song.
        SongStream song = new SongStream(filePath);

        return(song);
    }
Exemplo n.º 2
0
 /// <summary>
 /// Parse song data.
 /// </summary>
 private void ParseSongs()
 {
     try
     {
         SongStream ss = new SongStream(Profile.UserName, HashKey, DelayBetweenAPIRequests);
         ss.Read();
         if (ss.Songs != null && ss.Songs.Count > 0)
         {
             Profile.Songs.AddRange(ss.Songs);
         }
     }
     catch (Exception e)
     {
     }
 }