NIMSDK-AOS  10.6.0
MsgSearchOption.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.msg.model;
2 
4 
5 import java.util.List;
6 
10 public class MsgSearchOption {
14  private static final int DEFAULT_LIMIT = 100;
18  private long startTime = 0;
22  private long endTime = 0;
26  private int limit = DEFAULT_LIMIT;
30  private SearchOrderEnum order = SearchOrderEnum.DESC;
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;
55 
56  public long getStartTime() {
57  return startTime;
58  }
59 
60  public void setStartTime(long startTime) {
61  this.startTime = startTime;
62  }
63 
64  public long getEndTime() {
65  return endTime;
66  }
67 
68  public void setEndTime(long endTime) {
69  this.endTime = endTime;
70  }
71 
72  public int getLimit() {
73  return limit;
74  }
75 
76  public void setLimit(int limit) {
77  this.limit = limit;
78  }
79 
81  return order;
82  }
83 
84  public void setOrder(SearchOrderEnum order) {
85  this.order = order;
86  }
87 
88  public List<MsgTypeEnum> getMessageTypes() {
89  return messageTypes;
90  }
91 
92  public void setMessageTypes(List<MsgTypeEnum> messageTypes) {
93  this.messageTypes = messageTypes;
94  }
95 
96  public List<Integer> getMessageSubTypes() {
97  return messageSubTypes;
98  }
99 
100  public void setMessageSubTypes(List<Integer> messageSubTypes) {
101  this.messageSubTypes = messageSubTypes;
102  }
103 
104  public boolean isAllMessageTypes() {
105  return allMessageTypes;
106  }
107 
108  public void setAllMessageTypes(boolean allMessageTypes) {
109  this.allMessageTypes = allMessageTypes;
110  }
111 
112  public String getSearchContent() {
113  return searchContent;
114  }
115 
116  public void setSearchContent(String searchContent) {
117  this.searchContent = searchContent;
118  }
119 
120  public List<String> getFromIds() {
121  return fromIds;
122  }
123 
124  public void setFromIds(List<String> fromIds) {
125  this.fromIds = fromIds;
126  }
127 
128  public boolean isEnableContentTransfer() {
129  return enableContentTransfer;
130  }
131 
132  public void setEnableContentTransfer(boolean enableContentTransfer) {
133  this.enableContentTransfer = enableContentTransfer;
134  }
135 
136  @Override
137  public String toString() {
138  return "MsgSearchOption{" + "startTime=" + startTime + ", endTime=" + endTime + ", limit=" + limit + ", order=" + order + ", messageTypes=" + messageTypes + ", messageSubTypes=" + messageSubTypes + ", allMessageTypes=" + allMessageTypes + ", searchContent='" + searchContent + '\'' + ", fromIds=" + fromIds + ", enableContentTransfer=" + enableContentTransfer + '}';
139  }
140 }
void setMessageTypes(List< MsgTypeEnum > messageTypes)
void setEnableContentTransfer(boolean enableContentTransfer)
void setMessageSubTypes(List< Integer > messageSubTypes)