initial
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
namespace tw::chat {
|
||||
|
||||
enum class ChatClientError {
|
||||
PermissionDenied,
|
||||
ChannelNotFound,
|
||||
};
|
||||
|
||||
} // namespace tw::chat
|
||||
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
namespace tw::chat {
|
||||
|
||||
enum class ChatServerError {
|
||||
PermissionDenied,
|
||||
ChannelNotFound,
|
||||
};
|
||||
|
||||
} // namespace tw::chat
|
||||
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
||||
namespace tw::chat {
|
||||
|
||||
class ChatMessage {
|
||||
public:
|
||||
using Clock = std::chrono::system_clock;
|
||||
using TimePoint = Clock::time_point;
|
||||
|
||||
TimePoint timestamp;
|
||||
|
||||
uint64_t client_id;
|
||||
uint64_t channel_id;
|
||||
std::string message;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user