UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

58 lines (57 loc) 2.79 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.Encoding = void 0; var Mapper_1 = require("../common/Mapper"); var BitmovinResource_1 = require("./BitmovinResource"); var InfrastructureSettings_1 = require("./InfrastructureSettings"); /** * @export * @class Encoding */ var Encoding = /** @class */ (function (_super) { __extends(Encoding, _super); function Encoding(obj) { var _this = _super.call(this, obj) || this; if (!obj) { return _this; } _this.type = (0, Mapper_1.map)(obj.type); _this.startedAt = (0, Mapper_1.map)(obj.startedAt, Date); _this.queuedAt = (0, Mapper_1.map)(obj.queuedAt, Date); _this.runningAt = (0, Mapper_1.map)(obj.runningAt, Date); _this.finishedAt = (0, Mapper_1.map)(obj.finishedAt, Date); _this.errorAt = (0, Mapper_1.map)(obj.errorAt, Date); _this.progress = (0, Mapper_1.map)(obj.progress); _this.cloudRegion = (0, Mapper_1.map)(obj.cloudRegion); _this.fallbackCloudRegions = (0, Mapper_1.mapArray)(obj.fallbackCloudRegions); _this.encoderVersion = (0, Mapper_1.map)(obj.encoderVersion); _this.infrastructure = (0, Mapper_1.map)(obj.infrastructure, InfrastructureSettings_1.default); _this.staticIpId = (0, Mapper_1.map)(obj.staticIpId); _this.selectedEncoderVersion = (0, Mapper_1.map)(obj.selectedEncoderVersion); _this.selectedEncodingMode = (0, Mapper_1.map)(obj.selectedEncodingMode); _this.selectedCloudRegion = (0, Mapper_1.map)(obj.selectedCloudRegion); _this.selectedFallbackCloudRegions = (0, Mapper_1.mapArray)(obj.selectedFallbackCloudRegions); _this.status = (0, Mapper_1.map)(obj.status); _this.labels = (0, Mapper_1.mapArray)(obj.labels); _this.liveOptionsType = (0, Mapper_1.map)(obj.liveOptionsType); return _this; } return Encoding; }(BitmovinResource_1.default)); exports.Encoding = Encoding; exports.default = Encoding;