UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

29 lines (28 loc) 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Notification = void 0; const Mapper_1 = require("../common/Mapper"); const BitmovinResponse_1 = require("./BitmovinResponse"); /** * @export * @class Notification */ class Notification extends BitmovinResponse_1.default { constructor(obj) { super(obj); if (!obj) { return; } this.resolve = (0, Mapper_1.map)(obj.resolve); this.resourceId = (0, Mapper_1.map)(obj.resourceId); this.triggeredAt = (0, Mapper_1.map)(obj.triggeredAt, Date); this.type = (0, Mapper_1.map)(obj.type); this.eventType = (0, Mapper_1.map)(obj.eventType); this.category = (0, Mapper_1.map)(obj.category); this.resourceType = (0, Mapper_1.map)(obj.resourceType); this.muted = (0, Mapper_1.map)(obj.muted); this.customData = (0, Mapper_1.map)(obj.customData); } } exports.Notification = Notification; exports.default = Notification;