@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
42 lines • 2.24 kB
JavaScript
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 { KalturaPushNotificationData } from './KalturaPushNotificationData';
import { KalturaPushNotificationParams } from './KalturaPushNotificationParams';
import { KalturaRequest } from '../kaltura-request';
/**
* Build request payload for service 'eventNotificationTemplate' action 'register'.
*
* Usage: Register to a queue from which event messages will be provided according to given template. Queue will be created if not already exists
*
* Server response type: KalturaPushNotificationData
* Server failure response type: KalturaAPIException
* @class
* @extends KalturaRequest
*/
var EventNotificationTemplateRegisterAction = (function (_super) {
__extends(EventNotificationTemplateRegisterAction, _super);
function EventNotificationTemplateRegisterAction(data) {
return _super.call(this, data, { responseType: 'o', responseSubType: 'KalturaPushNotificationData', responseConstructor: KalturaPushNotificationData }) || this;
}
EventNotificationTemplateRegisterAction.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
service: { type: 'c', default: 'eventnotification_eventnotificationtemplate' },
action: { type: 'c', default: 'register' },
notificationTemplateSystemName: { type: 's' },
pushNotificationParams: { type: 'o', subTypeConstructor: KalturaPushNotificationParams, subType: 'KalturaPushNotificationParams' }
});
return result;
};
return EventNotificationTemplateRegisterAction;
}(KalturaRequest));
export { EventNotificationTemplateRegisterAction };
//# sourceMappingURL=EventNotificationTemplateRegisterAction.js.map