iFun Engine API  1.0.0-b5770
Great Technology for Great Games
player_account.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2020 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_PLAYER_ACCOUNT_H_
10 #define INCLUDE_FUNAPI_PLAYER_ACCOUNT_H_
11 
12 #include <funapi/types.h>
13 
14 #include <vector>
15 
16 
17 namespace fun {
18 
20 class FUNAPI_DLL_VISIBILITY PlayerAccount {
21  public:
24  PlayerAccount(const string &service_provider, const string &id);
25 
26  PlayerAccount(const PlayerAccount &other);
27 
29  const string &service_provider() const;
30 
32  const string &id() const;
33 
35  bool operator<(const PlayerAccount &target) const;
36 
38  bool operator==(const PlayerAccount &target) const;
39 
41  string ToString() const;
42 
43  private:
44  FUNAPI_DLL_VISIBILITY
45  friend std::ostream &operator<<(std::ostream &out,
46  const PlayerAccount &player_account);
47 
48  string service_provider_;
49  string id_;
50 };
51 
52 
53 typedef std::vector<PlayerAccount> PlayerAccountVector;
54 
55 } // namespace fun
56 
57 #endif // INCLUDE_FUNAPI_PLAYER_ACCOUNT_H_
Account Id.
Definition: player_account.h:20
Definition: json.h:18