@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
25 lines (24 loc) • 818 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebhookNotification = void 0;
const Mapper_1 = require("../common/Mapper");
const Notification_1 = require("./Notification");
const WebhookSignature_1 = require("./WebhookSignature");
/**
* @export
* @class WebhookNotification
*/
class WebhookNotification extends Notification_1.default {
constructor(obj) {
super(obj);
if (!obj) {
return;
}
this.url = (0, Mapper_1.map)(obj.url);
this.method = (0, Mapper_1.map)(obj.method);
this.insecureSsl = (0, Mapper_1.map)(obj.insecureSsl);
this.signature = (0, Mapper_1.map)(obj.signature, WebhookSignature_1.default);
}
}
exports.WebhookNotification = WebhookNotification;
exports.default = WebhookNotification;