@ebonydevcopy/framework
Version:
A module-based NodeJS chatbot framework.
28 lines • 756 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class GenericAdapter {
constructor() {
this.handlers = {};
this.routers = {};
}
setRouters(routers) {
this.routers = routers;
}
setHandlers(handlers) {
this.handlers = handlers;
}
init(routers, handlers) {
this.setRouters({
PostbackRouter: routers.postbackRouter,
ReferralsRouter: routers.referralsRouter,
TextMatcher: routers.textMatcher
});
this.setHandlers({
text: handlers.text,
attachment: handlers.attachment
});
this.initialization();
}
}
exports.default = GenericAdapter;
//# sourceMappingURL=adapter.js.map