1 package com.netease.nimlib.sdk.qchat.param;
3 import androidx.annotation.NonNull;
16 private String keyword;
20 private final long serverId;
25 private Long channelId;
30 private String fromAccount;
35 private Long fromTime;
46 private final List<MsgTypeEnum> msgTypes;
50 private List<Integer> subTypes;
59 private Boolean order;
63 private Integer limit;
72 private String cursor;
81 this.serverId = serverId;
82 this.msgTypes = msgTypes;
102 @NonNull List<MsgTypeEnum> msgTypes, List<Integer> subTypes, Boolean isIncludeSelf, Boolean order, Integer limit,
104 this.keyword = keyword;
105 this.serverId = serverId;
106 this.channelId = channelId;
107 this.fromAccount = fromAccount;
108 this.fromTime = fromTime;
109 this.toTime = toTime;
110 this.msgTypes = msgTypes;
111 this.subTypes = subTypes;
116 this.cursor = cursor;
132 this.keyword = keyword;
156 this.channelId = channelId;
172 this.fromAccount = fromAccount;
188 this.fromTime = fromTime;
204 this.toTime = toTime;
230 this.subTypes = subTypes;
246 isIncludeSelf = includeSelf;
310 this.cursor = cursor;
void setLimit(Integer limit)
设置检索返回的最大记录数,最大和默认都是100
QChatSearchMsgByPageParam(long serverId, @NonNull List< MsgTypeEnum > msgTypes)
Long getChannelId()
获取频道Id
String getCursor()
获取查询游标,下次查询的起始位置,第一页设置为null,查询下一页是传入上一页返回的cursor ...
void setSubTypes(List< Integer > subTypes)
设置搜索的消息子类型列表
String getFromAccount()
获取消息发送者accid
long getServerId()
获取服务器Id
Boolean isIncludeSelf()
获取是否包含自己发送的消息
void setIncludeSelf(Boolean includeSelf)
设置是否包含自己发送的消息
String getKeyword()
获取检索关键字
List< MsgTypeEnum > getMsgTypes()
获取搜索的消息类型列表
void setFromAccount(String fromAccount)
设置消息发送者accid
void setKeyword(String keyword)
设置检索关键字
QChatMessageSearchSortEnum getSort()
获取排序条件
void setSort(QChatMessageSearchSortEnum sort)
设置排序条件
Boolean getOrder()
获取排序规则 true:正序;false:倒序(默认)
Integer getLimit()
获取检索返回的最大记录数,最大和默认都是100
void setCursor(String cursor)
设置查询游标,下次查询的起始位置,第一页设置为null,查询下一页是传入上一页返回的cursor ...
Long getFromTime()
获取查询开始时间
void setFromTime(Long fromTime)
设置查询开始时间
void setOrder(Boolean order)
设置排序规则 true:正序;false:倒序(默认)
List< Integer > getSubTypes()
获取搜索的消息子类型列表
QChatSearchMsgByPageParam(String keyword, long serverId, Long channelId, String fromAccount, Long fromTime, Long toTime, @NonNull List< MsgTypeEnum > msgTypes, List< Integer > subTypes, Boolean isIncludeSelf, Boolean order, Integer limit, QChatMessageSearchSortEnum sort, String cursor)
void setChannelId(Long channelId)
设置频道Id
void setToTime(Long toTime)
设置查询结束时间