nn::friends::CTR::GetFriendProfile Function

Syntax

Result GetFriendProfile(
     Profile * pProfileList,
     const FriendKey * pFriendKeyList,
     size_t size = 1
);

Result GetFriendProfile(
     Profile * pProfileList,
     const PrincipalId * pPrincipalIdList,
     size_t size = 1
);

List of Overloaded Member Functions

GetFriendProfile(Profile *, const FriendKey *, size_t) Gets a list of friends' profile information.
GetFriendProfile(Profile *, const PrincipalId *, size_t) Gets a list of friends' profile information.

Description of GetFriendProfile(Profile *, const FriendKey *, size_t)

Empty profile information is returned in the given buffer if no friends correspond to the keys passed in as arguments. Empty profile information may also be returned if the friend has never disclosed being in the online state. But even in this case, the function itself returns a value indicating success.

For empty profile information, the platform code is invariably 0. As for data such as the region code, you cannot distinguish valid values from that information itself, so be sure to determine the platform code.

Description of GetFriendProfile(Profile *, const PrincipalId *, size_t)

Empty profile information is returned in the given buffer if no friends correspond to the keys passed in as arguments. Empty profile information may also be returned if the friend has never disclosed being in the online state. But even in this case, the function itself returns a value indicating success.

For empty profile information, the platform code is invariably 0. As for data such as the region code, you cannot distinguish valid values from that information itself, so be sure to determine the platform code.


CONFIDENTIAL