Example #1
0
        private async Task LoadCast()
        {
            var id      = _summary == null ? _movie.Id : _summary.Id;
            var credits = await TheMovieDb.GetMovieCastAsync(id);

            Director = credits.Crew.Where(c => c.Job == "Director").Select(c => c.Name).FirstOrDefault();
            Writer   = credits.Crew.Where(c => c.Job == "Writer").Select(c => c.Name).FirstOrDefault();
            Cast     = credits.Cast.Select(CastFactory);
        }
Example #2
0
 /// <summary>
 /// Gets the credits of this movie.
 /// </summary>
 /// <returns>The credits of the movie.</returns>
 public async Task <Credits> CastAsync()
 {
     return(await TheMovieDb.GetMovieCastAsync(Id));
 }