Introduce MBFT::Module and MBFT::ModuleAPI
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include "core/inc/Types.h"
|
||||
#include "connectors/IConnector.h"
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
class ModuleAPI
|
||||
{
|
||||
public:
|
||||
MBFT::IConnector& connector;
|
||||
MBFT::InboundMessage *ctx{nullptr};
|
||||
public:
|
||||
ModuleAPI(MBFT::IConnector& c);
|
||||
void set_context(const MBFT::InboundMessage * const ctx);
|
||||
|
||||
void v1_respond(const std::string& text);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user