IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMFriendInfoResult

Public Member Functions

int getResultCode ()
 
String getResultInfo ()
 
int getRelation ()
 
V2TIMFriendInfo getFriendInfo ()
 

Member Function Documentation

◆ getResultCode()

int getResultCode ( )
inline

Get the return code

Returns
Return code

◆ getResultInfo()

String getResultInfo ( )
inline

Get the return result description

Returns
Result description

◆ getRelation()

int getRelation ( )
inline

Get the friend type. For related constants, see the definitions in V2TIMFriendCheckResult.

Returns
Friend relationship type

◆ getFriendInfo()

V2TIMFriendInfo getFriendInfo ( )
inline

Get the user profile of a friend. If you are not a friend, only the userID has a value, and other fields are empty.

Returns
Friend's user profile