TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
bgs::protocol::channel::v1::ChannelService Class Reference

#include <channel_service.pb.h>

Public Types

typedef std::integral_constant
< uint32, 0xB732DB32u > 
OriginalHash
 
typedef std::integral_constant
< uint32, 0xA913A87Bu > 
NameHash
 

Public Member Functions

 ChannelService (bool use_original_hash)
 
virtual ~ChannelService ()
 
void AddMember (::bgs::protocol::channel::v1::AddMemberRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void RemoveMember (::bgs::protocol::channel::v1::RemoveMemberRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void SendMessage (::bgs::protocol::channel::v1::SendMessageRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void UpdateChannelState (::bgs::protocol::channel::v1::UpdateChannelStateRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void UpdateMemberState (::bgs::protocol::channel::v1::UpdateMemberStateRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void Dissolve (::bgs::protocol::channel::v1::DissolveRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void SetRoles (::bgs::protocol::channel::v1::SetRolesRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void UnsubscribeMember (::bgs::protocol::channel::v1::UnsubscribeMemberRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void CallServerMethod (uint32 token, uint32 methodId, MessageBuffer buffer) overridefinal
 
- Public Member Functions inherited from ServiceBase
virtual ~ServiceBase ()
 

Static Public Member Functions

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

Protected Member Functions

virtual uint32 HandleAddMember (::bgs::protocol::channel::v1::AddMemberRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleRemoveMember (::bgs::protocol::channel::v1::RemoveMemberRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleSendMessage (::bgs::protocol::channel::v1::SendMessageRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleUpdateChannelState (::bgs::protocol::channel::v1::UpdateChannelStateRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleUpdateMemberState (::bgs::protocol::channel::v1::UpdateMemberStateRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleDissolve (::bgs::protocol::channel::v1::DissolveRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleSetRoles (::bgs::protocol::channel::v1::SetRolesRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleUnsubscribeMember (::bgs::protocol::channel::v1::UnsubscribeMemberRequest const *request,::bgs::protocol::NoData *response)
 
- Protected Member Functions inherited from ServiceBase
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
 
virtual std::string GetCallerInfo () const =0
 

Private Member Functions

 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (ChannelService)
 

Private Attributes

uint32 service_hash_
 

Member Typedef Documentation

typedef std::integral_constant<uint32, 0xA913A87Bu> bgs::protocol::channel::v1::ChannelService::NameHash
typedef std::integral_constant<uint32, 0xB732DB32u> bgs::protocol::channel::v1::ChannelService::OriginalHash

Constructor & Destructor Documentation

bgs::protocol::channel::v1::ChannelService::ChannelService ( bool  use_original_hash)
explicit
virtual bgs::protocol::channel::v1::ChannelService::~ChannelService ( )
virtual

Member Function Documentation

void bgs::protocol::channel::v1::ChannelService::AddMember ( ::bgs::protocol::channel::v1::AddMemberRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finaloverridevirtual

Implements ServiceBase.

static google::protobuf::ServiceDescriptor const* bgs::protocol::channel::v1::ChannelService::descriptor ( )
static
void bgs::protocol::channel::v1::ChannelService::Dissolve ( ::bgs::protocol::channel::v1::DissolveRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
bgs::protocol::channel::v1::ChannelService::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( ChannelService  )
private
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleAddMember ( ::bgs::protocol::channel::v1::AddMemberRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleDissolve ( ::bgs::protocol::channel::v1::DissolveRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleRemoveMember ( ::bgs::protocol::channel::v1::RemoveMemberRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleSendMessage ( ::bgs::protocol::channel::v1::SendMessageRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleSetRoles ( ::bgs::protocol::channel::v1::SetRolesRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleUnsubscribeMember ( ::bgs::protocol::channel::v1::UnsubscribeMemberRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleUpdateChannelState ( ::bgs::protocol::channel::v1::UpdateChannelStateRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::channel::v1::ChannelService::HandleUpdateMemberState ( ::bgs::protocol::channel::v1::UpdateMemberStateRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
void bgs::protocol::channel::v1::ChannelService::RemoveMember ( ::bgs::protocol::channel::v1::RemoveMemberRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::SendMessage ( ::bgs::protocol::channel::v1::SendMessageRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::SetRoles ( ::bgs::protocol::channel::v1::SetRolesRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::UnsubscribeMember ( ::bgs::protocol::channel::v1::UnsubscribeMemberRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::UpdateChannelState ( ::bgs::protocol::channel::v1::UpdateChannelStateRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::channel::v1::ChannelService::UpdateMemberState ( ::bgs::protocol::channel::v1::UpdateMemberStateRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)

Member Data Documentation

uint32 bgs::protocol::channel::v1::ChannelService::service_hash_
private

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