GetRelation
char CSocNetUserRelations::GetRelation( int firstUserID, int secondUserID );
The method returns type of binding between users. Non-static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
firstUserID | First user. | |
secondUserID | Second user. |
Returned value
Returns one of the listed constants:
SONET_RELATIONS_FRIEND - users are friends,
SONET_RELATIONS_REQUEST - one of users sent a friends request to another,
SONET_RELATIONS_BAN - one of users have blacklisted another user,
false - there are no existing bindings between users.
© «Bitrix24», 2001-2024