本文整理汇总了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");
}
示例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");
}
示例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;
}
示例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;
}
示例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");
}
示例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");
}
示例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");
}
示例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");
}