iFun Engine API  1.0.0-b3630
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
player_account.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2015 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 
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  friend std::ostream &operator<<(std::ostream &out,
45  const PlayerAccount &player_account);
46 
47  string service_provider_;
48  string id_;
49 };
50 
51 
52 typedef std::vector<PlayerAccount> PlayerAccountVector;
53 
54 } // namespace fun
55 
56 #endif // INCLUDE_FUNAPI_PLAYER_ACCOUNT_H_
bool operator==(const PlayerAccount &target) const
Account Id.
Definition: player_account.h:20
PlayerAccount(const string &service_provider, const string &id)
const string & service_provider() const
string ToString() const
const string & id() const
bool operator<(const PlayerAccount &target) const