TrinityCore
Loading...
Searching...
No Matches
bgs::protocol::whisper::v2::client::WhisperService Class Reference

#include <whisper_service.pb.h>

+ Inheritance diagram for bgs::protocol::whisper::v2::client::WhisperService:

Public Types

typedef std::integral_constant< uint32, 0xFEE1AA14u > OriginalHash
 
typedef std::integral_constant< uint32, 0xB5C9D257u > NameHash
 

Public Member Functions

 WhisperService (bool use_original_hash)
 
 WhisperService (WhisperService const &)=delete
 
 WhisperService (WhisperService &&)=delete
 
WhisperServiceoperator= (WhisperService const &)=delete
 
WhisperServiceoperator= (WhisperService &&)=delete
 
virtual ~WhisperService ()
 
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 HandleSubscribe (::bgs::protocol::whisper::v2::client::SubscribeRequest const *request, ::bgs::protocol::whisper::v2::client::SubscribeResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleUnsubscribe (::bgs::protocol::whisper::v2::client::UnsubscribeRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleGetWhisperHistory (::bgs::protocol::whisper::v2::client::GetWhisperHistoryRequest const *request, ::bgs::protocol::whisper::v2::client::GetWhisperHistoryResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleSendWhisper (::bgs::protocol::whisper::v2::client::SendWhisperRequest const *request, ::bgs::protocol::whisper::v2::client::SendWhisperResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleAdvanceViewTime (::bgs::protocol::whisper::v2::client::AdvanceViewTimeRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleAdvanceClearTime (::bgs::protocol::whisper::v2::client::AdvanceClearTimeRequest const *request, ::bgs::protocol::NoData *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation)
 
virtual uint32 HandleSetTypingIndicator (::bgs::protocol::whisper::v2::client::SetTypingIndicatorRequest 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 ParseAndHandleSubscribe (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleUnsubscribe (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleGetWhisperHistory (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleSendWhisper (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleAdvanceViewTime (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleAdvanceClearTime (uint32 token, uint32 methodId, MessageBuffer &buffer)
 
void ParseAndHandleSetTypingIndicator (uint32 token, uint32 methodId, MessageBuffer &buffer)
 

Additional Inherited Members

- Protected Attributes inherited from ServiceBase
uint32 service_hash_
 

Detailed Description

Definition at line 763 of file whisper_service.pb.h.

Member Typedef Documentation

◆ NameHash

typedef std::integral_constant<uint32, 0xB5C9D257u> bgs::protocol::whisper::v2::client::WhisperService::NameHash

Definition at line 775 of file whisper_service.pb.h.

◆ OriginalHash

typedef std::integral_constant<uint32, 0xFEE1AA14u> bgs::protocol::whisper::v2::client::WhisperService::OriginalHash

Definition at line 774 of file whisper_service.pb.h.

Constructor & Destructor Documentation

◆ WhisperService() [1/3]

bgs::protocol::whisper::v2::client::WhisperService::WhisperService ( bool  use_original_hash)
explicit

◆ WhisperService() [2/3]

bgs::protocol::whisper::v2::client::WhisperService::WhisperService ( WhisperService const &  )
delete

◆ WhisperService() [3/3]

bgs::protocol::whisper::v2::client::WhisperService::WhisperService ( WhisperService &&  )
delete

◆ ~WhisperService()

virtual bgs::protocol::whisper::v2::client::WhisperService::~WhisperService ( )
virtual

Member Function Documentation

◆ CallServerMethod()

void bgs::protocol::whisper::v2::client::WhisperService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finalvirtual

Implements ServiceBase.

◆ descriptor()

static google::protobuf::ServiceDescriptor const * bgs::protocol::whisper::v2::client::WhisperService::descriptor ( )
static

◆ HandleAdvanceClearTime()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleAdvanceClearTime ( ::bgs::protocol::whisper::v2::client::AdvanceClearTimeRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleAdvanceViewTime()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleAdvanceViewTime ( ::bgs::protocol::whisper::v2::client::AdvanceViewTimeRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleGetWhisperHistory()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleGetWhisperHistory ( ::bgs::protocol::whisper::v2::client::GetWhisperHistoryRequest const *  request,
::bgs::protocol::whisper::v2::client::GetWhisperHistoryResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleSendWhisper()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleSendWhisper ( ::bgs::protocol::whisper::v2::client::SendWhisperRequest const *  request,
::bgs::protocol::whisper::v2::client::SendWhisperResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleSetTypingIndicator()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleSetTypingIndicator ( ::bgs::protocol::whisper::v2::client::SetTypingIndicatorRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleSubscribe()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleSubscribe ( ::bgs::protocol::whisper::v2::client::SubscribeRequest const *  request,
::bgs::protocol::whisper::v2::client::SubscribeResponse response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ HandleUnsubscribe()

virtual uint32 bgs::protocol::whisper::v2::client::WhisperService::HandleUnsubscribe ( ::bgs::protocol::whisper::v2::client::UnsubscribeRequest const *  request,
::bgs::protocol::NoData response,
std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &  continuation 
)
protectedvirtual

◆ operator=() [1/2]

WhisperService & bgs::protocol::whisper::v2::client::WhisperService::operator= ( WhisperService &&  )
delete

◆ operator=() [2/2]

WhisperService & bgs::protocol::whisper::v2::client::WhisperService::operator= ( WhisperService const &  )
delete

◆ ParseAndHandleAdvanceClearTime()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleAdvanceClearTime ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleAdvanceViewTime()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleAdvanceViewTime ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleGetWhisperHistory()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleGetWhisperHistory ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleSendWhisper()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleSendWhisper ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleSetTypingIndicator()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleSetTypingIndicator ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleSubscribe()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleSubscribe ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

◆ ParseAndHandleUnsubscribe()

void bgs::protocol::whisper::v2::client::WhisperService::ParseAndHandleUnsubscribe ( uint32  token,
uint32  methodId,
MessageBuffer buffer 
)
private

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