Example #1
0
 /// <summary>
 /// Retrieves the genre list from the Shoutcast server
 /// </summary>
 /// <returns>A List of ShoutcastGenre objects</returns>
 public List<ShoutcastGenre> GetGenres()
 {
     WebRequestHandler wrh = new WebRequestHandler();
     string response = wrh.MakeWebRequest(m_GenresUrl + "?rss=1");
     m_Genres = ParseGenres(response);
     return m_Genres;
 }
Example #2
0
 /// <summary>
 /// Retrieves a list of all Shoutcast stations tagged with
 /// the given genre name
 /// </summary>
 /// <param name="genre">The name of the genre to search for</param>
 /// <returns>A List of ShoutcastStation objects</returns>
 public List<ShoutcastStation> GetStationsByGenre(string genreName)
 {
     WebRequestHandler wrh = new WebRequestHandler();
     string response = wrh.MakeWebRequest(m_StationsByGenreUrl + genreName);
     return ParseStations(response);
 }