Exemplo n.º 1
0
        /// <summary>
        /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="fullindexsearchrequestdto"> (optional)</param>
        /// <returns>Task of List&lt;RowSearchResult&gt;</returns>
        public async System.Threading.Tasks.Task <List <RowSearchResult> > GlobalSearchGetFullIndexSearch_0Async(FullIndexSearchRequestDto fullindexsearchrequestdto = null)
        {
            ApiResponse <List <RowSearchResult> > localVarResponse = await GlobalSearchGetFullIndexSearch_0AsyncWithHttpInfo(fullindexsearchrequestdto);

            return(localVarResponse.Data);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="fullindexsearchrequestdto"> (optional)</param>
        /// <returns>Task of ApiResponse (List&lt;RowSearchResult&gt;)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <List <RowSearchResult> > > GlobalSearchGetFullIndexSearch_0AsyncWithHttpInfo(FullIndexSearchRequestDto fullindexsearchrequestdto = null)
        {
            var    localVarPath         = "/api/GlobalSearches/search";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new List <KeyValuePair <String, String> >();
            var    localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
            };
            String localVarHttpContentType    = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json",
                "text/json",
                "application/xml",
                "text/xml"
            };
            String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (fullindexsearchrequestdto != null && fullindexsearchrequestdto.GetType() != typeof(byte[]))
            {
                localVarPostBody = this.Configuration.ApiClient.Serialize(fullindexsearchrequestdto); // http body (model) parameter
            }
            else
            {
                localVarPostBody = fullindexsearchrequestdto; // byte array
            }

            // authentication (Authorization) required
            if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization")))
            {
                localVarHeaderParams["Authorization"] = this.Configuration.GetApiKeyWithPrefix("Authorization");
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                            Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("GlobalSearchGetFullIndexSearch_0", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <List <RowSearchResult> >(localVarStatusCode,
                                                             localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                             (List <RowSearchResult>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List <RowSearchResult>))));
        }
Exemplo n.º 3
0
        /// <summary>
        /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search
        /// </summary>
        /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="fullindexsearchrequestdto"> (optional)</param>
        /// <returns>List&lt;RowSearchResult&gt;</returns>
        public List <RowSearchResult> GlobalSearchGetFullIndexSearch_0(FullIndexSearchRequestDto fullindexsearchrequestdto = null)
        {
            ApiResponse <List <RowSearchResult> > localVarResponse = GlobalSearchGetFullIndexSearch_0WithHttpInfo(fullindexsearchrequestdto);

            return(localVarResponse.Data);
        }
Exemplo n.º 4
0
        /// <summary>
        /// This call returns the result of a search in full index.  This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search
        /// </summary>
        /// <exception cref="ARXivarNEXT.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="fullindexsearchrequestdto"> (optional)</param>
        /// <returns>Object</returns>
        public Object GlobalSearchV3GetFullIndexSearch_0(FullIndexSearchRequestDto fullindexsearchrequestdto = null)
        {
            ApiResponse <Object> localVarResponse = GlobalSearchV3GetFullIndexSearch_0WithHttpInfo(fullindexsearchrequestdto);

            return(localVarResponse.Data);
        }
Exemplo n.º 5
0
        /// <summary>
        /// This call returns the result of a search in full index This method is deprecated. Use api/v3/GlobalSearches/search
        /// </summary>
        /// <exception cref="ACUtils.AXRepository.ArxivarNext.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>List&lt;RowSearchResult&gt;</returns>
        public List <RowSearchResult> GlobalSearchGetFullIndexSearch_0(FullIndexSearchRequestDto body = null)
        {
            ApiResponse <List <RowSearchResult> > localVarResponse = GlobalSearchGetFullIndexSearch_0WithHttpInfo(body);

            return(localVarResponse.Data);
        }
Exemplo n.º 6
0
        /// <summary>
        /// This call returns the result of a search in full index.  This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search
        /// </summary>
        /// <exception cref="ACUtils.AXRepository.ArxivarNext.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of Object</returns>
        public async System.Threading.Tasks.Task <Object> GlobalSearchV3GetFullIndexSearch_0Async(FullIndexSearchRequestDto body = null)
        {
            ApiResponse <Object> localVarResponse = await GlobalSearchV3GetFullIndexSearch_0AsyncWithHttpInfo(body);

            return(localVarResponse.Data);
        }
Exemplo n.º 7
0
        /// <summary>
        /// This call returns the result of a search in full index.  This call could not be compatible with some programming language, in this case use the call api/GlobalSearches/search
        /// </summary>
        /// <exception cref="ACUtils.AXRepository.ArxivarNext.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>Object</returns>
        public Object GlobalSearchV3GetFullIndexSearch_0(FullIndexSearchRequestDto body = null)
        {
            ApiResponse <Object> localVarResponse = GlobalSearchV3GetFullIndexSearch_0WithHttpInfo(body);

            return(localVarResponse.Data);
        }