@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
77 lines • 3.02 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReplyToAnnotationEdit = void 0;
const index_1 = require("./../index");
class ReplyToAnnotationEdit {
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;
this.objectKey = index_1.ObjectKeyReplyToAnnotationEdit.fromJson(data.objectKey);
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 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 getObjectKeyDescription() {
return "";
}
static getPageDefault() {
return 1;
}
static getPageDescription() {
return "Selects the page by page number, that shall contain the \"reply to\" annotation.";
}
static getPageMin() {
return 1;
}
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 ReplyToAnnotationEdit(data);
}
toJson() {
var _a;
return {
'comment': this.comment,
'creator': this.creator,
'name': this.name,
'objectKey': (_a = this.objectKey) === null || _a === void 0 ? void 0 : _a.toJson(),
'page': this.page,
'subject': this.subject,
};
}
clone() {
return ReplyToAnnotationEdit.fromJson(this.toJson());
}
}
exports.ReplyToAnnotationEdit = ReplyToAnnotationEdit;
//# sourceMappingURL=ReplyToAnnotationEdit.js.map