コード例 #1
0
ファイル: DetailViewModel.cs プロジェクト: Akihiko06/TestTech
        private async void GetData(int iMovie)
        {
            MovieDetail oMovieDetail = new MovieDetail();

            oMovieDetail = await cpFeeds.GetMoviesDetail(iMovie);

            Date = oMovieDetail.release_date;

            string St = "";

            for (int r = 0; r < oMovieDetail.production_companies.Length; r++)
            {
                St += oMovieDetail.production_companies[r].name;
                if (r < 3)
                {
                    St += ",";
                }
            }
            Studio = St;

            string Gn = "";

            for (int rr = 0; rr < oMovieDetail.genres.Length; rr++)
            {
                Gn += oMovieDetail.genres[rr].name;
                if (rr < 3)
                {
                    Gn += ",";
                }
            }
            Genero = Gn;
        }