@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
41 lines • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FoldersDocument = void 0;
const index_1 = require("./../index");
class FoldersDocument {
constructor(data) {
this.folder = (data.folder || []).map(index_1.Folder.fromJson);
let initialFileDefault = "";
this.initialFile = typeof (data === null || data === void 0 ? void 0 : data.initialFile) !== "undefined" ? data === null || data === void 0 ? void 0 : data.initialFile : initialFileDefault;
}
static getFolderDefault() {
return [];
}
static getFolderDescription() {
return "";
}
static getInitialFileDefault() {
return "";
}
static getInitialFileDescription() {
return "The object ID of the initially visible attachment.\n\n**Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new FoldersDocument(data);
}
toJson() {
var _a;
return {
'folder': (_a = this.folder) === null || _a === void 0 ? void 0 : _a.map((data) => data.toJson()),
'initialFile': this.initialFile,
};
}
clone() {
return FoldersDocument.fromJson(this.toJson());
}
}
exports.FoldersDocument = FoldersDocument;
//# sourceMappingURL=FoldersDocument.js.map