TrinityCore
bgs::protocol::resources::v1::ResourcesService Class Reference

#include <resource_service.pb.h>

+ Inheritance diagram for bgs::protocol::resources::v1::ResourcesService:

Public Types

typedef std::integral_constant< uint32, 0xECBE75BAu > OriginalHash
 
typedef std::integral_constant< uint32, 0x4B104C53u > NameHash
 

Public Member Functions

 ResourcesService (bool use_original_hash)
 
 ResourcesService (ResourcesService const &)=delete
 
 ResourcesService (ResourcesService &&)=delete
 
ResourcesServiceoperator= (ResourcesService const &)=delete
 
ResourcesServiceoperator= (ResourcesService &&)=delete
 
virtual ~ResourcesService ()
 
void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer) final
 
- Public Member Functions inherited from ServiceBase
 ServiceBase (uint32 serviceHash)
 
virtual ~ServiceBase ()
 
virtual void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer)=0
 
virtual std::string GetCallerInfo () const =0
 
void LogDisallowedMethod (uint32 methodId)
 
void LogCallClientMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogCallServerMethod (char const *methodName, char const *inputTypeName, google::protobuf::Message const *request)
 
void LogUnimplementedServerMethod (char const *methodName, google::protobuf::Message const *request)
 
void LogInvalidMethod (uint32 methodId)
 
void LogFailedParsingRequest (char const *methodName)
 
uint32 GetServiceHash () const
 

Static Public Member Functions

static google::protobuf::ServiceDescriptor const * descriptor ()
 

Protected Member Functions

virtual uint32 HandleGetContentHandle (::bgs::protocol::resources::v1::ContentHandleRequest const *request, ::bgs::protocol::ContentHandle *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleGetTitleIcons (::bgs::protocol::resources::v1::GetTitleIconsRequest const *request, ::bgs::protocol::resources::v1::GetTitleIconsResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
- Protected Member Functions inherited from ServiceBase
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> CreateServerContinuation (uint32 token, uint32 methodId, char const *methodName, google::protobuf::Descriptor const *outputDescriptor)
 
virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback)=0
 
virtual void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, uint32 status)=0
 
virtual void SendResponse (uint32 serviceHash, uint32 methodId, uint32 token, google::protobuf::Message const *response)=0
 

Private Member Functions

void ParseAndHandleGetContentHandle (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleGetTitleIcons (uint32 token, uint32 methodId, MessageBuffer &buffer)
 

Additional Inherited Members

- Protected Attributes inherited from ServiceBase
uint32 service_hash_
 

Detailed Description

Definition at line 295 of file resource_service.pb.h.

Member Typedef Documentation

◆ NameHash

typedef std::integral_constant<uint32, 0x4B104C53u> bgs::protocol::resources::v1::ResourcesService::NameHash

Definition at line 307 of file resource_service.pb.h.

◆ OriginalHash

typedef std::integral_constant<uint32, 0xECBE75BAu> bgs::protocol::resources::v1::ResourcesService::OriginalHash

Definition at line 306 of file resource_service.pb.h.

Constructor & Destructor Documentation

◆ ResourcesService() [1/3]

bgs::protocol::resources::v1::ResourcesService::ResourcesService ( bool  use_original_hash)
explicit

◆ ResourcesService() [2/3]

bgs::protocol::resources::v1::ResourcesService::ResourcesService ( ResourcesService const &  )
delete

◆ ResourcesService() [3/3]

bgs::protocol::resources::v1::ResourcesService::ResourcesService ( ResourcesService &&  )
delete

◆ ~ResourcesService()

virtual bgs::protocol::resources::v1::ResourcesService::~ResourcesService ( )
virtual

Member Function Documentation

◆ CallServerMethod()

void bgs::protocol::resources::v1::ResourcesService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finalvirtual

Implements ServiceBase.

◆ descriptor()

static google::protobuf::ServiceDescriptor const * bgs::protocol::resources::v1::ResourcesService::descriptor ( )
static

◆ HandleGetContentHandle()

virtual uint32 bgs::protocol::resources::v1::ResourcesService::HandleGetContentHandle ( ::bgs::protocol::resources::v1::ContentHandleRequest const *  request,
::bgs::protocol::ContentHandle response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleGetTitleIcons()

virtual uint32 bgs::protocol::resources::v1::ResourcesService::HandleGetTitleIcons ( ::bgs::protocol::resources::v1::GetTitleIconsRequest const *  request,
::bgs::protocol::resources::v1::GetTitleIconsResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ operator=() [1/2]

ResourcesService & bgs::protocol::resources::v1::ResourcesService::operator= ( ResourcesService &&  )
delete

◆ operator=() [2/2]

ResourcesService & bgs::protocol::resources::v1::ResourcesService::operator= ( ResourcesService const &  )
delete

◆ ParseAndHandleGetContentHandle()

void bgs::protocol::resources::v1::ResourcesService::ParseAndHandleGetContentHandle ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleGetTitleIcons()

void bgs::protocol::resources::v1::ResourcesService::ParseAndHandleGetTitleIcons ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

The documentation for this class was generated from the following file: