FriendApplication

FriendApplication

Friend request object, used to describe the information of a friend request, including the user, source, and remarks

Note: Supported from v2.13.0. Upgrade Guide.

Properties:
Name Type Description
userID String

User ID

  • If type is TIM.TYPES.SNS_APPLICATION_SENT_TO_ME, userID is the ID of the user who initiates the request.
  • If type is TIM.TYPES.SNS_APPLICATION_SENT_BY_ME, userID is the ID of the user who receives the request.
avatar String

User's profile photo

nick String

Nickname in the friend request

time String

Friend request time

source String

Friend request source

wording String

Friend request remarks

type String

Friend request type

  • TIM.TYPES.SNS_APPLICATION_SENT_TO_ME: friend request received by me
  • TIM.TYPES.SNS_APPLICATION_SENT_BY_ME: friend request sent by me