public static List <SongSource> GetSources(HttpWebResponse response) { StreamReader reader = new StreamReader(response.GetResponseStream()); string json = reader.ReadToEnd(); return(SongParsing.ParseSources(json)); }
public static Song GetDetails(HttpWebResponse response) { StreamReader reader = new StreamReader(response.GetResponseStream()); string json = reader.ReadToEnd(); return(SongParsing.ParseDetails(json)); }