@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
67 lines • 2.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Folder = void 0;
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;
}
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 fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Folder(data);
}
toJson() {
return {
'creationDate': this.creationDate,
'id': this.id,
'modificationDate': this.modificationDate,
'name': this.name,
'path': this.path,
};
}
clone() {
return Folder.fromJson(this.toJson());
}
}
exports.Folder = Folder;
//# sourceMappingURL=Folder.js.map