iFun Engine API  1.0.0-b6053
Great Technology for Great Games
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 stringid () const
 
bool operator< (const PlayerAccount &target) const
 
bool operator== (const PlayerAccount &target) const
 
const stringservice_provider () const
 
string ToString () const
 

Friends

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

Constructor & Destructor Documentation

◆ PlayerAccount()

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

Member Function Documentation

◆ id()

const string& fun::PlayerAccount::id ( ) const
Returns
id in the service provider.

◆ operator<()

bool fun::PlayerAccount::operator< ( const PlayerAccount target) const
Returns
true if less, otherwise false.

◆ operator==()

bool fun::PlayerAccount::operator== ( const PlayerAccount target) const
Returns
true if equal, otherwise false.

◆ service_provider()

const string& fun::PlayerAccount::service_provider ( ) const
Returns
authentication service provider.

◆ ToString()

string fun::PlayerAccount::ToString ( ) const
Returns
string representation of account id.