当前位置: 首页>>代码示例>>C#>>正文


C# Request.ProcesRequestListAsync方法代码示例

本文整理汇总了C#中Request.ProcesRequestListAsync方法的典型用法代码示例。如果您正苦于以下问题:C# Request.ProcesRequestListAsync方法的具体用法?C# Request.ProcesRequestListAsync怎么用?C# Request.ProcesRequestListAsync使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Request的用法示例。


在下文中一共展示了Request.ProcesRequestListAsync方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetMovieAlternateTitlesAsync

 /// <summary>
 /// Gets a list of altenative titles for the specified country
 /// </summary>
 /// <param name="movieId">Id of the movie</param>
 /// <param name="country">Code of the country</param>
 /// <returns>A list of alternative titles.</returns>
 public static async Task<IReadOnlyList<AlternativeTitle>> GetMovieAlternateTitlesAsync(int movieId, string country)
 {
     var request = new Request<AlternativeTitle>("movie/" + movieId + "/alternative_titles");
     if (!string.IsNullOrEmpty(country))
         request.AddParameter("country", country);
     return await request.ProcesRequestListAsync("titles");
 }        
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:13,代码来源:TheMovieDbMovie.cs

示例2: GetMovieAlternateTitlesAsync

 /// <summary>
 /// Gets a list of altenative titles for the specified country
 /// </summary>
 /// <param name="MovieID">Id of the movie</param>
 /// <param name="Country">Code of the country</param>
 /// <returns>A list of alternative titles.</returns>
 public static async Task<IReadOnlyList<AlternativeTitle>> GetMovieAlternateTitlesAsync(int MovieID, string Country)
 {
     Request<AlternativeTitle> request = new Request<AlternativeTitle>("movie/" + MovieID.ToString() + "/alternative_titles");
     if (!string.IsNullOrEmpty(Country))
         request.AddParameter("country", Country);
     return await request.ProcesRequestListAsync("titles");
 }        
开发者ID:Rawrpwnzl,项目名称:TMDbWrapper,代码行数:13,代码来源:TheMovieDbMovie.cs

示例3: GetImageAsync

 /// <summary>
 /// The images of a specific person.
 /// </summary>
 /// <param name="PersonID">The id of the specified person.</param>
 /// <returns>A list of images</returns>
 public static async Task<IReadOnlyList<Profile>> GetImageAsync(int PersonID)
 {
     IReadOnlyList<Profile> profile = DatabaseCache.GetObject<IReadOnlyList<Profile>>(PersonID);
     if (profile == null)
     {
         Request<Profile> request = new Request<Profile>("person/" + PersonID.ToString() + "/images");
         profile = await request.ProcesRequestListAsync("profiles");
         DatabaseCache.SetObject(PersonID, profile);
     }
     return profile;
 }
开发者ID:ThadT,项目名称:TMDbWrapper,代码行数:16,代码来源:TheMovieDbPerson.cs

示例4: GetImageAsync

 /// <summary>
 /// The images of a specific person.
 /// </summary>
 /// <param name="personId">The id of the specified person.</param>
 /// <returns>A list of images</returns>
 public static async Task<IReadOnlyList<Profile>> GetImageAsync(int personId)
 {
     var profile = DatabaseCache.GetObject<IReadOnlyList<Profile>>(personId);
     if (profile == null)
     {
         var request = new Request<Profile>("person/" + personId + "/images");
         profile = await request.ProcesRequestListAsync("profiles");
         DatabaseCache.SetObject(personId, profile);
     }
     return profile;
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:16,代码来源:TheMovieDbPerson.cs

示例5: GetMovieReleasesAsync

 /// <summary>
 /// Releases of a specific movie.
 /// </summary>
 /// <param name="movieId">Id of the movie</param>
 /// <returns>A list of releases.</returns>
 public static async Task<IReadOnlyList<Release>> GetMovieReleasesAsync(int movieId)
 {
     var request = new Request<Release>("movie/" + movieId + "/releases");
     return await request.ProcesRequestListAsync("releases");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:10,代码来源:TheMovieDbMovie.cs

示例6: GetMovieKeywordsAsync

 /// <summary>
 /// The keywords of a specific movie.
 /// </summary>
 /// <param name="movieId">The id of the movie.</param>
 /// <returns>A list of movie keywords.</returns>
 public static async Task<IReadOnlyList<Keyword>> GetMovieKeywordsAsync(int movieId)
 {
     var request = new Request<Keyword>("movie/" + movieId + "/keywords");
     return await request.ProcesRequestListAsync("keywords");
 }
开发者ID:Fishes,项目名称:TMDbWrapper,代码行数:10,代码来源:TheMovieDbMovie.cs

示例7: GetMovieReleasesAsync

 /// <summary>
 /// Releases of a specific movie.
 /// </summary>
 /// <param name="MovieID">Id of the movie</param>
 /// <returns>A list of releases.</returns>
 public static async Task<IReadOnlyList<Release>> GetMovieReleasesAsync(int MovieID)
 {
     Request<Release> request = new Request<Release>("movie/" + MovieID.ToString() + "/releases");
     return await request.ProcesRequestListAsync("releases");
 }
开发者ID:Rawrpwnzl,项目名称:TMDbWrapper,代码行数:10,代码来源:TheMovieDbMovie.cs

示例8: GetMovieKeywordsAsync

 /// <summary>
 /// The keywords of a specific movie.
 /// </summary>
 /// <param name="MovieID">The id of the movie.</param>
 /// <returns>A list of movie keywords.</returns>
 public static async Task<IReadOnlyList<Keyword>> GetMovieKeywordsAsync(int MovieID)
 {
     Request<Keyword> request = new Request<Keyword>("movie/" + MovieID.ToString() + "/keywords");
     return await request.ProcesRequestListAsync("keywords");
 }
开发者ID:Rawrpwnzl,项目名称:TMDbWrapper,代码行数:10,代码来源:TheMovieDbMovie.cs


注:本文中的Request.ProcesRequestListAsync方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。