HIVE SDK for C++

HIVE_SocialGoogle.h
Go to the documentation of this file.
1
17#ifndef __HIVE_SOCIALGOOGLE_H__
18#define __HIVE_SOCIALGOOGLE_H__
19
20
21#include "HIVE_ResultAPI.h"
22#include "HIVE_SocialHive.h"
23
24
25NS_HIVE_BEGIN
26
27
28class ResultAPI;
29
30
43class HIVESDK_DLLEXPORT SocialGoogle
44{
45public:
46
48
49
50
51
64 typedef std::function<void(ResultAPI const & result, std::vector<ProfileGooglePlay> const & profileList)> onProfileGoogle;
65
66
67
68
79 static void getMyProfile(onProfileGoogle listener);
80
81
82
83
84 // Native 영역에서 호출된 요청을 처리하기 위한 플러그인 내부 코드
85 static void executeEngine(picojson::value jsonParam);
86
87
88
89
98 class HIVESDK_DLLEXPORT ProfileGooglePlay {
99
100 public:
101 std::string playerId;
102 std::string playerName;
103
104
106
107 ProfileGooglePlay(std::string playerId, std::string playerName);
108
109 ProfileGooglePlay(picojson::value jsonParam);
110
111 picojson::object toJson() const;
112
113 std::string toString() const;
114 };
115};
116
117
118NS_HIVE_END // namespace hive
119
120
121#endif // __HIVE_SOCIALGOOGLE_H__
122
123
Definition: HIVE_ResultAPI.h:63
Google Play Games Profile information.
Definition: HIVE_SocialGoogle.h:98
std::string playerId
GooglePlay's PlayerId.
Definition: HIVE_SocialGoogle.h:101
std::string playerName
GooglePlay's DiaplayPlayerName.
Definition: HIVE_SocialGoogle.h:102
Definition: HIVE_SocialGoogle.h:44
static void getMyProfile(onProfileGoogle listener)
Request Google Play Games porfile.
std::function< void(ResultAPI const &result, std::vector< ProfileGooglePlay > const &profileList)> onProfileGoogle
Returns Google Play Games porfile.
Definition: HIVE_SocialGoogle.h:64
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy