UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

59 lines (58 loc) 2.79 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamsVideoResponse = void 0; var Mapper_1 = require("../common/Mapper"); var StreamsAdConfigResponse_1 = require("./StreamsAdConfigResponse"); var StreamsDomainRestrictionResponse_1 = require("./StreamsDomainRestrictionResponse"); var StreamsResponse_1 = require("./StreamsResponse"); var StreamsStyleConfigResponse_1 = require("./StreamsStyleConfigResponse"); var StreamsType_1 = require("./StreamsType"); var StreamsVideoEncodingTask_1 = require("./StreamsVideoEncodingTask"); /** * @export * @class StreamsVideoResponse */ var StreamsVideoResponse = /** @class */ (function (_super) { __extends(StreamsVideoResponse, _super); function StreamsVideoResponse(obj) { var _this = _super.call(this, obj) || this; /** * Discriminator property for StreamsResponse * @type {string} * @memberof StreamsVideoResponse */ _this.type = StreamsType_1.default.VIDEO; if (!obj) { return _this; } _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); return _this; } return StreamsVideoResponse; }(StreamsResponse_1.default)); exports.StreamsVideoResponse = StreamsVideoResponse; exports.default = StreamsVideoResponse;