aboutsummaryrefslogtreecommitdiff
path: root/include/dchat/User.hpp
blob: 9d22cb3ee86b306b8b0e7afd98c7ba1259abe000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "Group.hpp"
#include <string>
#include <vector>
#include <odhtdb/Signature.hpp>
#include <memory>

namespace dchat
{
    class User
    {
    public:
        User(const odhtdb::Signature::PublicKey &_publicKey) : publicKey(_publicKey), userdata(nullptr) {}
        const odhtdb::Signature::PublicKey publicKey;
        std::string nickname;
        std::string avatarUrl;
        std::vector<std::shared_ptr<Group>> groups;
        void *userdata;
    };
}