1 package com.netease.nimlib.sdk.msg.model;
14 private static final int DEFAULT_LIMIT = 100;
18 private long startTime = 0;
22 private long endTime = 0;
26 private int limit = DEFAULT_LIMIT;
34 private List<MsgTypeEnum> messageTypes = null;
38 private List<Integer> messageSubTypes = null;
42 private boolean allMessageTypes =
false;
46 private String searchContent = null;
50 private List<String> fromIds;
54 private boolean enableContentTransfer =
true;
78 this.startTime = startTime;
86 this.endTime = endTime;
110 this.messageTypes = messageTypes;
114 return messageSubTypes;
118 this.messageSubTypes = messageSubTypes;
122 return allMessageTypes;
126 this.allMessageTypes = allMessageTypes;
130 return searchContent;
134 this.searchContent = searchContent;
142 this.fromIds = fromIds;
146 return enableContentTransfer;
150 this.enableContentTransfer = enableContentTransfer;
155 return "MsgSearchOption{" +
"startTime=" + startTime +
", endTime=" + endTime +
", limit=" + limit +
", order=" + order +
", messageTypes=" + messageTypes +
", messageSubTypes=" + messageSubTypes +
", allMessageTypes=" + allMessageTypes +
", searchContent='" + searchContent +
'\'' +
", fromIds=" + fromIds +
", enableContentTransfer=" + enableContentTransfer +
'}';
void setStartTime(long startTime)
List< String > getFromIds()
boolean isAllMessageTypes()
String getSearchContent()
List< MsgTypeEnum > getMessageTypes()
void setMessageTypes(List< MsgTypeEnum > messageTypes)
boolean isEnableContentTransfer()
void setEnableContentTransfer(boolean enableContentTransfer)
void setFromIds(List< String > fromIds)
void setMessageSubTypes(List< Integer > messageSubTypes)
void setAllMessageTypes(boolean allMessageTypes)
void setSearchContent(String searchContent)
void setOrder(SearchOrderEnum order)
SearchOrderEnum getOrder()
MsgSearchOption(MsgSearchOption option)
List< Integer > getMessageSubTypes()
void setEndTime(long endTime)