public override void ClickDisplayedShow(int selectedIndex) { //Stock standard request string jsonContent; using (WebClient webClient = new WebClient()) { jsonContent = webClient.DownloadString(EPISODES_URL + shows.shows[selectedIndex].showId); } JavaScriptSerializer jss = new JavaScriptSerializer(); episodes = jss.Deserialize <Episodes3Now>(jsonContent); }
public override void CleanEpisodes() { episodes = null; }