UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 1.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PoolEntryServerState = void 0; class PoolEntryServerState { constructor(data) { let countDefault = 0; this.count = typeof (data === null || data === void 0 ? void 0 : data.count) !== "undefined" ? data === null || data === void 0 ? void 0 : data.count : countDefault; let poolSizeDefault = 0; this.poolSize = typeof (data === null || data === void 0 ? void 0 : data.poolSize) !== "undefined" ? data === null || data === void 0 ? void 0 : data.poolSize : poolSizeDefault; let queueSizeDefault = 0; this.queueSize = typeof (data === null || data === void 0 ? void 0 : data.queueSize) !== "undefined" ? data === null || data === void 0 ? void 0 : data.queueSize : queueSizeDefault; } static getCountDefault() { return 0; } static getCountDescription() { return ""; } static getPoolSizeDefault() { return 0; } static getPoolSizeDescription() { return ""; } static getQueueSizeDefault() { return 0; } static getQueueSizeDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new PoolEntryServerState(data); } toJson() { return { 'count': this.count, 'poolSize': this.poolSize, 'queueSize': this.queueSize, }; } clone() { return PoolEntryServerState.fromJson(this.toJson()); } } exports.PoolEntryServerState = PoolEntryServerState; //# sourceMappingURL=PoolEntryServerState.js.map