Exemple #1
0
 /// <summary>
 /// Searchs for songs.
 /// </summary>
 /// <returns>The songs.</returns>
 /// <param name="search">search query.</param>
 /// <param name="country"> search country.</param>
 public SearchResult SearchSongs(string search, Country country)
 {
     logger.Debug("seach songs");
     SearchResult result = this.Exexute<SearchResult>(
         new GsRequest(
             "getSongSearchResults"
             ,
             new {
                 query = search,
                 country = country
             }
         )
     );
     return result;
 }
Exemple #2
0
 /// <summary>
 /// Gets a stream for a song.
 /// </summary>
 /// <returns>The stream.</returns>
 /// <param name="song">Song.</param>
 /// <param name="country">Country.</param>
 /// <param name="lowBitrate">Low bitrate stream</param>
 public Stream getStream(Song song, Country country, bool lowBitrate)
 {
     logger.Debug("get stream...");
     Stream stream = this.Exexute<Stream>(
         new GsRequest(
             "getSubscriberStreamKey",
             new {
                 songID = song.SongID,
                 country = country,
                 lowbitrate = lowBitrate
             }
         )
     );
     return stream;
 }