UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

43 lines 2.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LaunchApplicationActionLaunchApplication = void 0; const index_1 = require("./../index"); class LaunchApplicationActionLaunchApplication { constructor(data) { this.applicationPath = index_1.FileSpecification.fromJson(data === null || data === void 0 ? void 0 : data.applicationPath); this.launchParameters = index_1.LaunchParameter.fromJson(data === null || data === void 0 ? void 0 : data.launchParameters); let newWindowDefault = "userPreferences"; this.newWindow = typeof (data === null || data === void 0 ? void 0 : data.newWindow) !== "undefined" ? data === null || data === void 0 ? void 0 : data.newWindow : newWindowDefault; } static getApplicationPathDescription() { return ""; } static getLaunchParametersDescription() { return ""; } static getNewWindowDefault() { return "userPreferences"; } static getNewWindowDescription() { return "Used to select the window in which the application \/ document should be opened.\n\n* userPreference = Uses the variant that is normal in the reader application or that has been configured by the user.\n* newWindow = Forces the application or document to be opened in a new window.\n* sameWindow = Attempts (if possible) to open the document in the current reader application window."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new LaunchApplicationActionLaunchApplication(data); } toJson() { var _a, _b; return { 'applicationPath': (_a = this.applicationPath) === null || _a === void 0 ? void 0 : _a.toJson(), 'launchParameters': (_b = this.launchParameters) === null || _b === void 0 ? void 0 : _b.toJson(), 'newWindow': this.newWindow, }; } clone() { return LaunchApplicationActionLaunchApplication.fromJson(this.toJson()); } } exports.LaunchApplicationActionLaunchApplication = LaunchApplicationActionLaunchApplication; //# sourceMappingURL=LaunchApplicationActionLaunchApplication.js.map