feat: add incoming messages to bot

This commit is contained in:
k0t9i
2023-02-09 18:30:07 +04:00
parent 130cdc6bca
commit eefb5d40ae
27 changed files with 25280 additions and 111 deletions

View File

@@ -0,0 +1,25 @@
#pragma once
#include <vector>
#include "../Repositories/ChatMessageRepositoryInterface.h"
namespace L2Bot::Domain::Services
{
class ChatMessageHandler
{
public:
ChatMessageHandler(Repositories::ChatMessageRepositoryInterface& repository) : m_Repository(repository)
{
}
ChatMessageHandler() = delete;
virtual ~ChatMessageHandler() = default;
virtual const std::vector<ValueObjects::ChatMessage> GetMessages()
{
return m_Repository.GetMessages();
}
private:
Repositories::ChatMessageRepositoryInterface& m_Repository;
};
}