UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

51 lines (50 loc) 1.91 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.FtpInput = void 0; var Mapper_1 = require("../common/Mapper"); var Input_1 = require("./Input"); var InputType_1 = require("./InputType"); /** * @export * @class FtpInput */ var FtpInput = /** @class */ (function (_super) { __extends(FtpInput, _super); function FtpInput(obj) { var _this = _super.call(this, obj) || this; /** * Discriminator property for Input * @type {string} * @memberof FtpInput */ _this.type = InputType_1.default.FTP; if (!obj) { return _this; } _this.host = (0, Mapper_1.map)(obj.host); _this.port = (0, Mapper_1.map)(obj.port); _this.passive = (0, Mapper_1.map)(obj.passive); _this.username = (0, Mapper_1.map)(obj.username); _this.password = (0, Mapper_1.map)(obj.password); _this.remoteVerificationEnabled = (0, Mapper_1.map)(obj.remoteVerificationEnabled); return _this; } return FtpInput; }(Input_1.default)); exports.FtpInput = FtpInput; exports.default = FtpInput;