mirror of
https://github.com/HikikoMarmy/Champions-Reborn-Server.git
synced 2026-04-04 08:49:47 -03:00
41 lines
845 B
C++
41 lines
845 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "../GenericNetRequest.hpp"
|
|
#include "../GenericNetResponse.hpp"
|
|
|
|
class RequestAddIgnore : public GenericRequest
|
|
{
|
|
private:
|
|
std::wstring m_sessionId;
|
|
std::wstring m_chatHandle;
|
|
|
|
enum ERROR_CODE {
|
|
SUCCESS = 0,
|
|
FATAL_ERROR,
|
|
DATABASE_ERROR = 2,
|
|
IGNORE_INVALID = 20,
|
|
IGNORE_FRIEND = 24,
|
|
IGNORE_DUPLICATE = 25,
|
|
};
|
|
|
|
public:
|
|
static std::unique_ptr< RequestAddIgnore > Create()
|
|
{
|
|
return std::make_unique< RequestAddIgnore >();
|
|
}
|
|
|
|
sptr_generic_response ProcessRequest( sptr_socket socket, sptr_byte_stream stream ) override;
|
|
void Deserialize( sptr_byte_stream stream ) override;
|
|
};
|
|
|
|
class ResultAddIgnore : public GenericResponse {
|
|
private:
|
|
int32_t m_reply;
|
|
|
|
public:
|
|
ResultAddIgnore( GenericRequest *request, int32_t reply );
|
|
void Serialize( ByteBuffer &out ) const;
|
|
}; |