UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

41 lines (40 loc) 1.84 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamsVideoResponse = void 0; const Mapper_1 = require("../common/Mapper"); const StreamsAdConfigResponse_1 = require("./StreamsAdConfigResponse"); const StreamsDomainRestrictionResponse_1 = require("./StreamsDomainRestrictionResponse"); const StreamsResponse_1 = require("./StreamsResponse"); const StreamsStyleConfigResponse_1 = require("./StreamsStyleConfigResponse"); const StreamsType_1 = require("./StreamsType"); const StreamsVideoEncodingTask_1 = require("./StreamsVideoEncodingTask"); /** * @export * @class StreamsVideoResponse */ class StreamsVideoResponse extends StreamsResponse_1.default { constructor(obj) { super(obj); /** * Discriminator property for StreamsResponse * @type {string} * @memberof StreamsVideoResponse */ this.type = StreamsType_1.default.VIDEO; if (!obj) { return; } this.assetUrl = (0, Mapper_1.map)(obj.assetUrl); this.status = (0, Mapper_1.map)(obj.status); this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_1.default); this.encodingTasks = (0, Mapper_1.mapArray)(obj.encodingTasks, StreamsVideoEncodingTask_1.default); this.posterUrl = (0, Mapper_1.map)(obj.posterUrl); this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default); this.domainRestriction = (0, Mapper_1.map)(obj.domainRestriction, StreamsDomainRestrictionResponse_1.default); this.trimming = (0, Mapper_1.map)(obj.trimming); this.downloadUrl = (0, Mapper_1.map)(obj.downloadUrl); this.signed = (0, Mapper_1.map)(obj.signed); } } exports.StreamsVideoResponse = StreamsVideoResponse; exports.default = StreamsVideoResponse;