UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

37 lines (36 loc) 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.StreamsLiveResponse = 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"); /** * @export * @class StreamsLiveResponse */ class StreamsLiveResponse extends StreamsResponse_1.default { constructor(obj) { super(obj); /** * Discriminator property for StreamsResponse * @type {string} * @memberof StreamsLiveResponse */ this.type = StreamsType_1.default.LIVE; if (!obj) { return; } this.streamKey = (0, Mapper_1.map)(obj.streamKey); this.lifeCycle = (0, Mapper_1.map)(obj.lifeCycle); this.styleConfig = (0, Mapper_1.map)(obj.styleConfig, StreamsStyleConfigResponse_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); } } exports.StreamsLiveResponse = StreamsLiveResponse; exports.default = StreamsLiveResponse;