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.
V2TIMFriendApplication

Public Member Functions

String getUserID ()
 
String getNickname ()
 
String getFaceUrl ()
 
long getAddTime ()
 
String getAddSource ()
 
String getAddWording ()
 
int getType ()
 
String toString ()
 

Static Public Attributes

static final int V2TIM_FRIEND_APPLICATION_COME_IN = 1
 
static final int V2TIM_FRIEND_APPLICATION_SEND_OUT = 2
 
static final int V2TIM_FRIEND_APPLICATION_BOTH = 3
 
static final int V2TIM_FRIEND_ACCEPT_AGREE = 0
 
static final int V2TIM_FRIEND_ACCEPT_AGREE_AND_ADD = 1
 

Member Function Documentation

◆ getUserID()

String getUserID ( )
inline

◆ getNickname()

String getNickname ( )
inline

Get the nickname of a friend

Returns
Nickname

◆ getFaceUrl()

String getFaceUrl ( )
inline

Get the profile photo of a friend

Returns

◆ getAddTime()

long getAddTime ( )
inline

Get UTC timestamp of adding friend

Returns
Time

◆ getAddSource()

String getAddSource ( )
inline

Get the source

Returns
Source

◆ getAddWording()

String getAddWording ( )
inline

Get friend remarks

Returns
Remarks

◆ getType()

int getType ( )
inline

Get the request type

  • V2TIM_FRIEND_APPLICATION_COME_IN: friend request received by me
  • V2TIM_FRIEND_APPLICATION_SEND_OUT: friend request sent by me
  • V2TIM_FRIEND_APPLICATION_BOTH: friend requests received and sent by me
Returns
Pending request type

◆ toString()

String toString ( )
inline

Field Documentation

◆ V2TIM_FRIEND_APPLICATION_COME_IN

final int V2TIM_FRIEND_APPLICATION_COME_IN = 1
static

Friend request received by me

◆ V2TIM_FRIEND_APPLICATION_SEND_OUT

final int V2TIM_FRIEND_APPLICATION_SEND_OUT = 2
static

Friend request sent by me

◆ V2TIM_FRIEND_APPLICATION_BOTH

final int V2TIM_FRIEND_APPLICATION_BOTH = 3
static

Friend requests received and sent by me. Valid only during pulling

◆ V2TIM_FRIEND_ACCEPT_AGREE

final int V2TIM_FRIEND_ACCEPT_AGREE = 0
static

Accept the friend request (build a one-way friend relationship)

◆ V2TIM_FRIEND_ACCEPT_AGREE_AND_ADD

final int V2TIM_FRIEND_ACCEPT_AGREE_AND_ADD = 1
static

Accept the friend request and add the peer party as a friend (build a two-way friend relationship)