Esempio n. 1
0
        public static List <MediaCredits> GetTvShowMediaCredits(TMDbLib.Objects.TvShows.Credits credits)
        {
            List <MediaCredits> results = new List <MediaCredits>();

            if (credits?.Cast?.Any() ?? false)
            {
                results.Add(new MediaCredits("Cast", credits.Cast.Select(cast => new MediaCredit(cast))));
            }

            if (credits?.Crew?.Any() ?? false)
            {
                results.Add(new MediaCredits("Crew", credits.Crew.Select(crew => new MediaCredit(crew)).OrderBy(crew => crew.Department)));
            }

            return(results);
        }
Esempio n. 2
0
 public MediaCredit(TMDbLib.Objects.TvShows.Credits credit)
 {
     Id = credit.Id;
 }