NIMSDK-AOS  9.16.0
QChatGetInviteApplyRecordOfSelfParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
10  private Long fromTime;
14  private Long toTime;
18  private Boolean reverse;
22  private Integer limit;
26  private Long excludeRecordId;
27 
29  }
30 
39  public QChatGetInviteApplyRecordOfSelfParam(Long fromTime, Long toTime, Boolean reverse, Integer limit, Long excludeRecordId) {
40  this.fromTime = fromTime;
41  this.toTime = toTime;
42  this.reverse = reverse;
43  this.limit = limit;
44  this.excludeRecordId = excludeRecordId;
45  }
46 
51  public Long getFromTime() {
52  return fromTime;
53  }
54 
59  public void setFromTime(Long fromTime) {
60  this.fromTime = fromTime;
61  }
62 
67  public Long getToTime() {
68  return toTime;
69  }
70 
75  public void setToTime(Long toTime) {
76  this.toTime = toTime;
77  }
78 
83  public Boolean getReverse() {
84  return reverse;
85  }
86 
91  public void setReverse(Boolean reverse) {
92  this.reverse = reverse;
93  }
94 
99  public Integer getLimit() {
100  return limit;
101  }
102 
107  public void setLimit(Integer limit) {
108  this.limit = limit;
109  }
110 
115  public Long getExcludeRecordId() {
116  return excludeRecordId;
117  }
118 
123  public void setExcludeRecordId(Long excludeRecordId) {
124  this.excludeRecordId = excludeRecordId;
125  }
126 
131  public boolean isValid() {
132  if (fromTime != null && fromTime < 0) {
133  return false;
134  }
135  if (toTime != null && toTime < 0) {
136  return false;
137  }
138  if (limit != null && limit < 0) {
139  return false;
140  }
141  return true;
142  }
143 
144  @Override
145  public String toString() {
146  return "QChatGetInviteApplyRecordOfSelfParam{" +
147  "fromTime=" + fromTime +
148  ", toTime=" + toTime +
149  ", reverse=" + reverse +
150  ", limit=" + limit +
151  ", excludeRecordId=" + excludeRecordId +
152  '}';
153  }
154 }
void setExcludeRecordId(Long excludeRecordId)
设置排除RecordId,用于分页去重
void setLimit(Integer limit)
设置最大数量限制,默认100,最大100
void setReverse(Boolean reverse)
设置是否逆序,同历史消息查询,默认从现在查到过去
QChatGetInviteApplyRecordOfSelfParam(Long fromTime, Long toTime, Boolean reverse, Integer limit, Long excludeRecordId)