TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Battlenet::Service< T > Class Template Reference

#include <Service.h>

Public Member Functions

 Service (Session *session)
 

Protected Member Functions

void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request, std::function< void(MessageBuffer)> callback) override
 
void SendRequest (uint32 serviceHash, uint32 methodId, google::protobuf::Message const *request) override
 
void SendResponse (uint32, uint32, uint32 token, uint32 status) override
 
void SendResponse (uint32, uint32, uint32 token, google::protobuf::Message const *response) override
 
std::string GetCallerInfo () const override
 

Protected Attributes

Session_session
 

Constructor & Destructor Documentation

template<class T>
Battlenet::Service< T >::Service ( Session session)
inline
32 : T(true), _session(session) { }
Session * _session
Definition: Service.h:41

Member Function Documentation

template<class T>
std::string Battlenet::Service< T >::GetCallerInfo ( ) const
inlineoverrideprotected
39 { return _session->GetClientInfo(); }
std::string GetClientInfo() const
Definition: Session.cpp:671
Session * _session
Definition: Service.h:41
template<class T>
void Battlenet::Service< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request,
std::function< void(MessageBuffer)>  callback 
)
inlineoverrideprotected
35 { _session->SendRequest(serviceHash, methodId, request, std::move(callback)); }
Session * _session
Definition: Service.h:41
void SendRequest(uint32 serviceHash, uint32 methodId, pb::Message const *request, std::function< void(MessageBuffer)> callback)
Definition: Session.h:135
template<class T>
void Battlenet::Service< T >::SendRequest ( uint32  serviceHash,
uint32  methodId,
google::protobuf::Message const request 
)
inlineoverrideprotected
36 { _session->SendRequest(serviceHash, methodId, request); }
Session * _session
Definition: Service.h:41
void SendRequest(uint32 serviceHash, uint32 methodId, pb::Message const *request, std::function< void(MessageBuffer)> callback)
Definition: Session.h:135
template<class T>
void Battlenet::Service< T >::SendResponse ( uint32  ,
uint32  ,
uint32  token,
uint32  status 
)
inlineoverrideprotected
37 { _session->SendResponse(token, status); }
void SendResponse(uint32 token, pb::Message const *response)
Definition: Session.cpp:148
Session * _session
Definition: Service.h:41
template<class T>
void Battlenet::Service< T >::SendResponse ( uint32  ,
uint32  ,
uint32  token,
google::protobuf::Message const response 
)
inlineoverrideprotected
38 { _session->SendResponse(token, response); }
void SendResponse(uint32 token, pb::Message const *response)
Definition: Session.cpp:148
Session * _session
Definition: Service.h:41

Member Data Documentation

template<class T>
Session* Battlenet::Service< T >::_session
protected

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