Move Types.h into core/inc
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "connectors/Types.h"
|
||||
#include "core/inc/Types.h"
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
struct User
|
||||
{
|
||||
std::int64_t id;
|
||||
std::string firstName;
|
||||
std::string lastName;
|
||||
std::string username;
|
||||
};
|
||||
|
||||
struct Chat
|
||||
{
|
||||
std::int64_t id;
|
||||
std::string title;
|
||||
};
|
||||
|
||||
struct InboundMessage
|
||||
{
|
||||
std::int32_t id;
|
||||
std::int32_t thread_id;
|
||||
std::uint32_t date;
|
||||
std::string text;
|
||||
std::shared_ptr<User> from;
|
||||
std::shared_ptr<Chat> chat;
|
||||
};
|
||||
|
||||
struct OutboundMessage
|
||||
{
|
||||
std::int64_t target_chat_id;
|
||||
std::string text;
|
||||
};
|
||||
}
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include "connectors/tgbot-cpp/TgbotCppConnector.h"
|
||||
#include "connectors/BotToken.h"
|
||||
#include "connectors/Types.h"
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
|
||||
@@ -6,10 +6,11 @@
|
||||
#include <memory>
|
||||
|
||||
#include "connectors/IConnector.h"
|
||||
#include "external/tgbot-cpp/include/tgbot/tgbot.h"
|
||||
#include "connectors/Types.h"
|
||||
#include "core/inc/Types.h"
|
||||
#include "core/inc/ThreadSafeQueue.h"
|
||||
|
||||
#include "external/tgbot-cpp/include/tgbot/tgbot.h"
|
||||
|
||||
namespace MBFT
|
||||
{
|
||||
class TgbotCppConnector : public IConnector
|
||||
|
||||
Reference in New Issue
Block a user