@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
35 lines (34 loc) • 1.37 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Scene = void 0;
const Mapper_1 = require("../common/Mapper");
const AdOpportunity_1 = require("./AdOpportunity");
const Content_1 = require("./Content");
const IABTaxonomy_1 = require("./IABTaxonomy");
const Shot_1 = require("./Shot");
/**
* @export
* @class Scene
*/
class Scene {
constructor(obj) {
if (!obj) {
return;
}
this.title = (0, Mapper_1.map)(obj.title);
this.startInSeconds = (0, Mapper_1.map)(obj.startInSeconds);
this.endInSeconds = (0, Mapper_1.map)(obj.endInSeconds);
this.id = (0, Mapper_1.map)(obj.id);
this.content = (0, Mapper_1.map)(obj.content, Content_1.default);
this.summary = (0, Mapper_1.map)(obj.summary);
this.verboseSummary = (0, Mapper_1.map)(obj.verboseSummary);
this.sensitiveTopics = (0, Mapper_1.mapArray)(obj.sensitiveTopics);
this.keywords = (0, Mapper_1.mapArray)(obj.keywords);
this.iab = (0, Mapper_1.map)(obj.iab, IABTaxonomy_1.default);
this.type = (0, Mapper_1.map)(obj.type);
this.shots = (0, Mapper_1.mapArray)(obj.shots, Shot_1.default);
this.adOpportunityInformation = (0, Mapper_1.map)(obj.adOpportunityInformation, AdOpportunity_1.default);
}
}
exports.Scene = Scene;
exports.default = Scene;