UNPKG

@euirim/microsoft-cognitiveservices-speech-sdk

Version:
49 lines (47 loc) 1.9 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); var Exports_1 = require("../sdk/Exports"); var ProxyInfo = /** @class */ (function () { function ProxyInfo(proxyHostName, proxyPort, proxyUserName, proxyPassword) { this.privProxyHostName = proxyHostName; this.privProxyPort = proxyPort; this.privProxyUserName = proxyUserName; this.privProxyPassword = proxyPassword; } ProxyInfo.fromRecognizerConfig = function (config) { return new ProxyInfo(config.parameters.getProperty(Exports_1.PropertyId.SpeechServiceConnection_ProxyHostName), parseInt(config.parameters.getProperty(Exports_1.PropertyId.SpeechServiceConnection_ProxyPort), 10), config.parameters.getProperty(Exports_1.PropertyId.SpeechServiceConnection_ProxyUserName), config.parameters.getProperty(Exports_1.PropertyId.SpeechServiceConnection_ProxyPassword)); }; Object.defineProperty(ProxyInfo.prototype, "HostName", { get: function () { return this.privProxyHostName; }, enumerable: true, configurable: true }); Object.defineProperty(ProxyInfo.prototype, "Port", { get: function () { return this.privProxyPort; }, enumerable: true, configurable: true }); Object.defineProperty(ProxyInfo.prototype, "UserName", { get: function () { return this.privProxyUserName; }, enumerable: true, configurable: true }); Object.defineProperty(ProxyInfo.prototype, "Password", { get: function () { return this.privProxyPassword; }, enumerable: true, configurable: true }); return ProxyInfo; }()); exports.ProxyInfo = ProxyInfo; //# sourceMappingURL=ProxyInfo.js.map