TrinityCore
Loading...
Searching...
No Matches
bgs::protocol::notification::v1::NotificationService Class Reference

#include <notification_service.pb.h>

+ Inheritance diagram for bgs::protocol::notification::v1::NotificationService:

Public Types

typedef std::integral_constant< uint32, 0xCBE3C43u > OriginalHash
 
typedef std::integral_constant< uint32, 0x53C8C253u > NameHash
 

Public Member Functions

 NotificationService (bool use_original_hash)
 
 NotificationService (NotificationService const &)=delete
 
 NotificationService (NotificationService &&)=delete
 
NotificationServiceoperator= (NotificationService const &)=delete
 
NotificationServiceoperator= (NotificationService &&)=delete
 
virtual ~NotificationService ()
 
void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer) final
 
- Public Member Functions inherited from ServiceBase
 ServiceBase (uint32 serviceHash)
 
virtual ~ServiceBase ()
 
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 HandleSendNotification (::bgs::protocol::notification::v1::Notification const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleSubscribe (::bgs::protocol::notification::v1::SubscribeRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleUnsubscribe (::bgs::protocol::notification::v1::UnsubscribeRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandlePublish (::bgs::protocol::notification::v1::PublishRequest const *request, ::bgs::protocol::NoData *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 ParseAndHandleSendNotification (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleSubscribe (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleUnsubscribe (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandlePublish (uint32 token, uint32 methodId, MessageBuffer &buffer)
 

Additional Inherited Members

- Protected Attributes inherited from ServiceBase
uint32 service_hash_
 

Detailed Description

Definition at line 267 of file notification_service.pb.h.

Member Typedef Documentation

◆ NameHash

typedef std::integral_constant<uint32, 0x53C8C253u> bgs::protocol::notification::v1::NotificationService::NameHash

Definition at line 279 of file notification_service.pb.h.

◆ OriginalHash

Definition at line 278 of file notification_service.pb.h.

Constructor & Destructor Documentation

◆ NotificationService() [1/3]

bgs::protocol::notification::v1::NotificationService::NotificationService ( bool  use_original_hash)
explicit

◆ NotificationService() [2/3]

bgs::protocol::notification::v1::NotificationService::NotificationService ( NotificationService const &  )
delete

◆ NotificationService() [3/3]

bgs::protocol::notification::v1::NotificationService::NotificationService ( NotificationService &&  )
delete

◆ ~NotificationService()

virtual bgs::protocol::notification::v1::NotificationService::~NotificationService ( )
virtual

Member Function Documentation

◆ CallServerMethod()

void bgs::protocol::notification::v1::NotificationService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finalvirtual

Implements ServiceBase.

◆ descriptor()

static google::protobuf::ServiceDescriptor const * bgs::protocol::notification::v1::NotificationService::descriptor ( )
static

◆ HandlePublish()

virtual uint32 bgs::protocol::notification::v1::NotificationService::HandlePublish ( ::bgs::protocol::notification::v1::PublishRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleSendNotification()

virtual uint32 bgs::protocol::notification::v1::NotificationService::HandleSendNotification ( ::bgs::protocol::notification::v1::Notification const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleSubscribe()

virtual uint32 bgs::protocol::notification::v1::NotificationService::HandleSubscribe ( ::bgs::protocol::notification::v1::SubscribeRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleUnsubscribe()

virtual uint32 bgs::protocol::notification::v1::NotificationService::HandleUnsubscribe ( ::bgs::protocol::notification::v1::UnsubscribeRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ operator=() [1/2]

NotificationService & bgs::protocol::notification::v1::NotificationService::operator= ( NotificationService &&  )
delete

◆ operator=() [2/2]

NotificationService & bgs::protocol::notification::v1::NotificationService::operator= ( NotificationService const &  )
delete

◆ ParseAndHandlePublish()

void bgs::protocol::notification::v1::NotificationService::ParseAndHandlePublish ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleSendNotification()

void bgs::protocol::notification::v1::NotificationService::ParseAndHandleSendNotification ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleSubscribe()

void bgs::protocol::notification::v1::NotificationService::ParseAndHandleSubscribe ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleUnsubscribe()

void bgs::protocol::notification::v1::NotificationService::ParseAndHandleUnsubscribe ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

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