Пример #1
0
        /// <summary>
        /// Gets the backdrops.
        /// </summary>
        /// <param name="images">The images.</param>
        private IEnumerable <MovieDbSeriesProvider.Backdrop> GetBackdrops(MovieDbSeriesProvider.Images images)
        {
            var eligibleBackdrops = images.backdrops == null ? new List <MovieDbSeriesProvider.Backdrop>() :
                                    images.backdrops;

            return(eligibleBackdrops.OrderByDescending(i => i.vote_average)
                   .ThenByDescending(i => i.vote_count));
        }
Пример #2
0
 /// <summary>
 /// Gets the posters.
 /// </summary>
 /// <param name="images">The images.</param>
 private IEnumerable <MovieDbSeriesProvider.Poster> GetPosters(MovieDbSeriesProvider.Images images)
 {
     return(images.posters ?? new List <MovieDbSeriesProvider.Poster>());
 }