UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

30 lines (29 loc) 876 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Condition = void 0; const Mapper_1 = require("../common/Mapper"); const AbstractCondition_1 = require("./AbstractCondition"); const ConditionType_1 = require("./ConditionType"); /** * @export * @class Condition */ class Condition extends AbstractCondition_1.default { constructor(obj) { super(obj); /** * Discriminator property for AbstractCondition * @type {string} * @memberof Condition */ this.type = ConditionType_1.default.CONDITION; if (!obj) { return; } this.attribute = (0, Mapper_1.map)(obj.attribute); this.operator = (0, Mapper_1.map)(obj.operator); this.value = (0, Mapper_1.map)(obj.value); } } exports.Condition = Condition; exports.default = Condition;