@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
79 lines • 3.46 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReplyToAnnotation = void 0;
class ReplyToAnnotation {
constructor(data) {
let commentDefault = "";
this.comment = typeof (data === null || data === void 0 ? void 0 : data.comment) !== "undefined" ? data === null || data === void 0 ? void 0 : data.comment : commentDefault;
let creatorDefault = "";
this.creator = typeof (data === null || data === void 0 ? void 0 : data.creator) !== "undefined" ? data === null || data === void 0 ? void 0 : data.creator : creatorDefault;
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 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 replyToDefault = "";
this.replyTo = typeof (data === null || data === void 0 ? void 0 : data.replyTo) !== "undefined" ? data === null || data === void 0 ? void 0 : data.replyTo : replyToDefault;
let subjectDefault = "";
this.subject = typeof (data === null || data === void 0 ? void 0 : data.subject) !== "undefined" ? data === null || data === void 0 ? void 0 : data.subject : subjectDefault;
}
static getCommentDefault() {
return "";
}
static getCommentDescription() {
return "This value is used to set the textual comment\/reply to display.";
}
static getCreatorDefault() {
return "";
}
static getCreatorDescription() {
return "Used to specify the author of the annotation.";
}
static getNameDefault() {
return "";
}
static getNameDescription() {
return "Used to specify the name of the annotation.";
}
static getPageDefault() {
return 1;
}
static getPageDescription() {
return "Set the number of the page, the annotation shall be placed on.\n\n**Important:** A reply shall always be placed on the same page as it's target annotation. This is mostly providing a hint where to find the selected annotation.";
}
static getPageMin() {
return 1;
}
static getReplyToDefault() {
return "";
}
static getReplyToDescription() {
return "Selects the object id of the annotation, that this annotation shall be a reply to. The object id shall be given as a String that may contain either:\n\n* The numeric object ID itself\n* The object ID followed by the generation number, separated by a space";
}
static getSubjectDefault() {
return "";
}
static getSubjectDescription() {
return "Used to specify the subject of the annotation.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ReplyToAnnotation(data);
}
toJson() {
return {
'comment': this.comment,
'creator': this.creator,
'name': this.name,
'page': this.page,
'replyTo': this.replyTo,
'subject': this.subject,
};
}
clone() {
return ReplyToAnnotation.fromJson(this.toJson());
}
}
exports.ReplyToAnnotation = ReplyToAnnotation;
//# sourceMappingURL=ReplyToAnnotation.js.map