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

#include "User.hpp"
#include "Text.hpp"
#include <string>
#include <vector>

namespace dchat
{
    class Message
    {
    public:
        // If timestamp is 0, then timestamp is not used
        Message(User *user, const std::string &text, u64 timestampSeconds = 0);
        
        const User *user;
        Text text;
        const u64 timestampSeconds;
    };
}