public EpisodeListResponse GetEpisodeList(int seriesId) { var rawResponse = Retriever.Get(GetURLForEpisodeList(seriesId)); ValidateResponse <ShowNotFoundException>(rawResponse); var response = XDocument.Load(rawResponse); return(_mapper.MapXMLToEpisodeList(response)); }
public SeriesInfoResponse GetSeriesInfo(int seriesId) { var rawResponse = Retriever.Get(GetURLForSeriesInfo(seriesId)); ValidateResponse <ShowNotFoundException>(rawResponse); var response = XDocument.Load(rawResponse); return(_mapper.MapXMLToSeriesInfo(response)); }
public EpisodeInfoResponse GetEpisodeInfo(int showID, string episodeLabel) { var rawResponse = Retriever.Get(GetURLForEpisoddeInfo(showID, episodeLabel)); ValidateResponse(rawResponse); var response = XDocument.Load(rawResponse); return(_mapper.MapXMLToEpisodeInfoResponse(response)); }
public FullShowInfoResponse GetFullShowInfo(int showId) { var rawResponse = Retriever.Get(GetURLForFullShowInfo(showId)); ValidateResponse(rawResponse); var response = XDocument.Load(rawResponse); return(_mapper.MapXMLToFullShowInfoResponse(response)); }
protected XDocument GetXML(string path) { return(XDocument.Load(Retriever.Get(path))); }