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

Detailed Description

Definition of V2TIMFriendInfo.

Public Member Functions

 V2TIMFriendInfo ()
 
 V2TIMFriendInfo (const V2TIMFriendInfo &friendInfo)
 
 ~V2TIMFriendInfo ()
 

Data Fields

V2TIMString userID
 
V2TIMString friendRemark
 
uint64_t friendAddTime
 
V2TIMCustomInfo friendCustomInfo
 
V2TIMStringVector friendGroups
 
V2TIMUserFullInfo userFullInfo
 
uint32_t modifyFlag
 

Constructor & Destructor Documentation

◆ V2TIMFriendInfo() [1/2]

◆ V2TIMFriendInfo() [2/2]

V2TIMFriendInfo ( const V2TIMFriendInfo friendInfo)

◆ ~V2TIMFriendInfo()

Field Documentation

◆ userID

V2TIMString userID

User's userID.

◆ friendRemark

V2TIMString friendRemark

Friend remarks The maximum length of friend remarks cannot exceed 96 bytes. For field descriptions, see here

◆ friendAddTime

uint64_t friendAddTime

Get the UTC timestamp when a friend was added.

◆ friendCustomInfo

V2TIMCustomInfo friendCustomInfo

Custom friend fields You need to configure custom fields in the console first (Configuration -> Custom Friend Fields). Then you can call this API to set the custom fields. You don't need to add the Tag_SNS_Custom_ prefix for keys.

◆ friendGroups

V2TIMStringVector friendGroups

Groups to which a friend belongs

  • A maximum of 32 lists are supported.
  • The list name cannot be empty.
  • The length of a list name cannot exceed 30 bytes
  • One user can be added to multiple friend lists.
  • For field descriptions, see here

◆ userFullInfo

V2TIMUserFullInfo userFullInfo

User profile of a friend.

◆ modifyFlag

uint32_t modifyFlag