UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

41 lines 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.News = void 0; const index_1 = require("./../index"); class News { constructor(data) { let contentRefreshIntervalDefault = 60; this.contentRefreshInterval = typeof (data === null || data === void 0 ? void 0 : data.contentRefreshInterval) !== "undefined" ? data === null || data === void 0 ? void 0 : data.contentRefreshInterval : contentRefreshIntervalDefault; this.entry = (data.entry || []).map(index_1.NewsPanelEntry.fromJson); } static getContentRefreshIntervalDefault() { return 60; } static getContentRefreshIntervalDescription() { return ""; } static getEntryDefault() { return []; } static getEntryDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new News(data); } toJson() { var _a; return { 'contentRefreshInterval': this.contentRefreshInterval, 'entry': (_a = this.entry) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()), }; } clone() { return News.fromJson(this.toJson()); } } exports.News = News; //# sourceMappingURL=News.js.map