iFun Engine API  1.0.0-b3630
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
Public Member Functions | Friends | List of all members
fun::PlayerAccount Class Reference

Account Id.

#include <player_account.h>

Public Member Functions

 PlayerAccount (const string &service_provider, const string &id)
 
 PlayerAccount (const PlayerAccount &other)
 
const string & id () const
 
bool operator< (const PlayerAccount &target) const
 
bool operator== (const PlayerAccount &target) const
 
const string & service_provider () const
 
string ToString () const
 

Friends

std::ostream & operator<< (std::ostream &out, const PlayerAccount &player_account)
 

Constructor & Destructor Documentation

fun::PlayerAccount::PlayerAccount ( const string &  service_provider,
const string &  id 
)
Parameters
service_providerauthentication service provider.
idin the service provider.

Member Function Documentation

const string& fun::PlayerAccount::id ( ) const
Returns
id in the service provider.
bool fun::PlayerAccount::operator< ( const PlayerAccount target) const
Returns
true if less, otherwise false.
bool fun::PlayerAccount::operator== ( const PlayerAccount target) const
Returns
true if equal, otherwise false.
const string& fun::PlayerAccount::service_provider ( ) const
Returns
authentication service provider.
string fun::PlayerAccount::ToString ( ) const
Returns
string representation of account id.