aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/User.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/dchat/User.hpp')
-rw-r--r--include/dchat/User.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/dchat/User.hpp b/include/dchat/User.hpp
new file mode 100644
index 0000000..4021c78
--- /dev/null
+++ b/include/dchat/User.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <string>
+#include <odhtdb/Signature.hpp>
+
+namespace dchat
+{
+ class User
+ {
+ public:
+ User(const odhtdb::Signature::PublicKey &_publicKey) : publicKey(_publicKey), userdata(nullptr) {}
+ const odhtdb::Signature::PublicKey publicKey;
+ std::string nickname;
+ void *userdata;
+ };
+} \ No newline at end of file