Exemplo n.º 1
0
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling UpdateSectionPageSetup");
            }

            // verify the required parameter 'pageSetup' is set
            if (this.PageSetup == null)
            {
                throw new ApiException(400, "Missing required parameter 'pageSetup' when calling UpdateSectionPageSetup");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/sections/{sectionIndex}/pageSetup";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddPathParameter(path, "sectionIndex", this.SectionIndex);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);
            path = UrlHelper.AddQueryParameterToUrl(path, "destFileName", this.DestFileName);
            path = UrlHelper.AddQueryParameterToUrl(path, "revisionAuthor", this.RevisionAuthor);
            path = UrlHelper.AddQueryParameterToUrl(path, "revisionDateTime", this.RevisionDateTime);

            var result = new HttpRequestMessage(HttpMethod.Put, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.PageSetup);
            return(result);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling InsertOrUpdateParagraphTabStop");
            }

            // verify the required parameter 'tabStopInsertDto' is set
            if (this.TabStopInsertDto == null)
            {
                throw new ApiException(400, "Missing required parameter 'tabStopInsertDto' when calling InsertOrUpdateParagraphTabStop");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/{nodePath}/paragraphs/{index}/tabstops";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddPathParameter(path, "index", this.Index);
            path = UrlHelper.AddPathParameter(path, "nodePath", this.NodePath);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);
            path = UrlHelper.AddQueryParameterToUrl(path, "destFileName", this.DestFileName);

            var result = new HttpRequestMessage(HttpMethod.Post, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.TabStopInsertDto);
            return(result);
        }
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling UnprotectDocument");
            }

            // verify the required parameter 'protectionRequest' is set
            if (this.ProtectionRequest == null)
            {
                throw new ApiException(400, "Missing required parameter 'protectionRequest' when calling UnprotectDocument");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/protection";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);
            path = UrlHelper.AddQueryParameterToUrl(path, "destFileName", this.DestFileName);

            var result = new HttpRequestMessage(HttpMethod.Delete, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.ProtectionRequest);
            return(result);
        }
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling SaveAsTiff");
            }

            // verify the required parameter 'saveOptions' is set
            if (this.SaveOptions == null)
            {
                throw new ApiException(400, "Missing required parameter 'saveOptions' when calling SaveAsTiff");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/saveAs/tiff";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);
            path = UrlHelper.AddQueryParameterToUrl(path, "useAntiAliasing", this.UseAntiAliasing);
            path = UrlHelper.AddQueryParameterToUrl(path, "useHighQualityRendering", this.UseHighQualityRendering);
            path = UrlHelper.AddQueryParameterToUrl(path, "imageBrightness", this.ImageBrightness);
            path = UrlHelper.AddQueryParameterToUrl(path, "imageColorMode", this.ImageColorMode);
            path = UrlHelper.AddQueryParameterToUrl(path, "imageContrast", this.ImageContrast);
            path = UrlHelper.AddQueryParameterToUrl(path, "numeralFormat", this.NumeralFormat);
            path = UrlHelper.AddQueryParameterToUrl(path, "pageCount", this.PageCount);
            path = UrlHelper.AddQueryParameterToUrl(path, "pageIndex", this.PageIndex);
            path = UrlHelper.AddQueryParameterToUrl(path, "paperColor", this.PaperColor);
            path = UrlHelper.AddQueryParameterToUrl(path, "pixelFormat", this.PixelFormat);
            path = UrlHelper.AddQueryParameterToUrl(path, "resolution", this.Resolution);
            path = UrlHelper.AddQueryParameterToUrl(path, "scale", this.Scale);
            path = UrlHelper.AddQueryParameterToUrl(path, "tiffCompression", this.TiffCompression);
            path = UrlHelper.AddQueryParameterToUrl(path, "dmlRenderingMode", this.DmlRenderingMode);
            path = UrlHelper.AddQueryParameterToUrl(path, "dmlEffectsRenderingMode", this.DmlEffectsRenderingMode);
            path = UrlHelper.AddQueryParameterToUrl(path, "tiffBinarizationMethod", this.TiffBinarizationMethod);
            path = UrlHelper.AddQueryParameterToUrl(path, "zipOutput", this.ZipOutput);
            path = UrlHelper.AddQueryParameterToUrl(path, "fontsLocation", this.FontsLocation);

            var result = new HttpRequestMessage(HttpMethod.Put, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.SaveOptions);
            return(result);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'data' is set
            if (this.Data == null)
            {
                throw new ApiException(400, "Missing required parameter 'data' when calling LoadWebDocument");
            }

            var path = configuration.GetApiRootUrl() + "/words/loadWebDocument";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);

            var result = new HttpRequestMessage(HttpMethod.Put, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.Data);
            return(result);
        }
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'text' is set
            if (this.Text == null)
            {
                throw new ApiException(400, "Missing required parameter 'text' when calling Classify");
            }

            var path = configuration.GetApiRootUrl() + "/words/classify";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddQueryParameterToUrl(path, "bestClassesCount", this.BestClassesCount);

            var result = new HttpRequestMessage(HttpMethod.Put, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.Text);
            return(result);
        }
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling SaveAsRange");
            }

            // verify the required parameter 'rangeStartIdentifier' is set
            if (this.RangeStartIdentifier == null)
            {
                throw new ApiException(400, "Missing required parameter 'rangeStartIdentifier' when calling SaveAsRange");
            }

            // verify the required parameter 'documentParameters' is set
            if (this.DocumentParameters == null)
            {
                throw new ApiException(400, "Missing required parameter 'documentParameters' when calling SaveAsRange");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/range/{rangeStartIdentifier}/{rangeEndIdentifier}/SaveAs";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddPathParameter(path, "rangeStartIdentifier", this.RangeStartIdentifier);
            path = UrlHelper.AddPathParameter(path, "rangeEndIdentifier", this.RangeEndIdentifier);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);

            var result = new HttpRequestMessage(HttpMethod.Post, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.DocumentParameters);
            return(result);
        }
