@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.89 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReplyStateRelation = void 0;
class ReplyStateRelation {
constructor(data) {
let objectIDDefault = "";
this.objectID = typeof (data === null || data === void 0 ? void 0 : data.objectID) !== "undefined" ? data === null || data === void 0 ? void 0 : data.objectID : objectIDDefault;
let stateDefault = "none";
this.state = typeof (data === null || data === void 0 ? void 0 : data.state) !== "undefined" ? data === null || data === void 0 ? void 0 : data.state : stateDefault;
}
static getObjectIDDefault() {
return "";
}
static getObjectIDDescription() {
return "The object ID of the annotation. **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 getStateDefault() {
return "none";
}
static getStateDescription() {
return "The set reply state of a commented annotation.\n\n* accepted = The user agrees with the change.\n* rejected = The user disagrees with the change.\n* cancelled = The change has been cancelled.\n* completed = The change has been completed.\n* none = The user did not set a state.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ReplyStateRelation(data);
}
toJson() {
return {
'objectID': this.objectID,
'state': this.state,
};
}
clone() {
return ReplyStateRelation.fromJson(this.toJson());
}
}
exports.ReplyStateRelation = ReplyStateRelation;
//# sourceMappingURL=ReplyStateRelation.js.map