som-exp-sdk
Version:
Evaluate the User Expression
39 lines (38 loc) • 1.11 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConnectionParams = void 0;
class ConnectionParams {
constructor(httpClient, host, port, baseUrl) {
this.httpClient = {};
this.host = "";
this.port = -1;
this.baseUrl = "";
this.isHealthy = () => {
return !!this.httpClient && !!this.host && !!this.port;
};
this.getHttpClient = () => {
return this.httpClient;
};
this.getHost = () => {
return this.host;
};
this.getPort = () => {
return this.port;
};
this.getBaseUrl = () => {
return this.baseUrl;
};
this.printInfo = () => {
console.log(`Init parameters received are ,
httpClient: ${this.httpClient},
host: ${this.host}
port: ${this.port}
basePath: ${this.baseUrl}`);
};
this.httpClient = httpClient;
this.host = host;
this.port = port;
this.baseUrl = baseUrl;
}
}
exports.ConnectionParams = ConnectionParams;