/// <summary> /// Get the DocuVieware engine version. /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <returns>Task of IRestResponse (StringResponse)</returns> public async Task <StringResponse> DocuViewareGetVersionAsync() { RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; foreach (var contentType in contentTypes) { requestOptions.AddHeaderParameter("Content-Type", contentType); } foreach (var accept in accepts) { requestOptions.AddHeaderParameter("Accept", accept); } IRestResponse response = await ApiClient.CallApiAsync(Method.GET, !string.IsNullOrEmpty(BasePath)?BasePath : GlobalConfiguration.BasePath, "/api/docuvieware/DocuViewareGetVersion", !string.IsNullOrEmpty(ApiKey)?ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/docuvieware/DocuViewareGetVersion failed: {0}", response.ErrorMessage, response.ErrorException)); } return((StringResponse)ApiClient.DeserializeResponse(response, typeof(StringResponse))); }
/// <summary> /// Get the DocuVieware engine version. /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <returns>IRestResponse of StringResponse</returns> public StringResponse DocuViewareGetVersion() { RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; var localVarContentType = ClientUtils.SelectHeaderContentType(contentTypes); if (localVarContentType != null) { requestOptions.AddHeaderParameter("Content-Type", localVarContentType); } var localVarAccept = ClientUtils.SelectHeaderAccept(accepts); if (localVarAccept != null) { requestOptions.AddHeaderParameter("Accept", localVarAccept); } IRestResponse response = ApiClient.CallApi(Method.GET, !string.IsNullOrEmpty(BasePath) ? BasePath : GlobalConfiguration.BasePath, "/api/docuvieware/DocuViewareGetVersion", !string.IsNullOrEmpty(ApiKey) ? ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/docuvieware/DocuViewareGetVersion failed: {0}", response.ErrorMessage, response.ErrorException)); } return((StringResponse)ApiClient.DeserializeResponse(response, typeof(StringResponse))); }
/// <summary> /// /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="passportId"></param> /// <returns>IRestResponse of PassportPDFPassport</returns> public PassportPDFPassport PassportManagerGetPassportInfo(string passportId) { // verify the required parameter 'passportId' is set if (passportId == null) { throw new ArgumentNullException("Missing required parameter 'passportId' when calling PassportManagerApi->PassportManagerGetPassportInfo"); } RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; var localVarContentType = ClientUtils.SelectHeaderContentType(contentTypes); if (localVarContentType != null) { requestOptions.AddHeaderParameter("Content-Type", localVarContentType); } var localVarAccept = ClientUtils.SelectHeaderAccept(accepts); if (localVarAccept != null) { requestOptions.AddHeaderParameter("Accept", localVarAccept); } if (passportId != null) { foreach (var kvp in ClientUtils.ParameterToMultiMap("", "passportId", passportId)) { foreach (var value in kvp.Value) { requestOptions.AddQueryParameter(kvp.Key, value); } } } IRestResponse response = ApiClient.CallApi(Method.GET, !string.IsNullOrEmpty(BasePath) ? BasePath : GlobalConfiguration.BasePath, "/api/passportmanager/PassportManagerGetPassportInfo", !string.IsNullOrEmpty(ApiKey) ? ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/passportmanager/PassportManagerGetPassportInfo failed: {0}", response.ErrorMessage, response.ErrorException)); } return((PassportPDFPassport)ApiClient.DeserializeResponse(response, typeof(PassportPDFPassport))); }
/// <summary> /// Gets the maximum number of threads to be used simultaneously by a client application. /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="applicationId"></param> /// <returns>Task of IRestResponse (IntegerResponse)</returns> public async Task <IntegerResponse> PassportPDFApplicationManagerGetMaxClientThreadsAsync(string applicationId) { // verify the required parameter 'applicationId' is set if (applicationId == null) { throw new ArgumentNullException("Missing required parameter 'applicationId' when calling PassportPDFApplicationManagerApi->PassportPDFApplicationManagerGetMaxClientThreads"); } RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; foreach (var contentType in contentTypes) { requestOptions.AddHeaderParameter("Content-Type", contentType); } foreach (var accept in accepts) { requestOptions.AddHeaderParameter("Accept", accept); } if (applicationId != null) { foreach (var kvp in ClientUtils.ParameterToMultiMap("", "applicationId", applicationId)) { foreach (var value in kvp.Value) { requestOptions.AddQueryParameter(kvp.Key, value); } } } IRestResponse response = await ApiClient.CallApiAsync(Method.GET, !string.IsNullOrEmpty(BasePath)?BasePath : GlobalConfiguration.BasePath, "/api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetMaxClientThreads", !string.IsNullOrEmpty(ApiKey)?ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/passportpdfapplicationmanager/PassportPDFApplicationManagerGetMaxClientThreads failed: {0}", response.ErrorMessage, response.ErrorException)); } return((IntegerResponse)ApiClient.DeserializeResponse(response, typeof(IntegerResponse))); }
/// <summary> /// Saves the document being handled by a specific DocuVieware control, in its current state. /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="docuViewareSaveParameters">A DocuViewareSaveParameters object specifying the parameters of the action.</param> /// <returns>IRestResponse of DocuViewareSaveResponse</returns> public DocuViewareSaveResponse DocuViewareSave(DocuViewareSaveParameters docuViewareSaveParameters) { // verify the required parameter 'docuViewareSaveParameters' is set if (docuViewareSaveParameters == null) { throw new ArgumentNullException("Missing required parameter 'docuViewareSaveParameters' when calling DocuViewareApi->DocuViewareSave"); } RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/_*+json" }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; var localVarContentType = ClientUtils.SelectHeaderContentType(contentTypes); if (localVarContentType != null) { requestOptions.AddHeaderParameter("Content-Type", localVarContentType); } var localVarAccept = ClientUtils.SelectHeaderAccept(accepts); if (localVarAccept != null) { requestOptions.AddHeaderParameter("Accept", localVarAccept); } requestOptions.Data = docuViewareSaveParameters; IRestResponse response = ApiClient.CallApi(Method.POST, !string.IsNullOrEmpty(BasePath) ? BasePath : GlobalConfiguration.BasePath, "/api/docuvieware/DocuViewareSave", !string.IsNullOrEmpty(ApiKey) ? ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/docuvieware/DocuViewareSave failed: {0}", response.ErrorMessage, response.ErrorException)); } return((DocuViewareSaveResponse)ApiClient.DeserializeResponse(response, typeof(DocuViewareSaveResponse))); }
/// <summary> /// Gets the HTML dom of a DocuVieware control. /// </summary> /// <exception cref="ApiException">Thrown when fails to make API call</exception> /// <param name="docuViewareGetControlParameters">A DocuViewareGetControlParameters object specifying the parameters of the action.</param> /// <returns>Task of IRestResponse (DocuViewareGetControlResponse)</returns> public async Task <DocuViewareGetControlResponse> DocuViewareGetControlAsync(DocuViewareGetControlParameters docuViewareGetControlParameters) { // verify the required parameter 'docuViewareGetControlParameters' is set if (docuViewareGetControlParameters == null) { throw new ArgumentNullException("Missing required parameter 'docuViewareGetControlParameters' when calling DocuViewareApi->DocuViewareGetControl"); } RequestOptions requestOptions = new RequestOptions(); string[] contentTypes = new string[] { "application/json-patch+json", "application/json", "text/json", "application/_*+json" }; string[] accepts = new string[] { "text/plain", "application/json", "text/json" }; foreach (var contentType in contentTypes) { requestOptions.AddHeaderParameter("Content-Type", contentType); } foreach (var accept in accepts) { requestOptions.AddHeaderParameter("Accept", accept); } requestOptions.Data = docuViewareGetControlParameters; IRestResponse response = await ApiClient.CallApiAsync(Method.POST, !string.IsNullOrEmpty(BasePath)?BasePath : GlobalConfiguration.BasePath, "/api/docuvieware/DocuViewareGetControl", !string.IsNullOrEmpty(ApiKey)?ApiKey : GlobalConfiguration.ApiKey, requestOptions); if (!response.IsSuccessful) { throw new ApiException(response.StatusCode, string.Format("API call to /api/docuvieware/DocuViewareGetControl failed: {0}", response.ErrorMessage, response.ErrorException)); } return((DocuViewareGetControlResponse)ApiClient.DeserializeResponse(response, typeof(DocuViewareGetControlResponse))); }