@kaltura-ng/kaltura-client
Version:
Kaltura Typescript client
46 lines • 2.41 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 { KalturaPlaybackSource } from './KalturaPlaybackSource';
import { KalturaFlavorAsset } from './KalturaFlavorAsset';
import { KalturaRuleAction } from './KalturaRuleAction';
import { KalturaAccessControlMessage } from './KalturaAccessControlMessage';
import { KalturaObjectBase } from '../kaltura-object-base';
var KalturaPlaybackContext = (function (_super) {
__extends(KalturaPlaybackContext, _super);
function KalturaPlaybackContext(data) {
var _this = _super.call(this, data) || this;
if (typeof _this.sources === 'undefined')
_this.sources = [];
if (typeof _this.flavorAssets === 'undefined')
_this.flavorAssets = [];
if (typeof _this.actions === 'undefined')
_this.actions = [];
if (typeof _this.messages === 'undefined')
_this.messages = [];
return _this;
}
KalturaPlaybackContext.prototype._getMetadata = function () {
var result = _super.prototype._getMetadata.call(this);
Object.assign(result.properties, {
objectType: { type: 'c', default: 'KalturaPlaybackContext' },
sources: { type: 'a', subTypeConstructor: KalturaPlaybackSource, subType: 'KalturaPlaybackSource' },
flavorAssets: { type: 'a', subTypeConstructor: KalturaFlavorAsset, subType: 'KalturaFlavorAsset' },
actions: { type: 'a', subTypeConstructor: KalturaRuleAction, subType: 'KalturaRuleAction' },
messages: { type: 'a', subTypeConstructor: KalturaAccessControlMessage, subType: 'KalturaAccessControlMessage' }
});
return result;
};
return KalturaPlaybackContext;
}(KalturaObjectBase));
export { KalturaPlaybackContext };
KalturaTypesFactory.registerType('KalturaPlaybackContext', KalturaPlaybackContext);
//# sourceMappingURL=KalturaPlaybackContext.js.map