aboutsummaryrefslogtreecommitdiff
path: root/include/Message.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Message.hpp')
-rw-r--r--include/Message.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/Message.hpp b/include/Message.hpp
index 7cd7fdf..a6edddf 100644
--- a/include/Message.hpp
+++ b/include/Message.hpp
@@ -1,7 +1,7 @@
#pragma once
-#include "MessagePart.hpp"
#include "User.hpp"
+#include "Text.hpp"
#include <string>
#include <vector>
@@ -10,17 +10,9 @@ namespace dchat
class Message
{
public:
- Message(User *user);
- virtual ~Message();
-
- void addText(const std::string &text, bool newLine = true);
- void addEmoji(const std::string &url, bool newLine = true);
- std::vector<MessagePart*>& getParts();
-
- static Message* buildFromString(User *user, const std::string &str);
+ Message(User *user, const std::string &text);
const User *user;
- private:
- std::vector<MessagePart*> messageParts;
+ Text text;
};
}