10 #ifndef STOVEPCMATCHMAKINGINTERNAL_H_
11 #define STOVEPCMATCHMAKINGINTERNAL_H_
17 #include <api\ChatAppCommon.h>
20 #ifndef UNREFERENCED_PARAMETER
21 #define UNREFERENCED_PARAMETER(P) (P)
29 void __stdcall OnDisconnect(CT::chatApp::RespDisconnect_t& ret);
30 void __stdcall OnConnect(CT::chatApp::RespConnect_t& ret);
31 void __stdcall OnUserJoin(CT::chatApp::RespUserJoin_t& ret);
32 void __stdcall OnUserLeave(CT::chatApp::RespUserLeave_t& ret);
33 void __stdcall OnJoinLobby(CT::chatApp::RespJoinChannel_t& ret);
34 void __stdcall OnLeaveLobby(CT::chatApp::RespLeaveChannel_t& ret);
35 void __stdcall OnGetMyLobbyList(CT::chatApp::RespGetMyChannelList_t& ret);
36 void __stdcall OnGetLobbyUserList(CT::chatApp::RespGetChannelUserList_t& ret);
37 void __stdcall OnGetLobbyBanUserList(CT::chatApp::RespGetChannelBanUserList_t& ret);
38 void __stdcall OnGetLobbyList(CT::chatApp::RespGetChannelList_t& ret);
39 void __stdcall OnSystemMessage(CT::chatApp::RespSystemMessage_t& ret);
40 void __stdcall OnSendUserMessage(CT::chatApp::RespUserMessage_t& ret);
41 void __stdcall OnRecvUserMessage(CT::chatApp::RespUserMessage_t& ret);
42 void __stdcall OnSendUserBinarydata(CT::chatApp::RespUserBinarydata_t& ret);
43 void __stdcall OnRecvUserBinarydata(CT::chatApp::RespUserBinarydata_t& ret);
44 void __stdcall OnSendLobbyMessage(CT::chatApp::RespChannelMessage_t& ret);
45 void __stdcall OnRecvLobbyMessage(CT::chatApp::RespChannelMessage_t& ret);
46 void __stdcall OnRecvLobbyBinarydata(CT::chatApp::RespChannelBinarydata_t& ret);
47 void __stdcall OnSendLobbyBinarydata(CT::chatApp::RespChannelBinarydata_t& ret);
48 void __stdcall OnSendLobbyInvitation(CT::chatApp::RespChannelInvitation_t& ret);
49 void __stdcall OnRecvLobbyInvitation(CT::chatApp::RespChannelInvitation_t& ret);
50 void __stdcall OnSendRejectLobbyInvitation(CT::chatApp::RespRejectChannelInvitation_t& ret);
51 void __stdcall OnRecvRejectLobbyInvitation(CT::chatApp::RespRejectChannelInvitation_t& ret);
52 void __stdcall OnCreateLobby(CT::chatApp::RespCreateChannel_t& ret);
53 void __stdcall OnDestroyLobby(CT::chatApp::RespDestroyChannel_t& ret);
54 void __stdcall OnKickUser(CT::chatApp::RespKickUser_t& ret);
55 void __stdcall OnBanUser(CT::chatApp::RespBanUser_t& ret);
56 void __stdcall OnUnBanUser(CT::chatApp::RespUnBanUser_t& ret);
57 void __stdcall OnSetAffiliation(CT::chatApp::RespSetAffiliation_t& ret);
58 void __stdcall OnSetLobbyOwner(CT::chatApp::RespHandoverOwner_t& ret);
59 void __stdcall OnSetMuteUser(CT::chatApp::RespSetMuteUser_t& ret);
60 void __stdcall OnPresenceChange(CT::chatApp::RespPresenceChange_t& ret);
61 void __stdcall OnSetLobbyUserdata(CT::chatApp::RespSetMyChannelMetadata_t& ret);
62 void __stdcall OnLobbyPresenceChange(CT::chatApp::RespChannelPresenceChange_t& ret);
63 void __stdcall OnSetLobbyData(CT::chatApp::RespSetChannelMetaConfig_t& ret);
64 void __stdcall OnGetLobbyData(CT::chatApp::RespGetChannelMetaConfig_t& ret);
66 void __stdcall OnSearchLobbyList(CT::chatApp::RespSearchChannelList_t& ret);
68 void __stdcall OnSetChannelConfig(CT::chatApp::RespSetChannelConfig_t& ret);
69 void __stdcall OnGetChannelConfig(CT::chatApp::RespGetChannelConfig_t& ret);
71 void __stdcall OnStartGame(CT::chatApp::RespStartGame_t& ret);
72 void __stdcall OnEndGame(CT::chatApp::RespEndGame_t& ret);
73 void __stdcall OnLobbyCommand(CT::chatApp::RespLobbyCommand_t& ret);
75 void __stdcall OnGetFriendsList(CT::chatApp::RespGetFriendsList_t& ret);
76 void __stdcall OnUserStatusChanged(CT::chatApp::RespUserStatusChanged_t& ret);
78 const unsigned __int64 JidToUID(
const std::wstring& jid);
79 const std::wstring UIDToJid(
const unsigned __int64 UID,
const std::wstring& domain);
80 const std::wstring JidToId(
const std::wstring& jid);
81 const std::wstring IdToJid(
const std::wstring&
id,
const std::wstring& domain);
82 std::string GetRestApi(
const std::string& uri, std::vector<std::string> headers);
89 const char* accessToken;
104 void(*OnRenewToken)(
const char*);
113 bool DllLoading(
const std::wstring& path,
const std::wstring& fileName);
114 bool DllFunctionCall(
const std::string& funcName);
118 bool ResourceSvrLoading();
121 void SetAccessToken(
const std::string& token)
123 _accessToken = token;
125 const std::string GetAccessToken()
129 void SetUID(
unsigned __int64
id)
133 unsigned __int64 GetUID()
137 void SetGameID(
const std::string& gid)
141 const std::string GetGameID()
145 void SetEnvironment(
const std::string& env);
146 const std::string GetEnvironment()
150 void SetSvrJson(
const std::string& json)
152 _resourceSvrJson = json;
154 const std::string GetSvrJson()
156 return _resourceSvrJson;
158 void SetDomain(
const std::string& domain)
162 const std::string GetDomain()
166 const std::wstring GetDomainW();
167 void SetServer(
const std::string& host,
int port)
169 _server = host +
":" + std::to_string(port);
171 const std::string GetServer()
176 const char* GetAccessTokenPtr()
178 return _accessToken.c_str();
180 const char* GetGameIDPtr()
182 return _gameID.c_str();
184 const char* GetEnvironmentPtr()
188 const char* GetDomainPtr()
190 return _domain.c_str();
192 const char* GetServerPtr()
194 return _server.c_str();
196 void SetLogLevel(
int logLevel)
198 _logLevel = logLevel;
208 std::string _accessToken;
209 unsigned __int64 _UID;
212 std::string _resourceSvrJson;
220 void OnRenewToken(
const char*);
224 #endif //STOVEPCMATCHMAKINGINTERNAL_H_
Definition: StovePCMatchmakingInternal.h:101
Definition: StovePCMatchmakingInternal.h:107
StovePCMatchmakingCallback 헤더파일
Definition: StovePCMatchmakingInternal.h:86
API 호출시 응답받는 콜백을 설정하는 구조체입니다.
Definition: StovePCMatchmakingCallback.h:642