TrinityCore
Loading...
Searching...
No Matches
AccountService.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef TRINITYCORE_ACCOUNT_SERVICE_H
19#define TRINITYCORE_ACCOUNT_SERVICE_H
20
21#include "Service.h"
22#include "Client/account_service.pb.h"
23#include "Client/api/client/v2/account_service.pb.h"
24
25namespace Battlenet::Services
26{
27 namespace V1
28 {
29 class Account : public Service<account::v1::AccountService>
30 {
32
33 public:
34 Account(Session* session);
35
36 uint32 HandleGetAccountState(account::v1::GetAccountStateRequest const* request, account::v1::GetAccountStateResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
37 uint32 HandleGetGameAccountState(account::v1::GetGameAccountStateRequest const* request, account::v1::GetGameAccountStateResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
38 };
39 }
40
41 namespace V2
42 {
43 class Account : public Service<account::v2::client::AccountService>
44 {
46
47 public:
48 Account(Session* session);
49
50 uint32 HandleGetAccountInfo(account::v2::client::GetAccountInfoRequest const* request, account::v2::client::GetAccountInfoResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
51 uint32 HandleGetRestriction(account::v2::client::GetRestrictionRequest const* request, account::v2::client::GetRestrictionResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
52 uint32 HandleGetGameAccountInfo(account::v2::client::GetGameAccountInfoRequest const* request, account::v2::client::GetGameAccountInfoResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
53 uint32 HandleGetGameAccountRestriction(account::v2::client::GetGameAccountRestrictionRequest const* request, account::v2::client::GetGameAccountRestrictionResponse* response, std::function<void(ServiceBase*, uint32, ::google::protobuf::Message const*)>& continuation) override;
54 };
55 }
56}
57
58#endif // TRINITYCORE_ACCOUNT_SERVICE_H
uint32_t uint32
Definition Define.h:154
uint32 HandleGetAccountState(account::v1::GetAccountStateRequest const *request, account::v1::GetAccountStateResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleGetGameAccountState(account::v1::GetGameAccountStateRequest const *request, account::v1::GetGameAccountStateResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
Service< account::v1::AccountService > AccountService
uint32 HandleGetRestriction(account::v2::client::GetRestrictionRequest const *request, account::v2::client::GetRestrictionResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleGetGameAccountInfo(account::v2::client::GetGameAccountInfoRequest const *request, account::v2::client::GetGameAccountInfoResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
Service< account::v2::client::AccountService > AccountService
uint32 HandleGetGameAccountRestriction(account::v2::client::GetGameAccountRestrictionRequest const *request, account::v2::client::GetGameAccountRestrictionResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override
uint32 HandleGetAccountInfo(account::v2::client::GetAccountInfoRequest const *request, account::v2::client::GetAccountInfoResponse *response, std::function< void(ServiceBase *, uint32, ::google::protobuf::Message const *)> &continuation) override