UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

61 lines 1.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HeaderFooterDate = void 0; class HeaderFooterDate { constructor(data) { let dayDefault = 0; this.day = typeof (data === null || data === void 0 ? void 0 : data.day) !== "undefined" ? data === null || data === void 0 ? void 0 : data.day : dayDefault; let monthDefault = 0; this.month = typeof (data === null || data === void 0 ? void 0 : data.month) !== "undefined" ? data === null || data === void 0 ? void 0 : data.month : monthDefault; let yearDefault = 0; this.year = typeof (data === null || data === void 0 ? void 0 : data.year) !== "undefined" ? data === null || data === void 0 ? void 0 : data.year : yearDefault; } static getDayDefault() { return 0; } static getDayDescription() { return "The day of the month."; } static getDayMin() { return 1; } static getDayMax() { return 31; } static getMonthDefault() { return 0; } static getMonthDescription() { return "The selected month."; } static getMonthMin() { return 1; } static getMonthMax() { return 12; } static getYearDefault() { return 0; } static getYearDescription() { return "The selected year."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new HeaderFooterDate(data); } toJson() { return { 'day': this.day, 'month': this.month, 'year': this.year, }; } clone() { return HeaderFooterDate.fromJson(this.toJson()); } } exports.HeaderFooterDate = HeaderFooterDate; //# sourceMappingURL=HeaderFooterDate.js.map