1 package com.netease.nimlib.sdk.msg.model;
3 import androidx.annotation.Nullable;
9 private final String keyword;
12 private final long fromTime;
15 private final long toTime;
18 private int msgLimit = 20;
24 private List<String> p2pList;
27 private List<String> teamList;
30 private List<String> senderList;
33 private List<MsgTypeEnum> msgTypeList;
36 private List<Integer> msgSubtypeList;
45 this.keyword = keyword;
46 this.fromTime = fromTime;
88 this.msgLimit = msgLimit;
121 this.p2pList = p2pList;
138 this.teamList = teamList;
155 this.senderList = senderList;
172 this.msgTypeList = msgTypeList;
181 return msgSubtypeList;
189 this.msgSubtypeList = msgSubtypeList;
194 return "MsgFullKeywordSearchConfig{" +
195 "keyword='" + keyword +
'\'' +
196 ", fromTime=" + fromTime +
197 ", toTime=" + toTime +
198 ", msgLimit=" + msgLimit +
200 ", p2pList=" + p2pList +
201 ", teamList=" + teamList +
202 ", senderList=" + senderList +
203 ", msgTypeList=" + msgTypeList +
204 ", msgSubtypeList=" + msgSubtypeList +
List< String > getTeamList()
获取群会话ID列表
List< String > getP2pList()
获取P2P 会话ID列表
void setMsgSubtypeList(@Nullable List< Integer > msgSubtypeList)
设置消息子类型列表
void setOrder(SearchOrderEnum order)
设置消息排序规则
void setSenderList(@Nullable List< String > senderList)
设置发送者账户列表
void setTeamList(@Nullable List< String > teamList)
设置群会话ID列表
MsgTimingFullKeywordSearchConfig(String keyword, long fromTime, long toTime)
void setMsgLimit(int msgLimit)
设置最大查询的消息数量
SearchOrderEnum getOrder()
获取消息排序规则
List< Integer > getMsgSubtypeList()
获取消息子类型列表
int getMsgLimit()
获取最大查询的消息数量
void setP2pList(@Nullable List< String > p2pList)
设置P2P 会话ID列表
List< MsgTypeEnum > getMsgTypeList()
获取消息类型列表
void setMsgTypeList(@Nullable List< MsgTypeEnum > msgTypeList)
设置消息类型列表
List< String > getSenderList()
获取发送者账户列表