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

#include <friends_service.pb.h>

Public Types

typedef std::integral_constant
< uint32, 0xA3DDB1BDu > 
OriginalHash
 
typedef std::integral_constant
< uint32, 0xABDFED63u > 
NameHash
 

Public Member Functions

 FriendsService (bool use_original_hash)
 
virtual ~FriendsService ()
 
void Subscribe (::bgs::protocol::friends::v1::SubscribeRequest const *request, std::function< void(::bgs::protocol::friends::v1::SubscribeResponse const *)> responseCallback)
 
void SendInvitation (::bgs::protocol::SendInvitationRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void AcceptInvitation (::bgs::protocol::GenericInvitationRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void RevokeInvitation (::bgs::protocol::GenericInvitationRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void DeclineInvitation (::bgs::protocol::GenericInvitationRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void IgnoreInvitation (::bgs::protocol::GenericInvitationRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void AssignRole (::bgs::protocol::friends::v1::AssignRoleRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void RemoveFriend (::bgs::protocol::friends::v1::GenericFriendRequest const *request, std::function< void(::bgs::protocol::friends::v1::GenericFriendResponse const *)> responseCallback)
 
void ViewFriends (::bgs::protocol::friends::v1::ViewFriendsRequest const *request, std::function< void(::bgs::protocol::friends::v1::ViewFriendsResponse const *)> responseCallback)
 
void UpdateFriendState (::bgs::protocol::friends::v1::UpdateFriendStateRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void Unsubscribe (::bgs::protocol::friends::v1::UnsubscribeRequest const *request, std::function< void(::bgs::protocol::NoData const *)> responseCallback)
 
void RevokeAllInvitations (::bgs::protocol::friends::v1::GenericFriendRequest 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 HandleSubscribe (::bgs::protocol::friends::v1::SubscribeRequest const *request,::bgs::protocol::friends::v1::SubscribeResponse *response)
 
virtual uint32 HandleSendInvitation (::bgs::protocol::SendInvitationRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleAcceptInvitation (::bgs::protocol::GenericInvitationRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleRevokeInvitation (::bgs::protocol::GenericInvitationRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleDeclineInvitation (::bgs::protocol::GenericInvitationRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleIgnoreInvitation (::bgs::protocol::GenericInvitationRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleAssignRole (::bgs::protocol::friends::v1::AssignRoleRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleRemoveFriend (::bgs::protocol::friends::v1::GenericFriendRequest const *request,::bgs::protocol::friends::v1::GenericFriendResponse *response)
 
virtual uint32 HandleViewFriends (::bgs::protocol::friends::v1::ViewFriendsRequest const *request,::bgs::protocol::friends::v1::ViewFriendsResponse *response)
 
virtual uint32 HandleUpdateFriendState (::bgs::protocol::friends::v1::UpdateFriendStateRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleUnsubscribe (::bgs::protocol::friends::v1::UnsubscribeRequest const *request,::bgs::protocol::NoData *response)
 
virtual uint32 HandleRevokeAllInvitations (::bgs::protocol::friends::v1::GenericFriendRequest 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 (FriendsService)
 

Private Attributes

uint32 service_hash_
 

Member Typedef Documentation

typedef std::integral_constant<uint32, 0xABDFED63u> bgs::protocol::friends::v1::FriendsService::NameHash
typedef std::integral_constant<uint32, 0xA3DDB1BDu> bgs::protocol::friends::v1::FriendsService::OriginalHash

Constructor & Destructor Documentation

bgs::protocol::friends::v1::FriendsService::FriendsService ( bool  use_original_hash)
explicit
virtual bgs::protocol::friends::v1::FriendsService::~FriendsService ( )
virtual

Member Function Documentation

void bgs::protocol::friends::v1::FriendsService::AcceptInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::AssignRole ( ::bgs::protocol::friends::v1::AssignRoleRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::CallServerMethod ( uint32  token,
uint32  methodId,
MessageBuffer  buffer 
)
finaloverridevirtual

Implements ServiceBase.

void bgs::protocol::friends::v1::FriendsService::DeclineInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
static google::protobuf::ServiceDescriptor const* bgs::protocol::friends::v1::FriendsService::descriptor ( )
static
bgs::protocol::friends::v1::FriendsService::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( FriendsService  )
private
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleAcceptInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleAssignRole ( ::bgs::protocol::friends::v1::AssignRoleRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleDeclineInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleIgnoreInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleRemoveFriend ( ::bgs::protocol::friends::v1::GenericFriendRequest const request,
::bgs::protocol::friends::v1::GenericFriendResponse response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleRevokeAllInvitations ( ::bgs::protocol::friends::v1::GenericFriendRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleRevokeInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleSendInvitation ( ::bgs::protocol::SendInvitationRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleSubscribe ( ::bgs::protocol::friends::v1::SubscribeRequest const request,
::bgs::protocol::friends::v1::SubscribeResponse response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleUnsubscribe ( ::bgs::protocol::friends::v1::UnsubscribeRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleUpdateFriendState ( ::bgs::protocol::friends::v1::UpdateFriendStateRequest const request,
::bgs::protocol::NoData response 
)
protectedvirtual
virtual uint32 bgs::protocol::friends::v1::FriendsService::HandleViewFriends ( ::bgs::protocol::friends::v1::ViewFriendsRequest const request,
::bgs::protocol::friends::v1::ViewFriendsResponse response 
)
protectedvirtual
void bgs::protocol::friends::v1::FriendsService::IgnoreInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::RemoveFriend ( ::bgs::protocol::friends::v1::GenericFriendRequest const request,
std::function< void(::bgs::protocol::friends::v1::GenericFriendResponse const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::RevokeAllInvitations ( ::bgs::protocol::friends::v1::GenericFriendRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::RevokeInvitation ( ::bgs::protocol::GenericInvitationRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::SendInvitation ( ::bgs::protocol::SendInvitationRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::Subscribe ( ::bgs::protocol::friends::v1::SubscribeRequest const request,
std::function< void(::bgs::protocol::friends::v1::SubscribeResponse const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::Unsubscribe ( ::bgs::protocol::friends::v1::UnsubscribeRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::UpdateFriendState ( ::bgs::protocol::friends::v1::UpdateFriendStateRequest const request,
std::function< void(::bgs::protocol::NoData const *)>  responseCallback 
)
void bgs::protocol::friends::v1::FriendsService::ViewFriends ( ::bgs::protocol::friends::v1::ViewFriendsRequest const request,
std::function< void(::bgs::protocol::friends::v1::ViewFriendsResponse const *)>  responseCallback 
)

Member Data Documentation

uint32 bgs::protocol::friends::v1::FriendsService::service_hash_
private

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