UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

61 lines 2.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HttpProxy = void 0; class HttpProxy { constructor(data) { let addressDefault = ""; this.address = typeof (data === null || data === void 0 ? void 0 : data.address) !== "undefined" ? data === null || data === void 0 ? void 0 : data.address : addressDefault; let passwordDefault = ""; this.password = typeof (data === null || data === void 0 ? void 0 : data.password) !== "undefined" ? data === null || data === void 0 ? void 0 : data.password : passwordDefault; let portDefault = 0; this.port = typeof (data === null || data === void 0 ? void 0 : data.port) !== "undefined" ? data === null || data === void 0 ? void 0 : data.port : portDefault; let userNameDefault = ""; this.userName = typeof (data === null || data === void 0 ? void 0 : data.userName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.userName : userNameDefault; } static getAddressDefault() { return ""; } static getAddressDescription() { return "The address at which the proxy server can be reached."; } static getPasswordDefault() { return ""; } static getPasswordDescription() { return "Password if access to the proxy service requires authentication."; } static getPortDefault() { return 0; } static getPortDescription() { return "The port that should be used to access the proxy server."; } static getPortMin() { return 0; } static getUserNameDefault() { return ""; } static getUserNameDescription() { return "Username if access to the proxy service requires authentication."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new HttpProxy(data); } toJson() { return { 'address': this.address, 'password': this.password, 'port': this.port, 'userName': this.userName, }; } clone() { return HttpProxy.fromJson(this.toJson()); } } exports.HttpProxy = HttpProxy; //# sourceMappingURL=HttpProxy.js.map