@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
48 lines • 1.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UrlConverter = void 0;
const index_1 = require("./../index");
class UrlConverter {
constructor(data) {
this.basicAuth = index_1.HttpBasicAuth.fromJson(data === null || data === void 0 ? void 0 : data.basicAuth);
this.page = index_1.UrlConverterPage.fromJson(data === null || data === void 0 ? void 0 : data.page);
this.proxy = index_1.HttpProxy.fromJson(data === null || data === void 0 ? void 0 : data.proxy);
let urlDefault = "";
this.url = typeof (data === null || data === void 0 ? void 0 : data.url) !== "undefined" ? data === null || data === void 0 ? void 0 : data.url : urlDefault;
}
static getBasicAuthDescription() {
return "";
}
static getPageDescription() {
return "";
}
static getProxyDescription() {
return "";
}
static getUrlDefault() {
return "";
}
static getUrlDescription() {
return "The URL for the resource to be converted.\n\n**Note:**The \"file\" protocol is not supported; this applies to the resource URL itself and all resources referenced in the content.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new UrlConverter(data);
}
toJson() {
var _a, _b, _c;
return {
'basicAuth': (_a = this.basicAuth) === null || _a === void 0 ? void 0 : _a.toJson(),
'page': (_b = this.page) === null || _b === void 0 ? void 0 : _b.toJson(),
'proxy': (_c = this.proxy) === null || _c === void 0 ? void 0 : _c.toJson(),
'url': this.url,
};
}
clone() {
return UrlConverter.fromJson(this.toJson());
}
}
exports.UrlConverter = UrlConverter;
//# sourceMappingURL=UrlConverter.js.map