nn::friends::CTR::GetFriendAttributeFlags Function

Syntax

Result GetFriendAttributeFlags(
     bit32 * pAttributeFlagsList,
     const FriendKey * pFriendKeyList,
     size_t size = 1
);

Result GetFriendAttributeFlags(
     bit32 * pAttributeFlagsList,
     const PrincipalId * pPrincipalIdList,
     size_t size = 1
);

List of Overloaded Member Functions

GetFriendAttributeFlags(bit32 *, const FriendKey *, size_t) Gets a list of friend relationships.
GetFriendAttributeFlags(bit32 *, const PrincipalId *, size_t) Gets a list of friend relationships.

Description of GetFriendAttributeFlags(bit32 *, const FriendKey *, size_t)

Friend relationships are represented as a bitwise OR of attributes. Friends that have established a friend relationship with the local host at least once have the nn::friends::CTR::ATTRIBUTE_FLAG_ESTABLISHED bit set to 1. Friends who meet all of the following conditions have the nn::friends::CTR::ATTRIBUTE_REMOTE_ACCESSIBLE bit set to 1.
・ A friend relationship has been established on the friend server (this does not include the local friend state)
・ The friend has not deleted the friend relationship, or if they have, that fact has not been synchronized yet from the friend server

The friend list on the local system does not explicitly show the user that the friend has deleted their friend relationship, and it appears to the user as if that person is always offline. We consider the fact that the behavior is the same to the fullest extent so that developers do not need to worry about it when using the friend presence library or the NEX library. When accessing the latest data about users in friend lists on independent servers, use the nn::friends::CTR::ATTRIBUTE_REMOTE_ACCESSIBLE bit to determine if the latest friend relationships can be evaluated only locally and it is difficult to hide the deletion of friend relationships.

Description of GetFriendAttributeFlags(bit32 *, const PrincipalId *, size_t)

Friend relationships are represented as a bitwise OR of attributes. Friends that have established a friend relationship with the local host at least once have the nn::friends::CTR::ATTRIBUTE_FLAG_ESTABLISHED bit set to 1. Friends who meet all of the following conditions have the nn::friends::CTR::ATTRIBUTE_REMOTE_ACCESSIBLE bit set to 1.
・A friend relationship has been established on the friend server (this does not include the local friend state)
・The friend has not deleted the friend relationship, or if they have, that fact has not been synchronized yet from the friend server

The friend list on the local system does not explicitly show the user that the friend has deleted their friend relationship, and it appears to the user as if that person is always offline. We consider the fact that the behavior is the same to the fullest extent so that developers do not need to worry about it when using the friend presence library or the NEX library. When accessing the latest data about users in friend lists on independent servers, use the nn::friends::CTR::ATTRIBUTE_REMOTE_ACCESSIBLE bit to determine if the latest friend relationships can be evaluated only locally and it is difficult to hide the deletion of friend relationships.


CONFIDENTIAL