예제 #1
0
        public EpisodeListResponse GetEpisodeList(int seriesId)
        {
            var rawResponse = Retriever.Get(GetURLForEpisodeList(seriesId));

            ValidateResponse <ShowNotFoundException>(rawResponse);

            var response = XDocument.Load(rawResponse);

            return(_mapper.MapXMLToEpisodeList(response));
        }
예제 #2
0
        public SeriesInfoResponse GetSeriesInfo(int seriesId)
        {
            var rawResponse = Retriever.Get(GetURLForSeriesInfo(seriesId));

            ValidateResponse <ShowNotFoundException>(rawResponse);

            var response = XDocument.Load(rawResponse);

            return(_mapper.MapXMLToSeriesInfo(response));
        }
예제 #3
0
        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));
        }
예제 #4
0
        public FullShowInfoResponse GetFullShowInfo(int showId)
        {
            var rawResponse = Retriever.Get(GetURLForFullShowInfo(showId));

            ValidateResponse(rawResponse);

            var response = XDocument.Load(rawResponse);

            return(_mapper.MapXMLToFullShowInfoResponse(response));
        }
예제 #5
0
 protected XDocument GetXML(string path)
 {
     return(XDocument.Load(Retriever.Get(path)));
 }