UNPKG

msbot

Version:

MSBot command line tool for manipulating Microsoft Bot Framework .bot files

25 lines 988 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Copyright(c) Microsoft Corporation.All rights reserved. * Licensed under the MIT License. */ const schema_1 = require("../schema"); const connectedService_1 = require("./connectedService"); class EndpointService extends connectedService_1.ConnectedService { constructor(source) { super(source); this.type = schema_1.ServiceType.Endpoint; this.appId = ''; this.appPassword = ''; this.endpoint = ''; const { appId = '', appPassword = '', endpoint = '' } = source; Object.assign(this, { appId, appPassword, endpoint }); } toJSON() { const { appId = '', id = '', appPassword = '', endpoint = '', name = '' } = this; return { appId, id, type: schema_1.ServiceType.Endpoint, appPassword, endpoint, name }; } } exports.EndpointService = EndpointService; //# sourceMappingURL=endpointService.js.map