# SearchMessageParams

public class SearchMessageParams

本地消息搜索参数。

查询时间轴： 0--------startTime--------------------endTime---------Now() 正序（order == RCOrderAscending）查询： 0--------startTime|---->--------------endTime---------Now() 倒序（order == RCOrderDescending）查询个数： 0--------startTime--------------<----|endTime---------Now() 倒序有位移(offset)查询： 0--------startTime----------<----|----endTime---------Now() - Since: 5.22.0

## Constructors

SearchMessageParams
Link copied to clipboard
public void SearchMessageParams()

## Types

Order
Link copied to clipboard
public enum Order

## Properties

conversationFilter
Link copied to clipboard
public ConversationFilter conversationFilter
查询指定的会话。
CREATOR
Link copied to clipboard
public final static Creator<SearchMessageParams> CREATOR
keyword
Link copied to clipboard
public String keyword
搜索关键词，不能为空。
limit
Link copied to clipboard
public int limit
查询个数，范围为 (0, 100]。
messageFilter
Link copied to clipboard
public MessageFilter messageFilter
查询指定的消息。
offset
Link copied to clipboard
public int offset
查询位移，默认为 0。
order
Link copied to clipboard
public SearchMessageParams.Order order
排序方式，默认为 Order.
timeRange
Link copied to clipboard
public TimeRange timeRange
查询的时间范围。

## Functions

describeContents
Link copied to clipboard
public int describeContents()
getConversationFilter
Link copied to clipboard
public ConversationFilter getConversationFilter()
getKeyword
Link copied to clipboard
public String getKeyword()
getLimit
Link copied to clipboard
public int getLimit()
getMessageFilter
Link copied to clipboard
public MessageFilter getMessageFilter()
getOffset
Link copied to clipboard
public int getOffset()
getOrder
Link copied to clipboard
public SearchMessageParams.Order getOrder()
getTimeRange
Link copied to clipboard
public TimeRange getTimeRange()
setConversationFilter
Link copied to clipboard
public void setConversationFilter(ConversationFilter conversationFilter)
setKeyword
Link copied to clipboard
public void setKeyword(String keyword)
setLimit
Link copied to clipboard
public void setLimit(int limit)
setMessageFilter
Link copied to clipboard
public void setMessageFilter(MessageFilter messageFilter)
setOffset
Link copied to clipboard
public void setOffset(int offset)
setOrder
Link copied to clipboard
public void setOrder(SearchMessageParams.Order order)
setTimeRange
Link copied to clipboard
public void setTimeRange(TimeRange timeRange)
toString
Link copied to clipboard
public String toString()
writeToParcel
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)