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

Public Member Functions

 V2TIMMessageSearchResultItem ()
 
 V2TIMMessageSearchResultItem (const V2TIMMessageSearchResultItem &)
 
 ~V2TIMMessageSearchResultItem ()
 

Data Fields

V2TIMString conversationID
 
uint32_t messageCount
 
V2TIMMessageVector messageList
 

Constructor & Destructor Documentation

◆ V2TIMMessageSearchResultItem() [1/2]

◆ V2TIMMessageSearchResultItem() [2/2]

◆ ~V2TIMMessageSearchResultItem()

Field Documentation

◆ conversationID

V2TIMString conversationID

Get the conversation ID.

◆ messageCount

uint32_t messageCount

Total number of eligible messages found in the current conversation.

◆ messageList

V2TIMMessageVector messageList

List of eligible messages

If you search a specified conversation, messageList contains the list of all the eligible messages in the current conversation.

If you search all conversations, there are two possibilities for the number of messages contained in messageList:

  • If more than 1 eligible message is found in a conversation, messageList is empty, and the notification message "messageCount related messages" can be displayed on the UI.
  • If 1 eligible message is found in a conversation, messageList contains the eligible message, and the message is displayed with the matching keywords highlighted on the UI.