UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

58 lines 2.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WindowsLaunchParameter = void 0; class WindowsLaunchParameter { constructor(data) { let argumentsDefault = ""; this.arguments = typeof (data === null || data === void 0 ? void 0 : data.arguments) !== "undefined" ? data === null || data === void 0 ? void 0 : data.arguments : argumentsDefault; let directoryDefault = ""; this.directory = typeof (data === null || data === void 0 ? void 0 : data.directory) !== "undefined" ? data === null || data === void 0 ? void 0 : data.directory : directoryDefault; let fileNameDefault = ""; this.fileName = typeof (data === null || data === void 0 ? void 0 : data.fileName) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fileName : fileNameDefault; let operationDefault = "open"; this.operation = typeof (data === null || data === void 0 ? void 0 : data.operation) !== "undefined" ? data === null || data === void 0 ? void 0 : data.operation : operationDefault; } static getArgumentsDefault() { return ""; } static getArgumentsDescription() { return "The arguments that should be passed to the application when making a call."; } static getDirectoryDefault() { return ""; } static getDirectoryDescription() { return "Used to specify the basic path, using standard DOS syntax, from which navigation will take place."; } static getFileNameDefault() { return ""; } static getFileNameDescription() { return "A Windows filename using the standard Windows path syntax. If there is a backslash in the specified path, it must be escaped by preceding it with another backslash."; } static getOperationDefault() { return "open"; } static getOperationDescription() { return "Used to specify the standard operation that should be carried out with the specified document.\n\n* open = Open the document.\n* print = Print the document."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new WindowsLaunchParameter(data); } toJson() { return { 'arguments': this.arguments, 'directory': this.directory, 'fileName': this.fileName, 'operation': this.operation, }; } clone() { return WindowsLaunchParameter.fromJson(this.toJson()); } } exports.WindowsLaunchParameter = WindowsLaunchParameter; //# sourceMappingURL=WindowsLaunchParameter.js.map