UNPKG

@kaltura-ng/kaltura-client

Version:
40 lines 1.71 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 { KalturaCuePointFilter } from './KalturaCuePointFilter'; import { KalturaRequest } from '../kaltura-request'; /** * Build request payload for service 'annotation' action 'count'. * * Usage: count cue point objects by filter * * Server response type: number * Server failure response type: KalturaAPIException * @class * @extends KalturaRequest */ var AnnotationCountAction = (function (_super) { __extends(AnnotationCountAction, _super); function AnnotationCountAction(data) { return _super.call(this, data, { responseType: 'n', responseSubType: '', responseConstructor: null }) || this; } AnnotationCountAction.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { service: { type: 'c', default: 'annotation_annotation' }, action: { type: 'c', default: 'count' }, filter: { type: 'o', subTypeConstructor: KalturaCuePointFilter, subType: 'KalturaCuePointFilter' } }); return result; }; return AnnotationCountAction; }(KalturaRequest)); export { AnnotationCountAction }; //# sourceMappingURL=AnnotationCountAction.js.map