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)

Returns empty profile information in this buffer if there is no friend corresponding to the key passed in the arguments. The function will also return empty profile information if the peer has never published its online status. The function itself will still return success in this case.

The platform code of empty profile information is always 0. If you cannot tell if a value by itself is valid (for example, a region code), always use the platform code to determine validity.

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

Returns empty profile information in this buffer if there is no friend corresponding to the key passed in the arguments. The function will also return empty profile information if the peer has never published its online status. The function itself will still return success in this case.

The platform code of empty profile information is always 0. If you cannot tell if a value by itself is valid (for example, a region code), always use the platform code to determine validity.


CONFIDENTIAL