コード例 #1
0
ファイル: TMDbService.cs プロジェクト: renanAC/CinePhiles
 public async Task <UpcomingMovieResult> GetUpcomingMovies(UpcomingMovieRequest upcomingMovieRequest)
 {
     try
     {
         var    uri         = UriHelper.CombineUri(Settings.TMDbBaseEndpoint, UpcomingURL);
         string queryString = _requestProvider.ConvertQueryString(upcomingMovieRequest);
         return(await _requestProvider.GetAsync <UpcomingMovieResult>(uri + queryString));
     }
     catch (System.Exception ex)
     {
         return(new UpcomingMovieResult());
     }
 }