aboutsummaryrefslogtreecommitdiff
path: root/plugins/Matrix.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Matrix.hpp')
-rw-r--r--plugins/Matrix.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/Matrix.hpp b/plugins/Matrix.hpp
index c7cb154..b2e1711 100644
--- a/plugins/Matrix.hpp
+++ b/plugins/Matrix.hpp
@@ -10,10 +10,19 @@ namespace QuickMedia {
std::string avatar_url;
};
+ enum class MessageType {
+ TEXT,
+ IMAGE,
+ VIDEO
+ };
+
struct Message {
// Index into |RoomData.user_info|
size_t user_id;
- std::string msg;
+ std::string body;
+ std::string url;
+ std::string thumbnail_url;
+ MessageType type;
};
struct RoomData {