/// <summary>
        /// Returns a <see cref="ImageCollection"/> for the given <paramref name="id"/>.
        /// </summary>
        /// <param name="id">TMDB id of movie</param>
        /// <param name="language">Language</param>
        /// <returns>Image collection</returns>
        public ImageCollection GetImages(int id, string language)
        {
            string          url    = GetUrl(URL_GETIMAGES, language, id);
            ImageCollection result = _downloader.Download <ImageCollection>(url);

            result.SetMovieIds();
            return(result);
        }
        /// <summary>
        /// Returns a <see cref="ImageCollection"/> for the given <paramref name="id"/>.
        /// </summary>
        /// <param name="id">TMDB id of series</param>
        /// <param name="season">Season number</param>
        /// <param name="language">Language</param>
        /// <returns>Image collection</returns>
        public ImageCollection GetSeriesSeasonImages(int id, int season, string language)
        {
            string          url    = GetUrl(URL_GETSEASONIMAGES, language, id, season);
            ImageCollection result = _downloader.Download <ImageCollection>(url);

            result.SetMovieIds();
            return(result);
        }
Exemple #3
0
        protected async Task <ImageCollection> GetImagesAsync(string getUrl, string language, params object[] args)
        {
            string          url    = GetUrl(getUrl, language, args);
            ImageCollection result = await _downloader.DownloadAsync <ImageCollection>(url).ConfigureAwait(false);

            result.SetMovieIds();
            return(result);
        }
        /// <summary>
        /// Returns a <see cref="ImageCollection"/> for the given <paramref name="id"/>.
        /// </summary>
        /// <param name="id">TMDB id of series</param>
        /// <param name="season">Season number</param>
        /// <param name="episode">Episode number</param>
        /// <param name="language">Language</param>
        /// <returns>Image collection</returns>
        public ImageCollection GetSeriesEpisodeImages(int id, int season, int episode, string language)
        {
            string          url    = GetUrl(URL_GETEPISODEIMAGES, language, id, season, episode);
            ImageCollection result = _downloader.Download <ImageCollection>(url);

            result.SetMovieIds();
            return(result);
        }