Example #1
0
        /// <summary>
        /// Gets the backdrops.
        /// </summary>
        /// <param name="images">The images.</param>
        /// <returns>IEnumerable{MovieDbProvider.Backdrop}.</returns>
        private IEnumerable <MovieDbProvider.Backdrop> GetBackdrops(MovieDbProvider.Images images)
        {
            var eligibleBackdrops = images.backdrops == null ? new List <MovieDbProvider.Backdrop>() :
                                    images.backdrops;

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