10#include "message_store.hpp"
37 bool sendMessage(
const std::string &from,
const std::string &to,
38 const std::string &message);
46 const std::string &username)
const;
54 const std::string &username)
const;
57 std::unique_ptr<Message_store> messageStore_;
59 std::map<std::pair<std::string, std::string>,
Dialog> dialogs_;
A class to handle Chat_test functionalities including sending and retrieving messages.
Definition chat.hpp:18
Chat()
Constructor for the Chat class.
std::vector< Message > getReceivedMessages(const std::string &username) const
Retrieves the messages received by a specific user.
bool sendMessage(const std::string &from, const std::string &to, const std::string &message)
Sends a message from one user to another.
~Chat()
Destructor for the Chat class.
std::vector< Message > getSentMessages(const std::string &username) const
Retrieves the messages sent by a specific user.
Represents a dialog between two users.
Definition dialog.hpp:13