UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 2.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FileSpecification = void 0; class FileSpecification { constructor(data) { let descriptionDefault = ""; this.description = typeof (data === null || data === void 0 ? void 0 : data.description) !== "undefined" ? data === null || data === void 0 ? void 0 : data.description : descriptionDefault; let resourceURLDefault = ""; this.resourceURL = typeof (data === null || data === void 0 ? void 0 : data.resourceURL) !== "undefined" ? data === null || data === void 0 ? void 0 : data.resourceURL : resourceURLDefault; let volatileFileDefault = false; this.volatileFile = typeof (data === null || data === void 0 ? void 0 : data.volatileFile) !== "undefined" ? data === null || data === void 0 ? void 0 : data.volatileFile : volatileFileDefault; } static getDescriptionDefault() { return ""; } static getDescriptionDescription() { return "A description of the application that should be opened."; } static getResourceURLDefault() { return ""; } static getResourceURLDescription() { return "The path or URL for the application \/ document. Use forward slashes as path separators. It is potentially possible to use platform-specific characters, but this is not recommended. If you do end up using platform-specific characters anyway, they must be preceded by a backslash (\u2018\\\\')."; } static getVolatileFileDefault() { return false; } static getVolatileFileDescription() { return "This value should be set to true if the selected document will be subject to changes continuously and the reader application should be forced to continuously reload the document instead of caching it."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new FileSpecification(data); } toJson() { return { 'description': this.description, 'resourceURL': this.resourceURL, 'volatileFile': this.volatileFile, }; } clone() { return FileSpecification.fromJson(this.toJson()); } } exports.FileSpecification = FileSpecification; //# sourceMappingURL=FileSpecification.js.map