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

#include <string>

namespace dchat
{
    class User
    {
    public:
        virtual ~User(){}
        virtual const std::string& getName() const = 0;
    };
    
    class OfflineUser : public User
    {
    public:
        OfflineUser(const std::string &name);
        virtual const std::string& getName() const override;
        
        std::string name;
    };
}