@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
67 lines • 2.83 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThreadActionGoToThread = void 0;
class ThreadActionGoToThread {
constructor(data) {
let beadIndexDefault = 0;
this.beadIndex = typeof (data === null || data === void 0 ? void 0 : data.beadIndex) !== "undefined" ? data === null || data === void 0 ? void 0 : data.beadIndex : beadIndexDefault;
let pageDefault = 1;
this.page = typeof (data === null || data === void 0 ? void 0 : data.page) !== "undefined" ? data === null || data === void 0 ? void 0 : data.page : pageDefault;
let threadIndexDefault = 0;
this.threadIndex = typeof (data === null || data === void 0 ? void 0 : data.threadIndex) !== "undefined" ? data === null || data === void 0 ? void 0 : data.threadIndex : threadIndexDefault;
let threadTitleDefault = "";
this.threadTitle = typeof (data === null || data === void 0 ? void 0 : data.threadTitle) !== "undefined" ? data === null || data === void 0 ? void 0 : data.threadTitle : threadTitleDefault;
}
static getBeadIndexDefault() {
return 0;
}
static getBeadIndexDescription() {
return "The index of the thread section to which the jump should be. This value is optional and does not need to be specified.";
}
static getBeadIndexMin() {
return 0;
}
static getPageDefault() {
return 1;
}
static getPageDescription() {
return "The page number of the page where the thread is found.";
}
static getPageMin() {
return 1;
}
static getThreadIndexDefault() {
return 0;
}
static getThreadIndexDescription() {
return "The index of the thread in the document's thread directory to which the jump should be. This value is an alternative to \"threadTitle\" and does not have to be set if the latter has been specified.";
}
static getThreadIndexMin() {
return 0;
}
static getThreadTitleDefault() {
return "";
}
static getThreadTitleDescription() {
return "The title of the thread to which the jump should be. This value is an alternative to \"threadIndex\" and does not have to be set if the latter has been specified.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ThreadActionGoToThread(data);
}
toJson() {
return {
'beadIndex': this.beadIndex,
'page': this.page,
'threadIndex': this.threadIndex,
'threadTitle': this.threadTitle,
};
}
clone() {
return ThreadActionGoToThread.fromJson(this.toJson());
}
}
exports.ThreadActionGoToThread = ThreadActionGoToThread;
//# sourceMappingURL=ThreadActionGoToThread.js.map