UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

24 lines (23 loc) 877 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AnalyticsResponse = void 0; const Mapper_1 = require("../common/Mapper"); const AnalyticsColumnLabel_1 = require("./AnalyticsColumnLabel"); const AnalyticsContextDescription_1 = require("./AnalyticsContextDescription"); /** * @export * @class AnalyticsResponse */ class AnalyticsResponse { constructor(obj) { if (!obj) { return; } this.rows = (0, Mapper_1.mapArray)(obj.rows); this.rowCount = (0, Mapper_1.map)(obj.rowCount); this.columnLabels = (0, Mapper_1.mapArray)(obj.columnLabels, AnalyticsColumnLabel_1.default); this.contextDescription = (0, Mapper_1.mapArray)(obj.contextDescription, AnalyticsContextDescription_1.default); } } exports.AnalyticsResponse = AnalyticsResponse; exports.default = AnalyticsResponse;