Show / Hide Table of Contents

Class MessageSearchParam

Inheritance
System.Object
MessageSearchParam
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: com.tencent.imsdk.unity.types
Assembly: cs.temp.dll.dll
Syntax
public class MessageSearchParam

Fields

msg_search_param_conv_id

Declaration
public string msg_search_param_conv_id
Field Value
Type Description
System.String

Write-only (optional); the conversation ID

msg_search_param_conv_type

Declaration
public TIMConvType msg_search_param_conv_type
Field Value
Type Description
TIMConvType

Write-only (optional); the conversation type. `kTIMConv_Invalid`: Search in all conversations; otherwise, search in a specific conversation.

msg_search_param_keyword_array

Declaration
public List<string> msg_search_param_keyword_array
Field Value
Type Description
System.Collections.Generic.List<System.String>

Write-only (required); the list of search keywords (up to 5)

msg_search_param_keyword_list_match_type

Declaration
public TIMKeywordListMatchType msg_search_param_keyword_list_match_type
Field Value
Type Description
TIMKeywordListMatchType

Search by keywords combined by `Or` or `And`

msg_search_param_message_type_array

Declaration
public List<TIMElemType> msg_search_param_message_type_array
Field Value
Type Description
System.Collections.Generic.List<TIMElemType>

Write-only (optional); the set of the specified message types to search for. An empty array indicates that all types of supported messages (`FaceElem` and `GroupTipsElem` not supported currently) are searched for. See `TIMElemType` for details.

msg_search_param_page_index

Declaration
public uint msg_search_param_page_index
Field Value
Type Description
System.UInt32

Write-only (optional); the page numbers used in displaying search results by page, starting from 0. First call: Call `searchLocalMessage` with `pageSize` set to 10 and `pageIndex` to 0. You can get the total number of results from `totalCount` in the callback.

msg_search_param_page_size

Declaration
public uint msg_search_param_page_size
Field Value
Type Description
System.UInt32

Write-only (optional); the number of results per page used in displaying search results by page. If you do not want to paginate the search results, set the parameter to 0. However, a large number of search results without pagination may cause performance issues.

msg_search_param_search_time_period

Declaration
public ulong msg_search_param_search_time_period
Field Value
Type Description
System.UInt64

Write-only (optional); the time past starting from the start time, in seconds. The default value 0 indicates that the time is not limited. The value `24x60x60` indicates the past day.

msg_search_param_search_time_position

Declaration
public ulong msg_search_param_search_time_position
Field Value
Type Description
System.UInt64

Write-only (optional); the start time for search. The default value 0 indicates that the search starts now. The value can also be the UTC timestamp, in seconds.

msg_search_param_send_indentifier_array

Declaration
public List<string> msg_search_param_send_indentifier_array
Field Value
Type Description
System.Collections.Generic.List<System.String>

Search by the sender's UserID

In This Article
Back to top Generated by DocFX