Exemplo n.º 8
0
        /// <summary>
        /// Creates the http request based on this request.
        /// </summary>
        /// <param name="configuration">SDK configuration.</param>
        /// <returns>The http request instance.</returns>
        public HttpRequestMessage CreateHttpRequest(Configuration configuration)
        {
            // verify the required parameter 'name' is set
            if (this.Name == null)
            {
                throw new ApiException(400, "Missing required parameter 'name' when calling InsertFormField");
            }

            // verify the required parameter 'formField' is set
            if (this.FormField == null)
            {
                throw new ApiException(400, "Missing required parameter 'formField' when calling InsertFormField");
            }

            var path = configuration.GetApiRootUrl() + "/words/{name}/{nodePath}/formfields";

            path = Regex
                   .Replace(path, "\\*", string.Empty)
                   .Replace("&amp;", "&")
                   .Replace("/?", "?");
            path = UrlHelper.AddPathParameter(path, "name", this.Name);
            path = UrlHelper.AddPathParameter(path, "nodePath", this.NodePath);
            path = UrlHelper.AddQueryParameterToUrl(path, "folder", this.Folder);
            path = UrlHelper.AddQueryParameterToUrl(path, "storage", this.Storage);
            path = UrlHelper.AddQueryParameterToUrl(path, "loadEncoding", this.LoadEncoding);
            path = UrlHelper.AddQueryParameterToUrl(path, "password", this.Password);
            path = UrlHelper.AddQueryParameterToUrl(path, "destFileName", this.DestFileName);
            path = UrlHelper.AddQueryParameterToUrl(path, "revisionAuthor", this.RevisionAuthor);
            path = UrlHelper.AddQueryParameterToUrl(path, "revisionDateTime", this.RevisionDateTime);
            path = UrlHelper.AddQueryParameterToUrl(path, "insertBeforeNode", this.InsertBeforeNode);

            var result = new HttpRequestMessage(HttpMethod.Post, path);

            result.Content = ApiInvoker.GetBodyParameterData(this.FormField);
            return(result);
        }