Move Types.h into core/inc

This commit is contained in:
2026-07-15 17:50:31 +03:00
parent 402d0c114b
commit b761e71668
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "connectors/Types.h"
#include "core/inc/Types.h"
namespace MBFT
{
-37
View File
@@ -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
{
+3 -2
View File
@@ -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