citeright-sdk-js
Version:
An SDK to connect to the CiteRight API.
33 lines (32 loc) • 1.41 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var EventNotification_1 = require("../EventNotification");
var GenericUIEvent = /** @class */ (function (_super) {
__extends(GenericUIEvent, _super);
function GenericUIEvent() {
return _super !== null && _super.apply(this, arguments) || this;
}
// TODO: add any shared properties among all UI events (can't think of any right now)
GenericUIEvent.prototype.fromJSONString = function (json) {
var parsed = JSON.parse(json);
Object.assign(this, parsed);
};
GenericUIEvent.prototype.fromDTO = function (dto) {
Object.assign(this, dto);
};
return GenericUIEvent;
}(EventNotification_1.EventNotification));
exports.GenericUIEvent = GenericUIEvent;