예제 #1
0
        /// <summary>
        /// Gets the backdrops.
        /// </summary>
        /// <param name="images">The images.</param>
        /// <returns>IEnumerable{MovieDbProvider.Backdrop}.</returns>
        private IEnumerable <MovieDbBoxSetProvider.Backdrop> GetBackdrops(MovieDbBoxSetProvider.Images images)
        {
            var eligibleBackdrops = images.backdrops == null ? new List <MovieDbBoxSetProvider.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>
 /// <returns>IEnumerable{MovieDbProvider.Poster}.</returns>
 private IEnumerable <MovieDbBoxSetProvider.Poster> GetPosters(MovieDbBoxSetProvider.Images images)
 {
     return(images.posters ?? new List <MovieDbBoxSetProvider.Poster>());
 }