@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
85 lines (84 loc) • 2.25 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamsResponseListQueryParamsBuilder = void 0;
class StreamsResponseListQueryParamsBuilder {
constructor() {
this.internalParams = {};
}
/**
*
* @param offset Index of the first item to return, starting at 0. Default is 0
*/
offset(offset) {
this.internalParams.offset = offset;
return this;
}
/**
*
* @param limit Maximum number of items to return. Default is 25, maximum is 100
*/
limit(limit) {
this.internalParams.limit = limit;
return this;
}
/**
*
* @param query Query to search for in a streams' title, description and ID
*/
query(query) {
this.internalParams.query = query;
return this;
}
/**
*
* @param type Type of stream to search for
*/
type(type) {
this.internalParams.type = type;
return this;
}
/**
*
* @param status Status of the streams to search for
*/
status(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
*/
createdBefore(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
*/
createdAfter(createdAfter) {
this.internalParams.createdAfter = createdAfter;
return this;
}
/**
*
* @param signed Filter for token-protected/signed streams
*/
signed(signed) {
this.internalParams.signed = signed;
return this;
}
/**
*
* @param domainRestricted Filter for domain-restricted streams
*/
domainRestricted(domainRestricted) {
this.internalParams.domainRestricted = domainRestricted;
return this;
}
buildQueryParams() {
return this.internalParams;
}
}
exports.StreamsResponseListQueryParamsBuilder = StreamsResponseListQueryParamsBuilder;