UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

29 lines (28 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PlayerLicense = void 0; const Mapper_1 = require("../common/Mapper"); const BitmovinResponse_1 = require("./BitmovinResponse"); const Domain_1 = require("./Domain"); /** * @export * @class PlayerLicense */ class PlayerLicense extends BitmovinResponse_1.default { constructor(obj) { super(obj); if (!obj) { return; } this.name = (0, Mapper_1.map)(obj.name); this.createdAt = (0, Mapper_1.map)(obj.createdAt, Date); this.licenseKey = (0, Mapper_1.map)(obj.licenseKey); this.impressions = (0, Mapper_1.map)(obj.impressions); this.maxImpressions = (0, Mapper_1.map)(obj.maxImpressions); this.thirdPartyLicensingEnabled = (0, Mapper_1.map)(obj.thirdPartyLicensingEnabled); this.domains = (0, Mapper_1.mapArray)(obj.domains, Domain_1.default); this.analyticsKey = (0, Mapper_1.map)(obj.analyticsKey); } } exports.PlayerLicense = PlayerLicense; exports.default = PlayerLicense;