UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

86 lines (85 loc) 2.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamsResponseListQueryParamsBuilder = void 0; var StreamsResponseListQueryParamsBuilder = /** @class */ (function () { function StreamsResponseListQueryParamsBuilder() { this.internalParams = {}; } /** * * @param offset Index of the first item to return, starting at 0. Default is 0 */ StreamsResponseListQueryParamsBuilder.prototype.offset = function (offset) { this.internalParams.offset = offset; return this; }; /** * * @param limit Maximum number of items to return. Default is 25, maximum is 100 */ StreamsResponseListQueryParamsBuilder.prototype.limit = function (limit) { this.internalParams.limit = limit; return this; }; /** * * @param query Query to search for in a streams' title, description and ID */ StreamsResponseListQueryParamsBuilder.prototype.query = function (query) { this.internalParams.query = query; return this; }; /** * * @param type Type of stream to search for */ StreamsResponseListQueryParamsBuilder.prototype.type = function (type) { this.internalParams.type = type; return this; }; /** * * @param status Status of the streams to search for */ StreamsResponseListQueryParamsBuilder.prototype.status = function (status) { this.internalParams.status = status; return this; }; /** * * @param createdBefore Upper limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ */ StreamsResponseListQueryParamsBuilder.prototype.createdBefore = function (createdBefore) { this.internalParams.createdBefore = createdBefore; return this; }; /** * * @param createdAfter Lower limit for the creation date of found streams as UTC in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ */ StreamsResponseListQueryParamsBuilder.prototype.createdAfter = function (createdAfter) { this.internalParams.createdAfter = createdAfter; return this; }; /** * * @param signed Filter for token-protected/signed streams */ StreamsResponseListQueryParamsBuilder.prototype.signed = function (signed) { this.internalParams.signed = signed; return this; }; /** * * @param domainRestricted Filter for domain-restricted streams */ StreamsResponseListQueryParamsBuilder.prototype.domainRestricted = function (domainRestricted) { this.internalParams.domainRestricted = domainRestricted; return this; }; StreamsResponseListQueryParamsBuilder.prototype.buildQueryParams = function () { return this.internalParams; }; return StreamsResponseListQueryParamsBuilder; }()); exports.StreamsResponseListQueryParamsBuilder = StreamsResponseListQueryParamsBuilder;