@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
58 lines • 3.71 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 { KalturaTypesFactory } from '../kaltura-types-factory';
import { KalturaEventNotificationTemplateType } from './KalturaEventNotificationTemplateType';
import { KalturaEventNotificationTemplateStatus } from './KalturaEventNotificationTemplateStatus';
import { KalturaEventNotificationEventType } from './KalturaEventNotificationEventType';
import { KalturaEventNotificationEventObjectType } from './KalturaEventNotificationEventObjectType';
import { KalturaCondition } from './KalturaCondition';
import { KalturaEventNotificationParameter } from './KalturaEventNotificationParameter';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaEventNotificationTemplate = (function (_super) {
__extends(KalturaEventNotificationTemplate, _super);
function KalturaEventNotificationTemplate(data) {
var _this = _super.call(this, data) || this;
if (typeof _this.eventConditions === 'undefined')
_this.eventConditions = [];
if (typeof _this.contentParameters === 'undefined')
_this.contentParameters = [];
if (typeof _this.userParameters === 'undefined')
_this.userParameters = [];
return _this;
}
KalturaEventNotificationTemplate.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaEventNotificationTemplate' },
id: { type: 'n', readOnly: true },
partnerId: { type: 'n', readOnly: true },
name: { type: 's' },
systemName: { type: 's' },
description: { type: 's' },
type: { type: 'es', subTypeConstructor: KalturaEventNotificationTemplateType, subType: 'KalturaEventNotificationTemplateType' },
status: { type: 'en', readOnly: true, subTypeConstructor: KalturaEventNotificationTemplateStatus, subType: 'KalturaEventNotificationTemplateStatus' },
createdAt: { type: 'd', readOnly: true },
updatedAt: { type: 'd', readOnly: true },
manualDispatchEnabled: { type: 'b' },
automaticDispatchEnabled: { type: 'b' },
eventType: { type: 'es', subTypeConstructor: KalturaEventNotificationEventType, subType: 'KalturaEventNotificationEventType' },
eventObjectType: { type: 'es', subTypeConstructor: KalturaEventNotificationEventObjectType, subType: 'KalturaEventNotificationEventObjectType' },
eventConditions: { type: 'a', subTypeConstructor: KalturaCondition, subType: 'KalturaCondition' },
contentParameters: { type: 'a', subTypeConstructor: KalturaEventNotificationParameter, subType: 'KalturaEventNotificationParameter' },
userParameters: { type: 'a', subTypeConstructor: KalturaEventNotificationParameter, subType: 'KalturaEventNotificationParameter' }
});
return result;
};
return KalturaEventNotificationTemplate;
}(KalturaObjectBase));
export { KalturaEventNotificationTemplate };
KalturaTypesFactory.registerType('KalturaEventNotificationTemplate', KalturaEventNotificationTemplate);
//# sourceMappingURL=KalturaEventNotificationTemplate.js.map