UNPKG

@kaltura-ng/kaltura-client

Version:
42 lines 2.2 kB
var __extends = (this && this.__extends) || (function () { var 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 function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { KalturaEventNotificationTemplate } from './KalturaEventNotificationTemplate'; import { KalturaEventNotificationTemplateStatus } from './KalturaEventNotificationTemplateStatus'; import { KalturaRequest } from '../kaltura-request'; /** * Build request payload for service 'eventNotificationTemplate' action 'updateStatus'. * * Usage: Update event notification template status by id * * Server response type: KalturaEventNotificationTemplate * Server failure response type: KalturaAPIException * @class * @extends KalturaRequest */ var EventNotificationTemplateUpdateStatusAction = (function (_super) { __extends(EventNotificationTemplateUpdateStatusAction, _super); function EventNotificationTemplateUpdateStatusAction(data) { return _super.call(this, data, { responseType: 'o', responseSubType: 'KalturaEventNotificationTemplate', responseConstructor: KalturaEventNotificationTemplate }) || this; } EventNotificationTemplateUpdateStatusAction.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { service: { type: 'c', default: 'eventnotification_eventnotificationtemplate' }, action: { type: 'c', default: 'updateStatus' }, id: { type: 'n' }, status: { type: 'en', subTypeConstructor: KalturaEventNotificationTemplateStatus, subType: 'KalturaEventNotificationTemplateStatus' } }); return result; }; return EventNotificationTemplateUpdateStatusAction; }(KalturaRequest)); export { EventNotificationTemplateUpdateStatusAction }; //# sourceMappingURL=EventNotificationTemplateUpdateStatusAction.js.map