mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Battlenet: Add club services
This commit is contained in:
@@ -22,6 +22,7 @@ Battlenet::ServiceDispatcher::ServiceDispatcher()
|
||||
AddService<Services::Account>();
|
||||
AddService<Services::Authentication>();
|
||||
AddService<Service<club::v1::membership::ClubMembershipService>>();
|
||||
AddService<Service<club::v1::ClubService>>();
|
||||
AddService<Services::Connection>();
|
||||
AddService<Service<friends::v1::FriendsService>>();
|
||||
AddService<Services::GameUtilities>();
|
||||
|
||||
@@ -24,8 +24,10 @@
|
||||
#include "AccountService.h"
|
||||
#include "AuthenticationService.h"
|
||||
#include "challenge_service.pb.h"
|
||||
#include "club_listener.pb.h"
|
||||
#include "club_membership_listener.pb.h"
|
||||
#include "club_membership_service.pb.h"
|
||||
#include "club_service.pb.h"
|
||||
#include "ConnectionService.h"
|
||||
#include "friends_service.pb.h"
|
||||
#include "GameUtilitiesService.h"
|
||||
|
||||
@@ -22,8 +22,10 @@
|
||||
#include "account_service.pb.h"
|
||||
#include "authentication_service.pb.h"
|
||||
#include "challenge_service.pb.h"
|
||||
#include "club_listener.pb.h"
|
||||
#include "club_membership_listener.pb.h"
|
||||
#include "club_membership_service.pb.h"
|
||||
#include "club_service.pb.h"
|
||||
#include "connection_service.pb.h"
|
||||
#include "friends_service.pb.h"
|
||||
#include "game_utilities_service.pb.h"
|
||||
|
||||
@@ -23,6 +23,7 @@ Battlenet::WorldserverServiceDispatcher::WorldserverServiceDispatcher()
|
||||
AddService<WorldserverService<account::v1::AccountService>>();
|
||||
AddService<WorldserverService<authentication::v1::AuthenticationService>>();
|
||||
AddService<WorldserverService<club::v1::membership::ClubMembershipService>>();
|
||||
AddService<WorldserverService<club::v1::ClubService>>();
|
||||
AddService<WorldserverService<connection::v1::ConnectionService>>();
|
||||
AddService<WorldserverService<friends::v1::FriendsService>>();
|
||||
AddService<GameUtilitiesService>();
|
||||
|
||||
@@ -25,8 +25,10 @@
|
||||
#include "account_service.pb.h"
|
||||
#include "authentication_service.pb.h"
|
||||
#include "challenge_service.pb.h"
|
||||
#include "club_listener.pb.h"
|
||||
#include "club_membership_listener.pb.h"
|
||||
#include "club_membership_service.pb.h"
|
||||
#include "club_service.pb.h"
|
||||
#include "connection_service.pb.h"
|
||||
#include "friends_service.pb.h"
|
||||
#include "game_utilities_service.pb.h"
|
||||
|
||||
294
src/server/proto/Client/club_listener.pb.cc
Normal file
294
src/server/proto/Client/club_listener.pb.cc
Normal file
@@ -0,0 +1,294 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: club_listener.proto
|
||||
|
||||
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
||||
#include "club_listener.pb.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/stubs/once.h>
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/wire_format_lite_inl.h>
|
||||
#include <google/protobuf/descriptor.h>
|
||||
#include <google/protobuf/generated_message_reflection.h>
|
||||
#include <google/protobuf/reflection_ops.h>
|
||||
#include <google/protobuf/wire_format.h>
|
||||
#include "Log.h"
|
||||
#include "Errors.h"
|
||||
#include "BattlenetRpcErrorCodes.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace bgs {
|
||||
namespace protocol {
|
||||
namespace club {
|
||||
namespace v1 {
|
||||
|
||||
namespace {
|
||||
|
||||
const ::google::protobuf::ServiceDescriptor* ClubListener_descriptor_ = NULL;
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
void protobuf_AssignDesc_club_5flistener_2eproto() {
|
||||
protobuf_AddDesc_club_5flistener_2eproto();
|
||||
const ::google::protobuf::FileDescriptor* file =
|
||||
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
||||
"club_listener.proto");
|
||||
GOOGLE_CHECK(file != NULL);
|
||||
ClubListener_descriptor_ = file->service(0);
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
||||
inline void protobuf_AssignDescriptorsOnce() {
|
||||
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
||||
&protobuf_AssignDesc_club_5flistener_2eproto);
|
||||
}
|
||||
|
||||
void protobuf_RegisterTypes(const ::std::string&) {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void protobuf_ShutdownFile_club_5flistener_2eproto() {
|
||||
}
|
||||
|
||||
void protobuf_AddDesc_club_5flistener_2eproto() {
|
||||
static bool already_here = false;
|
||||
if (already_here) return;
|
||||
already_here = true;
|
||||
GOOGLE_PROTOBUF_VERIFY_VERSION;
|
||||
|
||||
::bgs::protocol::club::v1::protobuf_AddDesc_club_5fnotification_2eproto();
|
||||
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
||||
"\n\023club_listener.proto\022\024bgs.protocol.club"
|
||||
".v1\032\027club_notification.proto2\262\022\n\014ClubLis"
|
||||
"tener\022]\n\013OnSubscribe\022+.bgs.protocol.club"
|
||||
".v1.SubscribeNotification\032\031.bgs.protocol"
|
||||
".NO_RESPONSE\"\006\202\371+\002\010\001\022a\n\rOnUnsubscribe\022-."
|
||||
"bgs.protocol.club.v1.UnsubscribeNotifica"
|
||||
"tion\032\031.bgs.protocol.NO_RESPONSE\"\006\202\371+\002\010\002\022"
|
||||
"c\n\016OnStateChanged\022..bgs.protocol.club.v1"
|
||||
".StateChangedNotification\032\031.bgs.protocol"
|
||||
".NO_RESPONSE\"\006\202\371+\002\010\003\022i\n\021OnSettingsChange"
|
||||
"d\0221.bgs.protocol.club.v1.SettingsChanged"
|
||||
"Notification\032\031.bgs.protocol.NO_RESPONSE\""
|
||||
"\006\202\371+\002\010\004\022a\n\rOnMemberAdded\022-.bgs.protocol."
|
||||
"club.v1.MemberAddedNotification\032\031.bgs.pr"
|
||||
"otocol.NO_RESPONSE\"\006\202\371+\002\010\036\022e\n\017OnMemberRe"
|
||||
"moved\022/.bgs.protocol.club.v1.MemberRemov"
|
||||
"edNotification\032\031.bgs.protocol.NO_RESPONS"
|
||||
"E\"\006\202\371+\002\010\037\022o\n\024OnMemberStateChanged\0224.bgs."
|
||||
"protocol.club.v1.MemberStateChangedNotif"
|
||||
"ication\032\031.bgs.protocol.NO_RESPONSE\"\006\202\371+\002"
|
||||
"\010 \022w\n\030OnSubscriberStateChanged\0228.bgs.pro"
|
||||
"tocol.club.v1.SubscriberStateChangedNoti"
|
||||
"fication\032\031.bgs.protocol.NO_RESPONSE\"\006\202\371+"
|
||||
"\002\010!\022m\n\023OnMemberRoleChanged\0223.bgs.protoco"
|
||||
"l.club.v1.MemberRoleChangedNotification\032"
|
||||
"\031.bgs.protocol.NO_RESPONSE\"\006\202\371+\002\010\"\022i\n\021On"
|
||||
"InvitationAdded\0221.bgs.protocol.club.v1.I"
|
||||
"nvitationAddedNotification\032\031.bgs.protoco"
|
||||
"l.NO_RESPONSE\"\006\202\371+\002\0102\022m\n\023OnInvitationRem"
|
||||
"oved\0223.bgs.protocol.club.v1.InvitationRe"
|
||||
"movedNotification\032\031.bgs.protocol.NO_RESP"
|
||||
"ONSE\"\006\202\371+\002\0103\022i\n\021OnSuggestionAdded\0221.bgs."
|
||||
"protocol.club.v1.SuggestionAddedNotifica"
|
||||
"tion\032\031.bgs.protocol.NO_RESPONSE\"\006\202\371+\002\010F\022"
|
||||
"m\n\023OnSuggestionRemoved\0223.bgs.protocol.cl"
|
||||
"ub.v1.SuggestionRemovedNotification\032\031.bg"
|
||||
"s.protocol.NO_RESPONSE\"\006\202\371+\002\010G\022a\n\rOnStre"
|
||||
"amAdded\022-.bgs.protocol.club.v1.StreamAdd"
|
||||
"edNotification\032\031.bgs.protocol.NO_RESPONS"
|
||||
"E\"\006\202\371+\002\010d\022e\n\017OnStreamRemoved\022/.bgs.proto"
|
||||
"col.club.v1.StreamRemovedNotification\032\031."
|
||||
"bgs.protocol.NO_RESPONSE\"\006\202\371+\002\010e\022o\n\024OnSt"
|
||||
"reamStateChanged\0224.bgs.protocol.club.v1."
|
||||
"StreamStateChangedNotification\032\031.bgs.pro"
|
||||
"tocol.NO_RESPONSE\"\006\202\371+\002\010f\022p\n\024OnStreamMes"
|
||||
"sageAdded\0224.bgs.protocol.club.v1.StreamM"
|
||||
"essageAddedNotification\032\031.bgs.protocol.N"
|
||||
"O_RESPONSE\"\007\202\371+\003\010\226\001\022t\n\026OnStreamMessageUp"
|
||||
"dated\0226.bgs.protocol.club.v1.StreamMessa"
|
||||
"geUpdatedNotification\032\031.bgs.protocol.NO_"
|
||||
"RESPONSE\"\007\202\371+\003\010\230\001\022v\n\027OnStreamTypingIndic"
|
||||
"ator\0227.bgs.protocol.club.v1.StreamTyping"
|
||||
"IndicatorNotification\032\031.bgs.protocol.NO_"
|
||||
"RESPONSE\"\007\202\371+\003\010\231\001\022v\n\027OnStreamUnreadIndic"
|
||||
"ator\0227.bgs.protocol.club.v1.StreamUnread"
|
||||
"IndicatorNotification\032\031.bgs.protocol.NO_"
|
||||
"RESPONSE\"\007\202\371+\003\010\232\001\022v\n\027OnStreamAdvanceView"
|
||||
"Time\0227.bgs.protocol.club.v1.StreamAdvanc"
|
||||
"eViewTimeNotification\032\031.bgs.protocol.NO_"
|
||||
"RESPONSE\"\007\202\371+\003\010\233\001\032.\202\371+$\n\"bnet.protocol.c"
|
||||
"lub.v1.ClubListener\212\371+\002\010\001B\005H\001\200\001\000", 2432);
|
||||
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
||||
"club_listener.proto", &protobuf_RegisterTypes);
|
||||
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_club_5flistener_2eproto);
|
||||
}
|
||||
|
||||
// Force AddDescriptors() to be called at static initialization time.
|
||||
struct StaticDescriptorInitializer_club_5flistener_2eproto {
|
||||
StaticDescriptorInitializer_club_5flistener_2eproto() {
|
||||
protobuf_AddDesc_club_5flistener_2eproto();
|
||||
}
|
||||
} static_descriptor_initializer_club_5flistener_2eproto_;
|
||||
|
||||
// ===================================================================
|
||||
|
||||
ClubListener::ClubListener(bool use_original_hash) : service_hash_(use_original_hash ? OriginalHash::value : NameHash::value) {
|
||||
}
|
||||
|
||||
ClubListener::~ClubListener() {
|
||||
}
|
||||
|
||||
google::protobuf::ServiceDescriptor const* ClubListener::descriptor() {
|
||||
protobuf_AssignDescriptorsOnce();
|
||||
return ClubListener_descriptor_;
|
||||
}
|
||||
|
||||
void ClubListener::OnSubscribe(::bgs::protocol::club::v1::SubscribeNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSubscribe(bgs.protocol.club.v1.SubscribeNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 1 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnUnsubscribe(::bgs::protocol::club::v1::UnsubscribeNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnUnsubscribe(bgs.protocol.club.v1.UnsubscribeNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 2 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStateChanged(::bgs::protocol::club::v1::StateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStateChanged(bgs.protocol.club.v1.StateChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 3 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnSettingsChanged(::bgs::protocol::club::v1::SettingsChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSettingsChanged(bgs.protocol.club.v1.SettingsChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 4 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnMemberAdded(::bgs::protocol::club::v1::MemberAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberAdded(bgs.protocol.club.v1.MemberAddedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 30 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnMemberRemoved(::bgs::protocol::club::v1::MemberRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberRemoved(bgs.protocol.club.v1.MemberRemovedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 31 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnMemberStateChanged(::bgs::protocol::club::v1::MemberStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberStateChanged(bgs.protocol.club.v1.MemberStateChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 32 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnSubscriberStateChanged(::bgs::protocol::club::v1::SubscriberStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSubscriberStateChanged(bgs.protocol.club.v1.SubscriberStateChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 33 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnMemberRoleChanged(::bgs::protocol::club::v1::MemberRoleChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnMemberRoleChanged(bgs.protocol.club.v1.MemberRoleChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 34 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnInvitationAdded(::bgs::protocol::club::v1::InvitationAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnInvitationAdded(bgs.protocol.club.v1.InvitationAddedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 50 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnInvitationRemoved(::bgs::protocol::club::v1::InvitationRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnInvitationRemoved(bgs.protocol.club.v1.InvitationRemovedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 51 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnSuggestionAdded(::bgs::protocol::club::v1::SuggestionAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSuggestionAdded(bgs.protocol.club.v1.SuggestionAddedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 70 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnSuggestionRemoved(::bgs::protocol::club::v1::SuggestionRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnSuggestionRemoved(bgs.protocol.club.v1.SuggestionRemovedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 71 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamAdded(::bgs::protocol::club::v1::StreamAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamAdded(bgs.protocol.club.v1.StreamAddedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 100 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamRemoved(::bgs::protocol::club::v1::StreamRemovedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamRemoved(bgs.protocol.club.v1.StreamRemovedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 101 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamStateChanged(::bgs::protocol::club::v1::StreamStateChangedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamStateChanged(bgs.protocol.club.v1.StreamStateChangedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 102 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamMessageAdded(::bgs::protocol::club::v1::StreamMessageAddedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamMessageAdded(bgs.protocol.club.v1.StreamMessageAddedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 150 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamMessageUpdated(::bgs::protocol::club::v1::StreamMessageUpdatedNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamMessageUpdated(bgs.protocol.club.v1.StreamMessageUpdatedNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 152 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamTypingIndicator(::bgs::protocol::club::v1::StreamTypingIndicatorNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamTypingIndicator(bgs.protocol.club.v1.StreamTypingIndicatorNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 153 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamUnreadIndicator(::bgs::protocol::club::v1::StreamUnreadIndicatorNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamUnreadIndicator(bgs.protocol.club.v1.StreamUnreadIndicatorNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 154 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::OnStreamAdvanceViewTime(::bgs::protocol::club::v1::StreamAdvanceViewTimeNotification const* request, bool client /*= false*/, bool server /*= false*/) {
|
||||
TC_LOG_DEBUG("service.protobuf", "%s Server called client method ClubListener.OnStreamAdvanceViewTime(bgs.protocol.club.v1.StreamAdvanceViewTimeNotification{ %s })",
|
||||
GetCallerInfo().c_str(), request->ShortDebugString().c_str());
|
||||
SendRequest(service_hash_, 155 | (client ? 0x40000000 : 0) | (server ? 0x80000000 : 0), request);
|
||||
}
|
||||
|
||||
void ClubListener::CallServerMethod(uint32 token, uint32 methodId, MessageBuffer /*buffer*/) {
|
||||
TC_LOG_ERROR("service.protobuf", "%s Server tried to call server method %u",
|
||||
GetCallerInfo().c_str(), methodId);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace v1
|
||||
} // namespace club
|
||||
} // namespace protocol
|
||||
} // namespace bgs
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
115
src/server/proto/Client/club_listener.pb.h
Normal file
115
src/server/proto/Client/club_listener.pb.h
Normal file
@@ -0,0 +1,115 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: club_listener.proto
|
||||
|
||||
#ifndef PROTOBUF_club_5flistener_2eproto__INCLUDED
|
||||
#define PROTOBUF_club_5flistener_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 2006000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/repeated_field.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include "club_notification.pb.h"
|
||||
#include "ServiceBase.h"
|
||||
#include "MessageBuffer.h"
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace bgs {
|
||||
namespace protocol {
|
||||
namespace club {
|
||||
namespace v1 {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void TC_PROTO_API protobuf_AddDesc_club_5flistener_2eproto();
|
||||
void protobuf_AssignDesc_club_5flistener_2eproto();
|
||||
void protobuf_ShutdownFile_club_5flistener_2eproto();
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TC_PROTO_API ClubListener : public ServiceBase
|
||||
{
|
||||
public:
|
||||
|
||||
explicit ClubListener(bool use_original_hash);
|
||||
virtual ~ClubListener();
|
||||
|
||||
typedef std::integral_constant<uint32, 0x80909D73u> OriginalHash;
|
||||
typedef std::integral_constant<uint32, 0x40BE3344u> NameHash;
|
||||
|
||||
static google::protobuf::ServiceDescriptor const* descriptor();
|
||||
|
||||
// client methods --------------------------------------------------
|
||||
void OnSubscribe(::bgs::protocol::club::v1::SubscribeNotification const* request, bool client = false, bool server = false);
|
||||
void OnUnsubscribe(::bgs::protocol::club::v1::UnsubscribeNotification const* request, bool client = false, bool server = false);
|
||||
void OnStateChanged(::bgs::protocol::club::v1::StateChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnSettingsChanged(::bgs::protocol::club::v1::SettingsChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnMemberAdded(::bgs::protocol::club::v1::MemberAddedNotification const* request, bool client = false, bool server = false);
|
||||
void OnMemberRemoved(::bgs::protocol::club::v1::MemberRemovedNotification const* request, bool client = false, bool server = false);
|
||||
void OnMemberStateChanged(::bgs::protocol::club::v1::MemberStateChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnSubscriberStateChanged(::bgs::protocol::club::v1::SubscriberStateChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnMemberRoleChanged(::bgs::protocol::club::v1::MemberRoleChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnInvitationAdded(::bgs::protocol::club::v1::InvitationAddedNotification const* request, bool client = false, bool server = false);
|
||||
void OnInvitationRemoved(::bgs::protocol::club::v1::InvitationRemovedNotification const* request, bool client = false, bool server = false);
|
||||
void OnSuggestionAdded(::bgs::protocol::club::v1::SuggestionAddedNotification const* request, bool client = false, bool server = false);
|
||||
void OnSuggestionRemoved(::bgs::protocol::club::v1::SuggestionRemovedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamAdded(::bgs::protocol::club::v1::StreamAddedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamRemoved(::bgs::protocol::club::v1::StreamRemovedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamStateChanged(::bgs::protocol::club::v1::StreamStateChangedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamMessageAdded(::bgs::protocol::club::v1::StreamMessageAddedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamMessageUpdated(::bgs::protocol::club::v1::StreamMessageUpdatedNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamTypingIndicator(::bgs::protocol::club::v1::StreamTypingIndicatorNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamUnreadIndicator(::bgs::protocol::club::v1::StreamUnreadIndicatorNotification const* request, bool client = false, bool server = false);
|
||||
void OnStreamAdvanceViewTime(::bgs::protocol::club::v1::StreamAdvanceViewTimeNotification const* request, bool client = false, bool server = false);
|
||||
|
||||
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
|
||||
|
||||
private:
|
||||
uint32 service_hash_;
|
||||
|
||||
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubListener);
|
||||
};
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace v1
|
||||
} // namespace club
|
||||
} // namespace protocol
|
||||
} // namespace bgs
|
||||
|
||||
#ifndef SWIG
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
|
||||
} // namespace google
|
||||
} // namespace protobuf
|
||||
#endif // SWIG
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_club_5flistener_2eproto__INCLUDED
|
||||
123
src/server/proto/Client/club_listener.proto
Normal file
123
src/server/proto/Client/club_listener.proto
Normal file
@@ -0,0 +1,123 @@
|
||||
syntax = "proto2";
|
||||
|
||||
import "club_notification.proto";
|
||||
package bgs.protocol.club.v1;
|
||||
|
||||
option optimize_for = SPEED;
|
||||
option cc_generic_services = false;
|
||||
|
||||
service ClubListener {
|
||||
option (.bgs.protocol.service_options) = {
|
||||
descriptor_name: "bnet.protocol.club.v1.ClubListener"
|
||||
};
|
||||
option (.bgs.protocol.sdk_service_options) = {
|
||||
inbound: true
|
||||
};
|
||||
rpc OnSubscribe(.bgs.protocol.club.v1.SubscribeNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 1
|
||||
};
|
||||
}
|
||||
rpc OnUnsubscribe(.bgs.protocol.club.v1.UnsubscribeNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 2
|
||||
};
|
||||
}
|
||||
rpc OnStateChanged(.bgs.protocol.club.v1.StateChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 3
|
||||
};
|
||||
}
|
||||
rpc OnSettingsChanged(.bgs.protocol.club.v1.SettingsChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 4
|
||||
};
|
||||
}
|
||||
rpc OnMemberAdded(.bgs.protocol.club.v1.MemberAddedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 30
|
||||
};
|
||||
}
|
||||
rpc OnMemberRemoved(.bgs.protocol.club.v1.MemberRemovedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 31
|
||||
};
|
||||
}
|
||||
rpc OnMemberStateChanged(.bgs.protocol.club.v1.MemberStateChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 32
|
||||
};
|
||||
}
|
||||
rpc OnSubscriberStateChanged(.bgs.protocol.club.v1.SubscriberStateChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 33
|
||||
};
|
||||
}
|
||||
rpc OnMemberRoleChanged(.bgs.protocol.club.v1.MemberRoleChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 34
|
||||
};
|
||||
}
|
||||
rpc OnInvitationAdded(.bgs.protocol.club.v1.InvitationAddedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 50
|
||||
};
|
||||
}
|
||||
rpc OnInvitationRemoved(.bgs.protocol.club.v1.InvitationRemovedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 51
|
||||
};
|
||||
}
|
||||
rpc OnSuggestionAdded(.bgs.protocol.club.v1.SuggestionAddedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 70
|
||||
};
|
||||
}
|
||||
rpc OnSuggestionRemoved(.bgs.protocol.club.v1.SuggestionRemovedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 71
|
||||
};
|
||||
}
|
||||
rpc OnStreamAdded(.bgs.protocol.club.v1.StreamAddedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 100
|
||||
};
|
||||
}
|
||||
rpc OnStreamRemoved(.bgs.protocol.club.v1.StreamRemovedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 101
|
||||
};
|
||||
}
|
||||
rpc OnStreamStateChanged(.bgs.protocol.club.v1.StreamStateChangedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 102
|
||||
};
|
||||
}
|
||||
rpc OnStreamMessageAdded(.bgs.protocol.club.v1.StreamMessageAddedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 150
|
||||
};
|
||||
}
|
||||
rpc OnStreamMessageUpdated(.bgs.protocol.club.v1.StreamMessageUpdatedNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 152
|
||||
};
|
||||
}
|
||||
rpc OnStreamTypingIndicator(.bgs.protocol.club.v1.StreamTypingIndicatorNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 153
|
||||
};
|
||||
}
|
||||
rpc OnStreamUnreadIndicator(.bgs.protocol.club.v1.StreamUnreadIndicatorNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 154
|
||||
};
|
||||
}
|
||||
rpc OnStreamAdvanceViewTime(.bgs.protocol.club.v1.StreamAdvanceViewTimeNotification) returns (.bgs.protocol.NO_RESPONSE) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 155
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2012
src/server/proto/Client/club_service.pb.cc
Normal file
2012
src/server/proto/Client/club_service.pb.cc
Normal file
File diff suppressed because it is too large
Load Diff
150
src/server/proto/Client/club_service.pb.h
Normal file
150
src/server/proto/Client/club_service.pb.h
Normal file
@@ -0,0 +1,150 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: club_service.proto
|
||||
|
||||
#ifndef PROTOBUF_club_5fservice_2eproto__INCLUDED
|
||||
#define PROTOBUF_club_5fservice_2eproto__INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <google/protobuf/stubs/common.h>
|
||||
|
||||
#if GOOGLE_PROTOBUF_VERSION < 2006000
|
||||
#error This file was generated by a newer version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please update
|
||||
#error your headers.
|
||||
#endif
|
||||
#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
||||
#error This file was generated by an older version of protoc which is
|
||||
#error incompatible with your Protocol Buffer headers. Please
|
||||
#error regenerate this file with a newer version of protoc.
|
||||
#endif
|
||||
|
||||
#include <google/protobuf/generated_message_util.h>
|
||||
#include <google/protobuf/repeated_field.h>
|
||||
#include <google/protobuf/extension_set.h>
|
||||
#include "club_request.pb.h"
|
||||
#include "ServiceBase.h"
|
||||
#include "MessageBuffer.h"
|
||||
#include <functional>
|
||||
#include <type_traits>
|
||||
// @@protoc_insertion_point(includes)
|
||||
|
||||
namespace bgs {
|
||||
namespace protocol {
|
||||
namespace club {
|
||||
namespace v1 {
|
||||
|
||||
// Internal implementation detail -- do not call these.
|
||||
void TC_PROTO_API protobuf_AddDesc_club_5fservice_2eproto();
|
||||
void protobuf_AssignDesc_club_5fservice_2eproto();
|
||||
void protobuf_ShutdownFile_club_5fservice_2eproto();
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TC_PROTO_API ClubService : public ServiceBase
|
||||
{
|
||||
public:
|
||||
|
||||
explicit ClubService(bool use_original_hash);
|
||||
virtual ~ClubService();
|
||||
|
||||
typedef std::integral_constant<uint32, 0xE273DE0Eu> OriginalHash;
|
||||
typedef std::integral_constant<uint32, 0xCBEDD5C7u> NameHash;
|
||||
|
||||
static google::protobuf::ServiceDescriptor const* descriptor();
|
||||
|
||||
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
|
||||
|
||||
protected:
|
||||
// server methods --------------------------------------------------
|
||||
virtual uint32 HandleSubscribe(::bgs::protocol::club::v1::SubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUnsubscribe(::bgs::protocol::club::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleCreate(::bgs::protocol::club::v1::CreateRequest const* request, ::bgs::protocol::club::v1::CreateResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDestroy(::bgs::protocol::club::v1::DestroyRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetDescription(::bgs::protocol::club::v1::GetDescriptionRequest const* request, ::bgs::protocol::club::v1::GetDescriptionResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetClubType(::bgs::protocol::club::v1::GetClubTypeRequest const* request, ::bgs::protocol::club::v1::GetClubTypeResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUpdateClubState(::bgs::protocol::club::v1::UpdateClubStateRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUpdateClubSettings(::bgs::protocol::club::v1::UpdateClubSettingsRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleJoin(::bgs::protocol::club::v1::JoinRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleLeave(::bgs::protocol::club::v1::LeaveRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleKick(::bgs::protocol::club::v1::KickRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetMember(::bgs::protocol::club::v1::GetMemberRequest const* request, ::bgs::protocol::club::v1::GetMemberResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetMembers(::bgs::protocol::club::v1::GetMembersRequest const* request, ::bgs::protocol::club::v1::GetMembersResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUpdateMemberState(::bgs::protocol::club::v1::UpdateMemberStateRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUpdateSubscriberState(::bgs::protocol::club::v1::UpdateSubscriberStateRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleAssignRole(::bgs::protocol::club::v1::AssignRoleRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUnassignRole(::bgs::protocol::club::v1::UnassignRoleRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSendInvitation(::bgs::protocol::club::v1::SendInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleAcceptInvitation(::bgs::protocol::club::v1::AcceptInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDeclineInvitation(::bgs::protocol::club::v1::DeclineInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleRevokeInvitation(::bgs::protocol::club::v1::RevokeInvitationRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetInvitation(::bgs::protocol::club::v1::GetInvitationRequest const* request, ::bgs::protocol::club::v1::GetInvitationResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetInvitations(::bgs::protocol::club::v1::GetInvitationsRequest const* request, ::bgs::protocol::club::v1::GetInvitationsResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSendSuggestion(::bgs::protocol::club::v1::SendSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleAcceptSuggestion(::bgs::protocol::club::v1::AcceptSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDeclineSuggestion(::bgs::protocol::club::v1::DeclineSuggestionRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetSuggestion(::bgs::protocol::club::v1::GetSuggestionRequest const* request, ::bgs::protocol::club::v1::GetSuggestionResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetSuggestions(::bgs::protocol::club::v1::GetSuggestionsRequest const* request, ::bgs::protocol::club::v1::GetSuggestionsResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleCreateTicket(::bgs::protocol::club::v1::CreateTicketRequest const* request, ::bgs::protocol::club::v1::CreateTicketResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDestroyTicket(::bgs::protocol::club::v1::DestroyTicketRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleRedeemTicket(::bgs::protocol::club::v1::RedeemTicketRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetTicket(::bgs::protocol::club::v1::GetTicketRequest const* request, ::bgs::protocol::club::v1::GetTicketResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetTickets(::bgs::protocol::club::v1::GetTicketsRequest const* request, ::bgs::protocol::club::v1::GetTicketsResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleAddBan(::bgs::protocol::club::v1::AddBanRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleRemoveBan(::bgs::protocol::club::v1::RemoveBanRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetBan(::bgs::protocol::club::v1::GetBanRequest const* request, ::bgs::protocol::club::v1::GetBanResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetBans(::bgs::protocol::club::v1::GetBansRequest const* request, ::bgs::protocol::club::v1::GetBansResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSubscribeStream(::bgs::protocol::club::v1::SubscribeStreamRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUnsubscribeStream(::bgs::protocol::club::v1::UnsubscribeStreamRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleCreateStream(::bgs::protocol::club::v1::CreateStreamRequest const* request, ::bgs::protocol::club::v1::CreateStreamResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDestroyStream(::bgs::protocol::club::v1::DestroyStreamRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetStream(::bgs::protocol::club::v1::GetStreamRequest const* request, ::bgs::protocol::club::v1::GetStreamResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetStreams(::bgs::protocol::club::v1::GetStreamsRequest const* request, ::bgs::protocol::club::v1::GetStreamsResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleUpdateStreamState(::bgs::protocol::club::v1::UpdateStreamStateRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSetStreamFocus(::bgs::protocol::club::v1::SetStreamFocusRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetStreamVoiceToken(::bgs::protocol::club::v1::GetStreamVoiceTokenRequest const* request, ::bgs::protocol::club::v1::GetStreamVoiceTokenResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleKickFromStreamVoice(::bgs::protocol::club::v1::KickFromStreamVoiceRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleCreateMessage(::bgs::protocol::club::v1::CreateMessageRequest const* request, ::bgs::protocol::club::v1::CreateMessageResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleDestroyMessage(::bgs::protocol::club::v1::DestroyMessageRequest const* request, ::bgs::protocol::club::v1::DestroyMessageResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleEditMessage(::bgs::protocol::club::v1::EditMessageRequest const* request, ::bgs::protocol::club::v1::EditMessageResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSetMessagePinned(::bgs::protocol::club::v1::SetMessagePinnedRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleSetTypingIndicator(::bgs::protocol::club::v1::SetTypingIndicatorRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleAdvanceStreamViewTime(::bgs::protocol::club::v1::AdvanceStreamViewTimeRequest const* request, ::bgs::protocol::NoData* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetStreamHistory(::bgs::protocol::club::v1::GetStreamHistoryRequest const* request, ::bgs::protocol::club::v1::GetStreamHistoryResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
virtual uint32 HandleGetStreamMessage(::bgs::protocol::club::v1::GetStreamMessageRequest const* request, ::bgs::protocol::club::v1::GetStreamMessageResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation);
|
||||
|
||||
private:
|
||||
uint32 service_hash_;
|
||||
|
||||
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ClubService);
|
||||
};
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// ===================================================================
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
} // namespace v1
|
||||
} // namespace club
|
||||
} // namespace protocol
|
||||
} // namespace bgs
|
||||
|
||||
#ifndef SWIG
|
||||
namespace google {
|
||||
namespace protobuf {
|
||||
|
||||
|
||||
} // namespace google
|
||||
} // namespace protobuf
|
||||
#endif // SWIG
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
#endif // PROTOBUF_club_5fservice_2eproto__INCLUDED
|
||||
293
src/server/proto/Client/club_service.proto
Normal file
293
src/server/proto/Client/club_service.proto
Normal file
@@ -0,0 +1,293 @@
|
||||
syntax = "proto2";
|
||||
|
||||
import "club_request.proto";
|
||||
package bgs.protocol.club.v1;
|
||||
|
||||
option optimize_for = SPEED;
|
||||
option cc_generic_services = false;
|
||||
|
||||
service ClubService {
|
||||
option (.bgs.protocol.service_options) = {
|
||||
descriptor_name: "bnet.protocol.club.v1.ClubService"
|
||||
shard_name: "club"
|
||||
};
|
||||
option (.bgs.protocol.sdk_service_options) = {
|
||||
outbound: true
|
||||
use_client_id: true
|
||||
};
|
||||
rpc Subscribe(.bgs.protocol.club.v1.SubscribeRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 1
|
||||
};
|
||||
}
|
||||
rpc Unsubscribe(.bgs.protocol.club.v1.UnsubscribeRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 2
|
||||
};
|
||||
}
|
||||
rpc Create(.bgs.protocol.club.v1.CreateRequest) returns (.bgs.protocol.club.v1.CreateResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 3
|
||||
};
|
||||
}
|
||||
rpc Destroy(.bgs.protocol.club.v1.DestroyRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 4
|
||||
};
|
||||
}
|
||||
rpc GetDescription(.bgs.protocol.club.v1.GetDescriptionRequest) returns (.bgs.protocol.club.v1.GetDescriptionResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 5
|
||||
};
|
||||
}
|
||||
rpc GetClubType(.bgs.protocol.club.v1.GetClubTypeRequest) returns (.bgs.protocol.club.v1.GetClubTypeResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 6
|
||||
};
|
||||
}
|
||||
rpc UpdateClubState(.bgs.protocol.club.v1.UpdateClubStateRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 7
|
||||
};
|
||||
}
|
||||
rpc UpdateClubSettings(.bgs.protocol.club.v1.UpdateClubSettingsRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 8
|
||||
};
|
||||
}
|
||||
rpc Join(.bgs.protocol.club.v1.JoinRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 30
|
||||
};
|
||||
}
|
||||
rpc Leave(.bgs.protocol.club.v1.LeaveRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 31
|
||||
};
|
||||
}
|
||||
rpc Kick(.bgs.protocol.club.v1.KickRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 32
|
||||
};
|
||||
}
|
||||
rpc GetMember(.bgs.protocol.club.v1.GetMemberRequest) returns (.bgs.protocol.club.v1.GetMemberResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 33
|
||||
};
|
||||
}
|
||||
rpc GetMembers(.bgs.protocol.club.v1.GetMembersRequest) returns (.bgs.protocol.club.v1.GetMembersResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 34
|
||||
};
|
||||
}
|
||||
rpc UpdateMemberState(.bgs.protocol.club.v1.UpdateMemberStateRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 35
|
||||
};
|
||||
}
|
||||
rpc UpdateSubscriberState(.bgs.protocol.club.v1.UpdateSubscriberStateRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 36
|
||||
};
|
||||
}
|
||||
rpc AssignRole(.bgs.protocol.club.v1.AssignRoleRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 37
|
||||
};
|
||||
}
|
||||
rpc UnassignRole(.bgs.protocol.club.v1.UnassignRoleRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 38
|
||||
};
|
||||
}
|
||||
rpc SendInvitation(.bgs.protocol.club.v1.SendInvitationRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 50
|
||||
};
|
||||
}
|
||||
rpc AcceptInvitation(.bgs.protocol.club.v1.AcceptInvitationRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 51
|
||||
};
|
||||
}
|
||||
rpc DeclineInvitation(.bgs.protocol.club.v1.DeclineInvitationRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 52
|
||||
};
|
||||
}
|
||||
rpc RevokeInvitation(.bgs.protocol.club.v1.RevokeInvitationRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 53
|
||||
};
|
||||
}
|
||||
rpc GetInvitation(.bgs.protocol.club.v1.GetInvitationRequest) returns (.bgs.protocol.club.v1.GetInvitationResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 54
|
||||
};
|
||||
}
|
||||
rpc GetInvitations(.bgs.protocol.club.v1.GetInvitationsRequest) returns (.bgs.protocol.club.v1.GetInvitationsResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 55
|
||||
};
|
||||
}
|
||||
rpc SendSuggestion(.bgs.protocol.club.v1.SendSuggestionRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 60
|
||||
};
|
||||
}
|
||||
rpc AcceptSuggestion(.bgs.protocol.club.v1.AcceptSuggestionRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 61
|
||||
};
|
||||
}
|
||||
rpc DeclineSuggestion(.bgs.protocol.club.v1.DeclineSuggestionRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 62
|
||||
};
|
||||
}
|
||||
rpc GetSuggestion(.bgs.protocol.club.v1.GetSuggestionRequest) returns (.bgs.protocol.club.v1.GetSuggestionResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 63
|
||||
};
|
||||
}
|
||||
rpc GetSuggestions(.bgs.protocol.club.v1.GetSuggestionsRequest) returns (.bgs.protocol.club.v1.GetSuggestionsResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 64
|
||||
};
|
||||
}
|
||||
rpc CreateTicket(.bgs.protocol.club.v1.CreateTicketRequest) returns (.bgs.protocol.club.v1.CreateTicketResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 70
|
||||
};
|
||||
}
|
||||
rpc DestroyTicket(.bgs.protocol.club.v1.DestroyTicketRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 71
|
||||
};
|
||||
}
|
||||
rpc RedeemTicket(.bgs.protocol.club.v1.RedeemTicketRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 72
|
||||
};
|
||||
}
|
||||
rpc GetTicket(.bgs.protocol.club.v1.GetTicketRequest) returns (.bgs.protocol.club.v1.GetTicketResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 73
|
||||
};
|
||||
}
|
||||
rpc GetTickets(.bgs.protocol.club.v1.GetTicketsRequest) returns (.bgs.protocol.club.v1.GetTicketsResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 74
|
||||
};
|
||||
}
|
||||
rpc AddBan(.bgs.protocol.club.v1.AddBanRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 80
|
||||
};
|
||||
}
|
||||
rpc RemoveBan(.bgs.protocol.club.v1.RemoveBanRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 81
|
||||
};
|
||||
}
|
||||
rpc GetBan(.bgs.protocol.club.v1.GetBanRequest) returns (.bgs.protocol.club.v1.GetBanResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 82
|
||||
};
|
||||
}
|
||||
rpc GetBans(.bgs.protocol.club.v1.GetBansRequest) returns (.bgs.protocol.club.v1.GetBansResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 83
|
||||
};
|
||||
}
|
||||
rpc SubscribeStream(.bgs.protocol.club.v1.SubscribeStreamRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 100
|
||||
};
|
||||
}
|
||||
rpc UnsubscribeStream(.bgs.protocol.club.v1.UnsubscribeStreamRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 101
|
||||
};
|
||||
}
|
||||
rpc CreateStream(.bgs.protocol.club.v1.CreateStreamRequest) returns (.bgs.protocol.club.v1.CreateStreamResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 102
|
||||
};
|
||||
}
|
||||
rpc DestroyStream(.bgs.protocol.club.v1.DestroyStreamRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 103
|
||||
};
|
||||
}
|
||||
rpc GetStream(.bgs.protocol.club.v1.GetStreamRequest) returns (.bgs.protocol.club.v1.GetStreamResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 104
|
||||
};
|
||||
}
|
||||
rpc GetStreams(.bgs.protocol.club.v1.GetStreamsRequest) returns (.bgs.protocol.club.v1.GetStreamsResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 105
|
||||
};
|
||||
}
|
||||
rpc UpdateStreamState(.bgs.protocol.club.v1.UpdateStreamStateRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 106
|
||||
};
|
||||
}
|
||||
rpc SetStreamFocus(.bgs.protocol.club.v1.SetStreamFocusRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 107
|
||||
};
|
||||
}
|
||||
rpc GetStreamVoiceToken(.bgs.protocol.club.v1.GetStreamVoiceTokenRequest) returns (.bgs.protocol.club.v1.GetStreamVoiceTokenResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 108
|
||||
};
|
||||
}
|
||||
rpc KickFromStreamVoice(.bgs.protocol.club.v1.KickFromStreamVoiceRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 109
|
||||
};
|
||||
}
|
||||
rpc CreateMessage(.bgs.protocol.club.v1.CreateMessageRequest) returns (.bgs.protocol.club.v1.CreateMessageResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 150
|
||||
};
|
||||
}
|
||||
rpc DestroyMessage(.bgs.protocol.club.v1.DestroyMessageRequest) returns (.bgs.protocol.club.v1.DestroyMessageResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 151
|
||||
};
|
||||
}
|
||||
rpc EditMessage(.bgs.protocol.club.v1.EditMessageRequest) returns (.bgs.protocol.club.v1.EditMessageResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 152
|
||||
};
|
||||
}
|
||||
rpc SetMessagePinned(.bgs.protocol.club.v1.SetMessagePinnedRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 153
|
||||
};
|
||||
}
|
||||
rpc SetTypingIndicator(.bgs.protocol.club.v1.SetTypingIndicatorRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 154
|
||||
};
|
||||
}
|
||||
rpc AdvanceStreamViewTime(.bgs.protocol.club.v1.AdvanceStreamViewTimeRequest) returns (.bgs.protocol.NoData) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 155
|
||||
};
|
||||
}
|
||||
rpc GetStreamHistory(.bgs.protocol.club.v1.GetStreamHistoryRequest) returns (.bgs.protocol.club.v1.GetStreamHistoryResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 156
|
||||
};
|
||||
}
|
||||
rpc GetStreamMessage(.bgs.protocol.club.v1.GetStreamMessageRequest) returns (.bgs.protocol.club.v1.GetStreamMessageResponse) {
|
||||
option (.bgs.protocol.method_options) = {
|
||||
id: 157
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user