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;
61 this.startTime = startTime;
69 this.endTime = endTime;
93 this.messageTypes = messageTypes;
97 return messageSubTypes;
101 this.messageSubTypes = messageSubTypes;
105 return allMessageTypes;
109 this.allMessageTypes = allMessageTypes;
113 return searchContent;
117 this.searchContent = searchContent;
125 this.fromIds = fromIds;
129 return enableContentTransfer;
133 this.enableContentTransfer = enableContentTransfer;
138 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()
List< Integer > getMessageSubTypes()
void setEndTime(long endTime)