UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

48 lines 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServerStatus = void 0; const index_1 = require("./../index"); class ServerStatus { constructor(data) { this.java = index_1.JavaStatus.fromJson(data === null || data === void 0 ? void 0 : data.java); this.os = index_1.OsStatus.fromJson(data === null || data === void 0 ? void 0 : data.os); this.server = index_1.ServerVersionInfo.fromJson(data === null || data === void 0 ? void 0 : data.server); let webservicesDefault = {}; this.webservices = typeof (data === null || data === void 0 ? void 0 : data.webservices) !== "undefined" ? data === null || data === void 0 ? void 0 : data.webservices : webservicesDefault; } static getJavaDescription() { return ""; } static getOsDescription() { return ""; } static getServerDescription() { return ""; } static getWebservicesDefault() { return {}; } static getWebservicesDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ServerStatus(data); } toJson() { var _a, _b, _c; return { 'java': (_a = this.java) === null || _a === void 0 ? void 0 : _a.toJson(), 'os': (_b = this.os) === null || _b === void 0 ? void 0 : _b.toJson(), 'server': (_c = this.server) === null || _c === void 0 ? void 0 : _c.toJson(), 'webservices': this.webservices, }; } clone() { return ServerStatus.fromJson(this.toJson()); } } exports.ServerStatus = ServerStatus; //# sourceMappingURL=ServerStatus.js.map