コード例 #1
0
        private static void GetEpisodeTitlesForSeason(TVDB tvdb)
        {
            Console.WriteLine("Episodes of Game of Thrones season 2");
            var show            = tvdb.GetShow(121361);
            var season2Episodes = show.Episodes.Where(ep => ep.SeasonNumber == 2).ToList();

            DisplayEpisodeTitles.Print(season2Episodes);
            Console.WriteLine("-----------");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: LGM-AdrianHum/TVDBSharp
        private static async Task GetEpisodeTitlesForSeason(TVDB tvdb)
        {
            Console.WriteLine("Episodes of Game of Thrones season 2");
            var episodes = await tvdb.GetEpisodes(121361);

            var season2Episodes = episodes.Where(ep => ep.AiredSeason == 2).ToList();

            DisplayEpisodeTitles.Print(season2Episodes);
            Console.WriteLine("-----------");
        }