Reorganized and cleaned up the solution.

This commit is contained in:
HikikoMarmy
2026-03-02 12:37:07 +00:00
parent 8012f30170
commit d4dfbddf69
175 changed files with 1516 additions and 1136 deletions

View File

@@ -0,0 +1,36 @@
#pragma once
#include <memory>
#include <string>
#include <vector>
#include "RealmUser.hpp"
class ChatRoomSession {
public:
ChatRoomSession();
~ChatRoomSession();
bool AddMember( sptr_user user );
bool RemoveMember( sptr_user user );
bool IsMember( sptr_user user );
bool IsPublic() const;
bool IsPrivate() const;
enum class RoomType {
Public,
Private
};
RoomType m_type;
int32_t m_index;
std::wstring m_name;
std::wstring m_banner;
wptr_user m_owner;
std::vector< wptr_user > m_members;
std::vector< wptr_user > m_moderators;
};
typedef std::shared_ptr< ChatRoomSession > sptr_chat_room_session;