UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

28 lines (27 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AnalyticsErrorDetail = void 0; const Mapper_1 = require("../common/Mapper"); const AnalyticsErrorData_1 = require("./AnalyticsErrorData"); const AnalyticsHttpRequest_1 = require("./AnalyticsHttpRequest"); /** * @export * @class AnalyticsErrorDetail */ class AnalyticsErrorDetail { constructor(obj) { if (!obj) { return; } this.errorId = (0, Mapper_1.map)(obj.errorId); this.time = (0, Mapper_1.map)(obj.time, Date); this.clientTime = (0, Mapper_1.map)(obj.clientTime, Date); this.code = (0, Mapper_1.map)(obj.code); this.message = (0, Mapper_1.map)(obj.message); this.errorData = (0, Mapper_1.map)(obj.errorData, AnalyticsErrorData_1.default); this.severity = (0, Mapper_1.map)(obj.severity); this.httpRequests = (0, Mapper_1.mapArray)(obj.httpRequests, AnalyticsHttpRequest_1.default); } } exports.AnalyticsErrorDetail = AnalyticsErrorDetail; exports.default = AnalyticsErrorDetail;