mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-04 16:49:47 -03:00
Reorganized and cleaned up the solution.
This commit is contained in:
30
Include/Network/Event/RequestGetSocialListUpdate.hpp
Normal file
30
Include/Network/Event/RequestGetSocialListUpdate.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "../GenericNetRequest.hpp"
|
||||
#include "../GenericNetResponse.hpp"
|
||||
#include "Common/ForwardDecl.hpp"
|
||||
|
||||
class RequestGetSocialListUpdate : public GenericRequest
|
||||
{
|
||||
public:
|
||||
static std::unique_ptr< RequestGetSocialListUpdate > Create()
|
||||
{
|
||||
return std::make_unique< RequestGetSocialListUpdate >();
|
||||
}
|
||||
|
||||
sptr_generic_response ProcessRequest( sptr_socket socket, sptr_byte_stream stream ) override;
|
||||
void Deserialize( sptr_byte_stream stream ) override;
|
||||
};
|
||||
|
||||
class ResultGetSocialListUpdate : public GenericResponse {
|
||||
private:
|
||||
int32_t m_reply;
|
||||
sptr_user m_user;
|
||||
|
||||
public:
|
||||
ResultGetSocialListUpdate( GenericRequest *request, sptr_user user = nullptr );
|
||||
void Serialize( ByteBuffer &out ) const;
|
||||
};
|
||||
Reference in New Issue
Block a user