HIVE SDK for C++

HIVE_ResultAPI.h
이 파일의 문서화 페이지로 가기
1
19#ifndef __HIVE_RESULTAPI_H__
20#define __HIVE_RESULTAPI_H__
21
22
23#include "picojson.h"
24
25#include <functional>
26
27#ifdef __cplusplus
28 #define NS_HIVE_BEGIN namespace hive {
29 #define NS_HIVE_END }
30 #define USING_NS_HIVE using namespace hive
31 #define NS_HIVE ::hive
32#else
33 #define NS_HIVE_BEGIN
34 #define NS_HIVE_END
35 #define USING_NS_HIVE
36 #define NS_HIVE
37#endif
38
39// GCPSDK4-946 해당부분은 수정하지 않았습니다.
40// 링크 참고
41// https://xgit.withhive.com/PlatformClient/HIVE-SDK-v4-Unreal/-/commit/87b74ec94d2a13822410b4c1c02e81d31d8bd7f8#bd4c6f7fc8535b5f203840ffde8b4013afc7460f_42_40
42#if defined (_MSC_VER) /* MSVC Compiler Case */
43#define HIVESDK_DLLEXPORT __declspec(dllexport)
44#pragma warning(disable : 4251) // need to have dll-interface warn
45#elif PLATFORM_MAC
46#define HIVESDK_DLLEXPORT HIVESDK_API
47#else
48#define HIVESDK_DLLEXPORT
49#endif
50
51NS_HIVE_BEGIN
52
53
63class HIVESDK_DLLEXPORT ResultAPI {
64public:
65 typedef enum {
66 SUCCESS = 0,
67
68 RESTORE_NOT_OWNED = 10,
69
75 ITEM_DELIVERY_DELAYED = 11,
76
82 ITEM_PENDING = 12,
83
88 AUTHORIZED = 20,
89 IAPSUCCESS = 90, // Desktop Platform HIVE Store.
90 INVALID_PARAM = -1,
91 NOT_SUPPORTED = -2,
92 IN_PROGRESS = -3,
93 TIMEOUT = -4,
94 NETWORK = -5,
95 CANCELED = -6,
96 NEED_INITIALIZE = -7,
97
98 RESPONSE_FAIL = -8,
99 INVALID_SESSION = -9,
100 NEED_RESTORE = -10,
101
106 CONFLICT_PLAYER = -11,
107
112 BLACKLIST = -12,
113
119 DEVELOPER_ERROR = -13,
120
125 DUPLICATED_PROMOTION_CODE = -14,
126
130 PLAYER_CHANGE = -15,
131
136 USER_OUT = -16,
137
138 NEED_EXIT = -17,
139
140 UNDEFINED = -98,
141
142 UNKNOWN = -99
143
144 } ErrorCode;
145
146 typedef enum {
147 // RESULT API BEGIN
148 Success = 0,
149 CommonHTTPConnectionException = -1,
150 CommonHTTPConnectionOpenException = -2,
151 CommonHTTPContentEncodingNotSupported = -3,
152 CommonHTTPDecryptionFailed = -4,
153 CommonHTTPResponseException = -5,
154 CommonHTTPInvalidBody = -6,
155 CommonHTTPInvalidJSON = -7,
156 CommonHTTPInvalidURLRequest = -8,
157 CommonHTTPInvalidURL = -9,
158 CommonHTTPGzipDecodeFailed = -10,
159 CommonHTTPNetworkError = -11,
160 TestError = -800,
161 TestWithNSError = -801,
162 TestWithNSString = -802,
163 TestWithNSDictionary = -803,
164 CommonUnknown = -999,
165 AuthNotInitialized = -1100001,
166 AuthInvalidServerResponse = -1100002,
167 AuthServerResponseNotSuccessful = -1100003,
168 AuthInvalidUser = -1100004,
169 AuthUserCanceled = -1100005,
170 AuthInProgressLoginLogout = -1100006,
171 AuthInvalidSelectedAccountURL = -1100007,
172 AuthInvalidSelectedVID = -1100008,
173 AuthOnRunningV4 = -1100009,
174 AuthInvalidConfigurationXml = -1100010,
175 AuthInvalidParamLoginType = -1100011,
176 AuthInvalidParamVID = -1100012,
177 AuthInvalidParamSessionKey = -1100013,
178 AuthInvalidGuestSession = -1100014,
179 AuthUserInBlacklist = -1100015,
180 AuthInvalidAccountSession = -1100016,
181 AuthJsonException = -1100017,
182 AuthCanceled = -1100018,
183 AuthDialogAlreadyUsing = -1100019,
184 AuthNetworkErrorShowLoginSelection = -1100020,
185 AuthNetworkErrorCheckMaintenance = -1100021,
186 AuthResponseFailCheckMaintenance = -1100022,
187 AuthResponseFailMaintenanceDialog = -1100023,
188 AuthNetworkErrorProcessLoginType = -1100024,
189 AuthNetworkErrorGuestLogin = -1100025,
190 AuthHIVESocialLoginCancelled = -1100026,
191 AuthNetworkErrorLoginCenterLogin = -1100027,
192 AuthNetworkErrorRequestUpdate = -1100028,
193 AuthNetworkErrorRequestAdultConfirm = -1100029,
194 AuthInvalidParamVIDList = -1100030,
195 AuthAgreementFail_DoExit = -1100031,
196 AuthMaintenanceActionDefault_DoExit = -1100032,
197 AuthMaintenanceActionOpenURL_DoExit = -1100033,
198 AuthMaintenanceActionExit_DoExit = -1100034,
199 AuthMaintenanceActionDone = -1100035,
200 AuthMaintenanceTimeover_DoExit = -1100036,
201 AuthUserInBlacklistActionDefault_DoExit = -1100037,
202 AuthUserInBlacklistActionOpenURL_DoExit = -1100038,
203 AuthUserInBlacklistActionExit_DoExit = -1100039,
204 AuthUserInBlacklistActionDone = -1100040,
205 AuthUserInBlacklistTimeover_DoExit = -1100041,
206 AuthInProgressInitialize = -1100042,
207 AuthSkipPermissionView = -1100043,
208 AuthInProgressRequestPermissionViewData = -1100044,
209 AuthNetworkErrorRequestPermissionViewData = -1100045,
210 AuthProviderMissingKey = -1100046,
211 AuthResponseFailLogoutOnlyPGSConnectedUser = -1100047,
212 AuthNetworkErrorLoginCenterSignOut = -1100048,
213 AuthV4InvalidServerResponse = -1200001,
214 AuthV4OnRunningV1 = -1200002,
215 AuthV4InProgressSignIn = -1200003,
216 AuthV4InvalidConfigurationXml = -1200004,
217 AuthV4InvalidSavedPlayerInfo = -1200005,
218 AuthV4AlreadyAuthorized = -1200006,
219 AuthV4ConflictPlayer = -1200007,
220 AuthV4UserInBlacklist = -1200008,
221 AuthV4InvalidSession = -1200009,
222 AuthV4ConflictPlayerHandlingFail = -1200010,
223 AuthV4InvalidParamDid = -1200011,
224 AuthV4NotInitialized = -1200012,
225 AuthV4SessionExist = -1200013,
226 AuthV4SessionNotExist = -1200014,
227 AuthV4InvalidProviderType = -1200015,
228 AuthV4SigninFirst = -1200016,
229 AuthV4ProviderAlreadyConnected = -1200017,
230 AuthV4ProviderAlreadyDisconnected = -1200018,
231 AuthV4InvalidParamSelectedPlayerid = -1200019,
232 AuthV4InvalidConflictInfo = -1200020,
233 AuthV4InvalidPlayeridList = -1200021,
234 AuthV4JsonException = -1200022,
235 AuthV4InvalidSigninSelection = -1200023,
236 AuthV4NotSupportedProviderType = -1200024,
237 AuthV4WebviewDialogError = -1200025,
238 AuthV4InProgressAuthDialog = -1200026,
239 AuthV4InvalidParamViewID = -1200027,
240 AuthV4InvalidParamPlayerID = -1200028,
241 AuthV4NetworkErrorSigninGuest = -1200029,
242 AuthV4ResponseFailProviderUserID = -1200030,
243 AuthV4ResponseFailSelectedPlayerID = -1200031,
244 AuthV4CancelDialog = -1200032,
245 AuthV4ResponseFailSocialDialog = -1200033,
246 AuthV4ProfileNetworkError = -1200034,
247 AuthV4ProfileResponseFail = -1200035,
248 AuthV4MembershipNetworkError = -1200036,
249 AuthV4MembershipResponseFail = -1200037,
250 AuthV4ResponseFailSigninProvider = -1200038,
251 AuthV4ResponseFailCheckProvider = -1200039,
252 AuthV4ResponseFailGetFriendList = -1200040,
253 AuthV4ResponseFailSigninGuest = -1200041,
254 AuthV4InProgressConnect = -1200042,
255 AuthV4InProgressShowLeaderboard = -1200043,
256 AuthV4InProgressShowAchievements = -1200044,
257 AuthV4PlayerChange = -1200045,
258 AuthV4HelperImplifiedLoginFail = -1200046,
259 AuthV4PlayerResolved = -1200047,
260 AuthV4AgreementFail_DoExit = -1200048,
261 AuthV4AgreementFailWithWebviewError_DoExit = -1200049,
262 AuthV4MaintenanceActionDefault_DoExit = -1200050,
263 AuthV4MaintenanceActionOpenURL_DoExit = -1200051,
264 AuthV4MaintenanceActionExit_DoExit = -1200052,
265 AuthV4MaintenanceActionDone = -1200053,
266 AuthV4MaintenanceTimeover_DoExit = -1200054,
267 AuthV4NetworkError = -1200055,
268 AuthV4InvalidResponseData = -1200056,
269 AuthV4ServerResponseError = -1200057,
270 AuthV4NeedSignIn = -1200058,
271 AuthV4InProgress = -1200059,
272 AuthV4InvalidParam = -1200060,
273 AuthV4SkipPermissionView = -1200061,
274 AuthV4InvalidCertification = -1200062,
275 AuthV4LastProviderCantDisconnect = -1200063,
276 AuthV4ProviderLoginError = -1200101,
277 AuthV4ProviderLogoutError = -1200102,
278 AuthV4ProviderNotSupportGetFriends = -1200103,
279 AuthV4ProviderLoginCancel = -1200104,
280 AuthV4ProviderMissingKey = -1200105,
281 authV4ProviderNotSupportedMyInquiry = -1200106,
282 AuthV4FacebookUserCanceled = -1200201,
283 AuthV4FacebookResponseFailGetFriends = -1200202,
284 AuthV4FacebookNetworkErrorUploadProfile = -1200203,
285 AuthV4FacebookResponseFailUploadProfile = -1200204,
286 AuthV4FacebookResponseError = -1200205,
287 AuthV4FacebookInvalidResponseData = -1200206,
288 AuthV4FacebookNetworkError = -1200207,
289 AuthV4FacebookCancel = -1200208,
290 AuthV4GoogleResponseFailLogin = -1200301,
291 AuthV4GoogleResponseFailLogout = -1200302,
292 AuthV4GoogleNetworkErrorUploadProfile = -1200303,
293 AuthV4GoogleResponseFailUploadProfile = -1200304,
294 AuthV4GoogleResponseFailShowAchievements = -1200305,
295 AuthV4GoogleResponseFailShowLeaderboards = -1200306,
296 AuthV4GoogleNotSupported = -1200307,
297 AuthV4GoogleLoginCancel = -1200308,
298 AuthV4GoogleNetworkError = -1200309,
299 AuthV4GoogleLogout = -1200310,
300 AuthV4GoogleResponseFailAchievementsReveal = -1200311,
301 AuthV4GoogleResponseFailAchievementsUnlock = -1200312,
302 AuthV4GoogleResponseFailAchievementsIncrement = -1200313,
303 AuthV4GoogleResponseFailLeaderboardsSubmitScore = -1200314,
304 AuthV4GoogleNeedSignIn = -1200315,
305 AuthV4GoogleNeedSettingOption = -1200316,
306 AuthV4GoogleResponseFailPGSGetServerAccessToken = -1200317,
307 AuthV4GoogleResponseFailPGSGetPlayerId = -1200318,
308 AuthV4GoogleObjectNotReady = -1200319,
309 AuthV4AppleLoginCancel = -1200401,
310 AuthV4AppleResponseFailLogin = -1200402,
311 AuthV4AppleTimeOut = -1200403,
312 AuthV4AppleResponseFailReportScore = -1200404,
313 AuthV4AppleInProgressGameCenterVC = -1200405,
314 AuthV4AppleResponseFailLoadAchievements = -1200406,
315 AuthV4AppleResponseFailReportAchievements = -1200407,
316 AuthV4AppleResponseFailResetAchievements = -1200408,
317 AuthV4AppleNotSupported = -1200409,
318 AuthV4AppleInProgress = -1200410,
319 AuthV4AppleResponseError = -1200411,
320 AuthV4AppleCancel = -1200412,
321 AuthV4VKResponseFailLogin = -1200501,
322 AuthV4VKInvalidParamSDK = -1200502,
323 AuthV4VKNotInitialized = -1200503,
324 AuthV4VKCancelLogin = -1200504,
325 AuthV4VKInvalidSession = -1200505,
326 AuthV4VKResponseFailGetFriends = -1200506,
327 AuthV4VKResponseFailLogout = -1200507,
328 AuthV4VKResponseFailUploadProfile = -1200508,
329 AuthV4VKNetworkErrorUploadProfile = -1200509,
330 AuthV4VKInProgress = -1200510,
331 AuthV4VKResponseError = -1200511,
332 AuthV4VKNetworkError = -1200512,
333 AuthV4VKInvalidParam = -1200513,
334 AuthV4VKCancel = -1200514,
335 AuthV4VKTokenResponseError = -1200515,
336 AuthV4WechatInProgressLoginLogout = -1200601,
337 AuthV4WechatResponseFailLogin = -1200602,
338 AuthV4WechatNotSupportedRequest = -1200603,
339 AuthV4WechatResponseFailUserInfo = -1200604,
340 AuthV4WechatNetworkErrorUserInfo = -1200605,
341 AuthV4WechatNetworkError = -1200606,
342 AuthV4WechatResponseFail = -1200607,
343 AuthV4WechatNetworkErrorLogin = -1200608,
344 AuthV4WechatLoginCancel = -1200609,
345 AuthV4WechatInProgress = -1200610,
346 AuthV4WechatResponseError = -1200611,
347 AuthV4WechatInvalidResponseData = -1200612,
348 AuthV4WechatInvalidAppKey = -1200613,
349 AuthV4HIVEDialogCancel = -1200701,
350 AuthV4HIVENetworkErrorUploadProfile = -1200702,
351 AuthV4HIVEResponseFailUploadProfile = -1200703,
352 AuthV4HIVEInProgress = -1200704,
353 AuthV4HIVEResponseError = -1200705,
354 AuthV4HIVENetworkError = -1200706,
355 AuthV4HIVEInvalidParam = -1200707,
356 AuthV4HIVECancel = -1200708,
357 AuthV4QQInProgressLoginLogout = -1200801,
358 AuthV4QQResponseFailLogin = -1200802,
359 AuthV4QQCancelLogin = -1200803,
360 AuthV4QQNetworkError = -1200804,
361 AuthV4QQNetworkErrorUploadProfile = -1200805,
362 AuthV4QQResponseFailUploadProfile = -1200806,
363 AuthV4QQCancelUploadProfile = -1200807,
364 AuthV4QQResponseFailLogout = -1200808,
365 AuthV4QQNotInitialized = -1200809,
366 AuthV4QQInProgress = -1200810,
367 AuthV4QQResponseError = -1200811,
368 AuthV4QQInvalidResponseData = -1200812,
369 AuthV4QQInvalidParam = -1200813,
370 AuthV4QQCancel = -1200814,
371 AuthV4SignInAppleUnknown = -1200901,
372 AuthV4SignInAppleCanceled = -1200902,
373 AuthV4SignInAppleFailed = -1200903,
374 AuthV4SignInAppleInvalidResponse = -1200904,
375 AuthV4SignInAppleNotHandled = -1200905,
376 AuthV4SignInAppleNotSupported = -1200906,
377 AuthV4LineInvalidParam = -1201001,
378 AuthV4LineCancel = -1201002,
379 AuthV4LineResponseError = -1201003,
380 AuthV4LineNetworkError = -1201004,
381 AuthV4TwitterResponseError = -1201101,
382 AuthV4TwitterInvalidParam = -1201102,
383 AuthV4WeverseInProgressLoginLogout = -1201201,
384 AuthV4WeverseResponseFailLogin = -1201202,
385 AuthV4WeverseNotSupported = -1201203,
386 AuthV4WeverseNetworkError = -1201204,
387 AuthV4WeverseLoginCancel = -1201205,
388 AuthV4WeverseResponseError = -1201206,
389 AuthV4NotRegisteredDevice = -1201300,
390 AuthV4HuaweiNotInitialized = -1201401,
391 AuthV4HuaweiInProgress = -1201402,
392 AuthV4HuaweiInvalidParam = -1201403,
393 AuthV4HuaweiLoginCancel = -1201404,
394 AuthV4HuaweiNetworkError = -1201405,
395 AuthV4HuaweiResponseError = -1201406,
396 SocialResponseFailDismissDialog = -2000001,
397 SocialCancelDismissDialog = -2000002,
398 SocialCancelConnect = -2000003,
399 SocialResponseFailConnect = -2000004,
400 SocialCancelGetPictureFromGallery = -2000005,
401 SocialResponseFailGetPictureFromGallery = -2000006,
402 SocialCancelSharePhoto = -2000007,
403 SocialResponseFailSharePhoto = -2000008,
404 SocialInvalidParam = -2000009,
405 SocialProviderNotInitialized = -2000010,
406 SocialNeedSignIn = -2000011,
407 SocialGoogleNotInitialized = -2000101,
408 SocialGoogleResponseFailGetProfile = -2000102,
409 SocialGoogleInProgressConnect = -2000103,
410 SocialGoogleResponseFailConnect = -2000104,
411 SocialGoogleCancelGetProfile = -2000105,
412 SocialGoogleCancelConnect = -2000106,
413 SocialGoogleNetworkErrorUpdateServerFlag = -2000107,
414 SocialGoogleResponseFailUpdateServerFlag = -2000108,
415 SocialFacebookNotInitialized = -2000201,
416 SocialFacebookResponseFailGetProfile = -2000202,
417 SocialFacebookCancelGetProfile = -2000203,
418 SocialFacebookResponseFailGetFriends = -2000204,
419 SocialFacebookCancelGetFriends = -2000205,
420 SocialFacebookResponseFailSendMessage = -2000206,
421 SocialFacebookCancelSendMessage = -2000207,
422 SocialFacebookMessageDialogShowFail = -2000208,
423 SocialFacebookResponseFailShowInvitation = -2000209,
424 SocialFacebookCancelShowInvitation = -2000210,
425 SocialFacebookInvalidParamPost = -2000211,
426 SocialFacebookPostDialogShowFail = -2000212,
427 SocialFacebookShareFail = -2000213,
428 SocialFacebookShareCancelled = -2000214,
429 SocialFacebookSendInvitationFail = -2000215,
430 SocialFacebookSendInvitationCancelled = -2000216,
431 SocialFacebookCancelPost = -2000217,
432 SocialFacebookResponseFailPost = -2000218,
433 SocialFacebookOperationException = -2000219,
434 SocialFacebookServiceException = -2000220,
435 SocialFacebookException = -2000221,
436 SocialHIVENotInitialized = -2000301,
437 SocialHIVENetworkErrorGetMyProfile = -2000302,
438 SocialHIVEInvalidParamSetMyProfile = -2000303,
439 SocialHIVENetworkErrorSetMyProfile = -2000304,
440 SocialHIVENetworkErrorGetFriends = -2000305,
441 SocialHIVEInvalidSession = -2000306,
442 SocialHIVEInvalidParamVID = -2000307,
443 SocialHIVENetworkErrorGetVIDByUIDList = -2000308,
444 SocialHIVENetworkErrorGetUIDByVIDList = -2000309,
445 SocialHIVEInvalidParamContentSendMessage = -2000310,
446 SocialHIVENetworkErrorSendMessage = -2000311,
447 SocialHIVEInvalidParamReceiptSendMessage = -2000312,
448 SocialHIVEInvalidParamUID = -2000313,
449 SocialHIVEInProgressSocialDialog = -2000314,
450 SocialHIVESocialDialogClosed = -2000315,
451 SocialHIVENetworkErrorGetBadgeInfo = -2000316,
452 SocialHIVEResponseFailGetMyProfile = -2000317,
453 SocialHIVEResponseFailSetMyProfile = -2000318,
454 SocialHIVEResponseFailGetFriends = -2000319,
455 SocialHIVEResponseFailGetVID = -2000320,
456 SocialHIVEResponseFailInvalidVIDList = -2000321,
457 SocialHIVEResponseFailGetUID = -2000322,
458 SocialHIVEResponseFailInvalidUIDList = -2000323,
459 SocialHIVEResponseFailSendMessage = -2000324,
460 SocialHIVEResponseFailGetBadgeInfo = -2000325,
461 SocialHIVEResponseFailDialogWebView = -2000326,
462 SocialHIVEResponseFailSocialDialog = -2000327,
463 SocialHIVEInvalidParamFriendType = -2000328,
464 SocialHIVEResponseFailGetProfiles = -2000329,
465 SocialHIVEInvalidParamGetProfiles = -2000330,
466 SocialHIVEResponseFail = -2000331,
467 SocialHIVEInvalidParamSendMessage = -2000332,
468 SocialHIVEInvalidParamSendInvitationMessage = -2000333,
469 SocialHIVEResponseFailGetPictureFromGallery = -2000334,
470 SocialHIVEResponseFailGetPictureFromCamera = -2000335,
471 SocialHIVENetworkErrorSendInvitationMessage = -2000336,
472 PromotionNotInitialized = -3000001,
473 PromotionAlreadyShowing = -3000002,
474 PromotionNetworkErrorShowCustomContents = -3000003,
475 PromotionNetworkErrorShowOfferwall = -3000004,
476 PromotionShowDialogFail = -3000005,
477 PromotionResponseFailGetViewInfo = -3000006,
478 PromotionNetworkError = -3000007,
479 PromotionServerResponseError = -3000008,
480 PromotionInvalidResponseData = -3000009,
481 PromotionShareFailed = -3000010,
482 UserEngagementResponseFail = -3200001,
483 UserEngagementAlreadySetReady = -3200002,
484 UserEngagementHandlerNotRegistered = -3200003,
485 UserEngagementNotLogined = -3200004,
486 UserEngagementEmptyCouponId = -3200005,
487 UserEngagementEmptyMarketPid = -3200006,
488 UserEngagementListenerNotRegistered = -3200007,
489 PromotionStartPlayback = -3300001,
490 PromotionFinishPlayback = -3300002,
491 PromotionYTPlayerError = -3300003,
492 PromotionCancelPlayback = -3300004,
493 PushNotInitialized = -4000001,
494 PushInvalidParamLocalPush = -4000002,
495 PushInvalidParamRemotePush = -4000003,
496 PushNetworkError = -4000004,
497 PushAgeGateUnder13 = -4000005,
498 PushInvalidResponseData = -4000006,
499 PushServerResponseError = -4000007,
500 PushNeedSignIn = -4000008,
501 IAPNotInitialize = -6000001,
502 IAPAlreadyInInitialize = -6000002,
503 IAPNetworkError = -6000003,
504 IAPNotSupportedMarket = -6000004,
505 IAPNeedLogin = -6000005,
506 IAPNeedShopInitialize = -6000006,
507 IAPNotSupportedOSVersion = -6000007,
508 IAPNeedRestore = -6000008,
509 IAPNothingToRestore = -6000010,
510 IAPFailRestore = -6000011,
511 IAPRestrictPayments = -6000012,
512 IAPNetworkJsonException = -6000013,
513 IAPMarketNotSupportedAPI = -6000014,
514 IAPFailMarketInitialize = -6000015,
515 IAPResponseError = -6000016,
516 IAPDialogActionDefault_DoExit = -6000017,
517 IAPDialogActionOpenURL_DoExit = -6000018,
518 IAPDialogActionExit_DoExit = -6000019,
519 IAPDialogActionDone = -6000020,
520 IAPDialogTimeover_DoExit = -6000021,
521 IAPInProgressPurchasing = -6000101,
522 IAPInProgressRestoring = -6000102,
523 IAPInProgressCheckPromotePurchase = -6000103,
524 IAPInProgressConnectingAppStore = -6000104,
525 IAPInProgressMarketSelection = -6000105,
526 IAPAppStoreError = -6000201,
527 IAPAppStoreResponseEmpty = -6000202,
528 IAPCannotFindGamePID = -6000301,
529 IAPProductNotExist = -6000302,
530 IAPEmptyMarketPID = -6000303,
531 IAPFailCreateSKPayment = -6000304,
532 IAPEmptyTransaction = -6000305,
533 IAPEmptyProduct = -6000306,
534 IAPCancelPayment = -6000307,
535 IAPFailPayment = -6000308,
536 IAPInvalidMarketPID = -6000309,
537 IAPPurchaseParamJsonException = -6000310,
538 IAPShopInfoParamJsonException = -6000311,
539 IAPBadgeParamJsonException = -6000312,
540 IAPInvalidParamEmptyMarketPID = -6000401,
541 IAPInvalidParamLocationCode = -6000402,
542 IAPBlockedUser = -6000501,
543 IAPPromoCodeMatchMultiMarketPID = -6000502,
544 IAPPromoCodeNotMatchMarketPID = -6000503,
545 IAPPromoCodeAlreadyUsed = -6000504,
546 IAPAppleReceiptNotConnected = -6000505,
547 IAPServerDefaultError = -6000506,
548 IAPInitializeMarketListIsEmpty = -6000601,
549 IAPInitializeMarketURLISEmpty = -6000602,
550 IAPEmptyMarketURL = -6000603,
551 IAPNotSelectedMarket = -6000604,
552 IAPPlayStoreLaunchPurchaseFlowException = -6000701,
553 IAPPlayStoreSetupFail = -6000702,
554 IAPPlayStoreQueryInventoryFail = -6000703,
555 IAPPlayStorePending = -6000704,
556 IAPOneStoreProductListEmpty = -6000801,
557 IAPOneStoreProductNetworkError = -6000802,
558 IAPOneStoreProductInfoError = -6000803,
559 IAPOneStoreInvalidRequestID = -6000804,
560 IAPOneStorePurchaseError = -6000805,
561 IAPOneStoreNetworkNullError = -6000806,
562 IAPOneStoreNetworkInvalidError = -6000807,
563 IAPLebiInitializeNetworkError = -6000901,
564 IAPLebiInitializeJsonException = -6000902,
565 IAPLebiPurchaseNetworkError = -6000903,
566 IAPLebiPurchaseJsonException = -6000904,
567 IAPLebiVerifyOrderNetworkError = -6000905,
568 IAPLebiVerifyOrderJsonException = -6000906,
569 IAPLebiBalanceNetworkError = -6000907,
570 IAPLebiBalanceParamJsonException = -6000908,
571 IAPLebiPostException = -6000909,
572 IAPLebiInternalRequestException = -6000910,
573 IAPLebiRestoreNetworkError = -6000911,
574 IAPV4NotInitialize = -6100001,
575 IAPV4NetworkError = -6100002,
576 IAPV4NotSupportedMarket = -6100003,
577 IAPV4NeedSignIn = -6100004,
578 IAPV4NeedMarketConnect = -6100005,
579 IAPV4NeedRestore = -6100006,
580 IAPV4NothingToRestore = -6100007,
581 IAPV4FailToRestore = -6100008,
582 IAPV4RestrictPayments = -6100009,
583 IAPV4FailMarketConnect = -6100010,
584 IAPV4ResponseError = -6100011,
585 IAPV4MarketNotSupportedAPI = -6100012,
586 IAPV4InProgressMarketConnect = -6100101,
587 IAPV4InProgressPurchasing = -6100102,
588 IAPV4InProgressRestoring = -6100103,
589 IAPV4InProgressCheckPromote = -6100104,
590 IAPV4InProgressConnectAppStore = -6100105,
591 IAPV4InProgressMarketSelect = -6100106,
592 IAPV4AppStoreError = -6100201,
593 IAPV4AppStoreResponseEmpty = -6100202,
594 IAPV4ProductNotExsitInAppStore = -6100203,
595 IAPV4FinishMarketPidEmpty = -6100301,
596 IAPV4PromoteMarketPidEmpty = -6100302,
597 IAPV4FailCreateSKPayment = -6100303,
598 IAPV4FailToConvertNSSet = -6100304,
599 IAPV4InvalidLogType = -6100305,
600 IAPV4ProductNotExist = -6100306,
601 IAPV4RequestProductJsonException = -6100307,
602 IAPV4PurchaseParamJsonException = -6100308,
603 IAPV4RequestMarketJsonException = -6100309,
604 IAPV4ProductInfoJsonException = -6100310,
605 IAPV4CancelPayment = -6100311,
606 IAPV4FailPayment = -6100312,
607 IAPV4EmptyParamMarketPID = -6100401,
608 IAPV4EmptyMarketList = -6100501,
609 IAPV4EmptyMarketURL = -6100502,
610 IAPV4MarketPidListEmptyInIAPServer = -6100503,
611 IAPV4EmptyProductList = -6100504,
612 IAPV4ProductNotExistInIAPServer = -6100505,
613 IAPV4PlayStoreLaunchPurchaseFlowException = -6100701,
614 IAPV4PlayStoreSetupFail = -6100702,
615 IAPV4PlayStoreQueryInventoryFail = -6100703,
616 IAPV4PlayStoreFinishFail = -6100704,
617 IAPV4PlayStorePending = -6100705,
618 IAPV4OneStoreV5RemoteException = -6100801,
619 IAPV4OneStoreV5SecurityException = -6100802,
620 IAPV4OneStoreV5NeedUpdateException = -6100803,
621 IAPV4OneStoreCancelPayment = -6100804,
622 IAPV4OneStoreNetworkError = -6100805,
623 IAPV4OneStoreResponseError = -6100806,
624 IAPV4OneStoreProductNotExist = -6100807,
625 IAPV4OneStoreFailPayment = -6100808,
626 IAPV4OneStoreError = -6100809,
627 IAPV4OneStoreNeedRestore = -6100810,
628 IAPV4OneStoreNothingToRestore = -6100811,
629 IAPV4OneStoreUnablePayment = -6100812,
630 IAPV4OneStoreNeedSignIn = -6100813,
631 IAPV4OneStoreException = -6100814,
632 IAPV4OneStoreInvalidResponseData = -6100815,
633 IAPV4OneStoreInvalidParam = -6100816,
634 IAPV4LebiInitializeNetworkError = -6100901,
635 IAPV4LebiInitializeJsonException = -6100902,
636 IAPV4LebiPurchaseNetworkError = -6100903,
637 IAPV4LebiPurchaseJsonException = -6100904,
638 IAPV4LebiVerifyOrderNetworkError = -6100905,
639 IAPV4LebiVerifyOrderJsonException = -6100906,
640 IAPV4LebiBalanceNetworkError = -6100907,
641 IAPV4LebiBalanceParamJsonException = -6100908,
642 IAPV4LebiPostException = -6100909,
643 IAPV4LebiInternalRequestException = -6100910,
644 IAPV4LebiRestoreNetworkError = -6100911,
645 IAPV4LebiCancel = -6100912,
646 IAPV4LebiFinishFail = -6100913,
647 IAPV4CancelMarketSelect = -6100914,
648 IAPV4ServerResponseError = -6100915,
649 IAPV4HiveStoreSuccess = -6110000,
650 PlatformHelperOSNotSupported = -7000001,
651 PlatformHelperOSVersionNotSupported = -7000002,
652 PlatformHelperEmptyPermissions = -7000003,
653 DataStoreNotExistKey = -8000001,
654 DataStoreNotExistColumn = -8000002,
655 DataStoreNotExistPublicKey = -8000003,
656 DataStoreNotInitialized = -8000004,
657 DataStoreNeedSignIn = -8000005,
658 DataStoreDisabled = -8000006,
659 DataStoreResponseError = -8000007,
660 DataStoreInvalidParam = -8000008,
661 DataStoreGameIsBeingInspected = -8000009,
662 // RESULT API END
663 } Code;
664public:
665 int errorCode;
666
667 std::string errorMessage;
668 std::string message;
669
670 long latencyMs;
671
672 Code code;
673
674
675 ResultAPI();
676
677 ResultAPI(int errorCode, std::string errorMessage);
678 ResultAPI(int errorCode, Code code, std::string errorMessage);
679
680 ResultAPI(picojson::value jsonParam);
681
682
683 bool isSuccess() const;
684 ErrorCode getErrorCode()const;
685
686
687 picojson::object toJson() const;
688
689 std::string toString() const;
690
691 bool needExit() const;
692};
693
694
695NS_HIVE_END // namespace hive
696
697// C-Style
698extern "C"
699{
700 HIVESDK_DLLEXPORT const char* ResultAPIToString(void* resultAPIPtr);
701}
702
703#endif // __HIVE_RESULTAPI_H__
704
705
Definition: HIVE_ResultAPI.h:63
@ UNKNOWN
버튼 노출 가능 상태를 알 수 없음
Copyright © Com2uS Platform Corporation. All Right Reserved. 이용약관 개인정보 처리방침