iFun Engine API  1.0.0-b2936
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
google_play_game_authentication.h
Go to the documentation of this file.
1 // Copyright (C) 2017 iFunFactory Inc. All Rights Reserved.
2 //
3 // This work is confidential and proprietary to iFunFactory Inc. and
4 // must not be used, disclosed, copied, or distributed without the prior
5 // consent of iFunFactory Inc.
6 
9 #ifndef INCLUDE_FUNAPI_SERVICE_GOOGLE_PLAY_GAME_AUTHENTICATION_H_
10 #define INCLUDE_FUNAPI_SERVICE_GOOGLE_PLAY_GAME_AUTHENTICATION_H_
11 
12 #include <funapi/common/json.h>
13 #include <funapi/player_account.h>
14 #include <funapi/types.h>
15 
16 
17 namespace fun {
18 
20  GooglePlayGameAuthenticationRequest(const string &app_id,
21  const string &id_token);
22 
23  string app_id;
24  string id_token;
25 };
26 
27 
31  const int64_t error_code, const string &error_message);
32 
33  bool success;
34  int64_t error_code;
35  string error_message;
36 
37  string app_id;
38  string name;
39  string picture;
40 };
41 
42 
43 typedef function<void(const GooglePlayGameAuthenticationRequest &request,
45  bool error)> GooglePlayGameAuthenticationResponseHandler;
46 
47 
48 void Authenticate(const GooglePlayGameAuthenticationRequest &request,
49  const GooglePlayGameAuthenticationResponseHandler &handler,
50  size_t timeout_in_ms = 0);
51 
52 } // namespace fun
53 
54 #endif // INCLUDE_FUNAPI_SERVICE_GOOGLE_PLAY_GAME_AUTHENTICATION_H_
Definition: google_play_game_authentication.h:19
Definition: google_play_game_authentication.h:28