UNPKG

@kaltura-ng/kaltura-client

Version:
42 lines 2.06 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 { KalturaTypesFactory } from '../kaltura-types-factory'; import { KalturaMediaEntryFilterForPlaylist } from './KalturaMediaEntryFilterForPlaylist'; import { KalturaPlaylistType } from './KalturaPlaylistType'; import { KalturaBaseEntry } from './KalturaBaseEntry'; var KalturaPlaylist = (function (_super) { __extends(KalturaPlaylist, _super); function KalturaPlaylist(data) { var _this = _super.call(this, data) || this; if (typeof _this.filters === 'undefined') _this.filters = []; return _this; } KalturaPlaylist.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { objectType: { type: 'c', default: 'KalturaPlaylist' }, playlistContent: { type: 's' }, filters: { type: 'a', subTypeConstructor: KalturaMediaEntryFilterForPlaylist, subType: 'KalturaMediaEntryFilterForPlaylist' }, totalResults: { type: 'n' }, playlistType: { type: 'en', subTypeConstructor: KalturaPlaylistType, subType: 'KalturaPlaylistType' }, plays: { type: 'n', readOnly: true }, views: { type: 'n', readOnly: true }, duration: { type: 'n', readOnly: true }, executeUrl: { type: 's', readOnly: true } }); return result; }; return KalturaPlaylist; }(KalturaBaseEntry)); export { KalturaPlaylist }; KalturaTypesFactory.registerType('KalturaPlaylist', KalturaPlaylist); //# sourceMappingURL=KalturaPlaylist.js.map