Exemple #1
0
 public static Task <string> GetSearchProgramsDataAsync(NiconicoVitaContext context, SearchProgramsRequest request)
 {
     return(context.GetClient().GetStringWithoutHttpRequestExceptionAsync(request.ToRequestString()));
 }
Exemple #2
0
 public Task <SearchPrograms.SearchProgramsResponse> GetSearchProgramsAsync(SearchPrograms.SearchProgramsRequest request)
 {
     return(SearchPrograms.SearchProgramsClient.GetSearchProgramsAsync(this._context, request));
 }
Exemple #3
0
 public static Task <SearchProgramsResponse> GetSearchProgramsAsync(NiconicoVitaContext context, SearchProgramsRequest request)
 {
     return(GetSearchProgramsDataAsync(context, request)
            .ContinueWith(prevTask => ParseSearchProgramsData(prevTask.Result)));
 }
Exemple #4
0
        /// <summary>
        /// 非同期操作として検索番組情報を取得します
        /// </summary>
        /// <param name="request">検索リクエスト情報</param>
        /// <returns>非同期操作を表すオブジェクト</returns>
#if WINDOWS_APP
        public IAsyncOperation <SearchPrograms.SearchProgramsResponse> GetSearchProgramsAsync(SearchPrograms.SearchProgramsRequest request)
        {
            return(SearchPrograms.SearchProgramsClient.GetSearchProgramsAsync(this._context, request).AsAsyncOperation());
        }