UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

74 lines 2.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Folder = void 0; const index_1 = require("./../index"); class Folder { constructor(data) { let creationDateDefault = ""; this.creationDate = typeof (data === null || data === void 0 ? void 0 : data.creationDate) !== "undefined" ? data === null || data === void 0 ? void 0 : data.creationDate : creationDateDefault; let idDefault = 0; this.id = typeof (data === null || data === void 0 ? void 0 : data.id) !== "undefined" ? data === null || data === void 0 ? void 0 : data.id : idDefault; let modificationDateDefault = ""; this.modificationDate = typeof (data === null || data === void 0 ? void 0 : data.modificationDate) !== "undefined" ? data === null || data === void 0 ? void 0 : data.modificationDate : modificationDateDefault; let nameDefault = ""; this.name = typeof (data === null || data === void 0 ? void 0 : data.name) !== "undefined" ? data === null || data === void 0 ? void 0 : data.name : nameDefault; let pathDefault = ""; this.path = typeof (data === null || data === void 0 ? void 0 : data.path) !== "undefined" ? data === null || data === void 0 ? void 0 : data.path : pathDefault; this.sort = index_1.SortFolder.fromJson(data === null || data === void 0 ? void 0 : data.sort); } static getCreationDateDefault() { return ""; } static getCreationDateDescription() { return "The date of the folder's creation."; } static getIdDefault() { return 0; } static getIdDescription() { return "The numeric folder ID of the portfolio folder."; } static getModificationDateDefault() { return ""; } static getModificationDateDescription() { return "The date of the last modification of the folder."; } static getNameDefault() { return ""; } static getNameDescription() { return "The name of the folder."; } static getPathDefault() { return ""; } static getPathDescription() { return "The path the folder is positioned at."; } static getSortDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new Folder(data); } toJson() { var _a; return { 'creationDate': this.creationDate, 'id': this.id, 'modificationDate': this.modificationDate, 'name': this.name, 'path': this.path, 'sort': (_a = this.sort) === null || _a === void 0 ? void 0 : _a.toJson(), }; } clone() { return Folder.fromJson(this.toJson()); } } exports.Folder = Folder; //# sourceMappingURL=Folder.js.map