NIMSDK-AOS  9.21.10
QChatGetInviteApplyRecordOfSelfParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 /**
4  * "查询我的申请邀请记录接口" 入参
5  */
7  /**
8  * 开始时间戳
9  */
10  private Long fromTime;
11  /**
12  * 结束时间戳
13  */
14  private Long toTime;
15  /**
16  * 是否逆序,同历史消息查询,默认从现在查到过去
17  */
18  private Boolean reverse;
19  /**
20  * limit,默认100,最大100
21  */
22  private Integer limit;
23  /**
24  * 排除id
25  */
26  private Long excludeRecordId;
27 
29  }
30 
31  /**
32  *
33  * @param fromTime 开始时间戳
34  * @param toTime 结束时间戳
35  * @param reverse 是否逆序,同历史消息查询,默认从现在查到过去
36  * @param limit 查询最大限制数,默认100,最大100
37  * @param excludeRecordId 排除id
38  */
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 
47  /**
48  * 获取开始时间戳
49  * @return
50  */
51  public Long getFromTime() {
52  return fromTime;
53  }
54 
55  /**
56  * 设置开始时间戳
57  * @param fromTime
58  */
59  public void setFromTime(Long fromTime) {
60  this.fromTime = fromTime;
61  }
62 
63  /**
64  * 获取结束时间戳
65  * @return
66  */
67  public Long getToTime() {
68  return toTime;
69  }
70 
71  /**
72  * 设置结束时间戳
73  * @param toTime
74  */
75  public void setToTime(Long toTime) {
76  this.toTime = toTime;
77  }
78 
79  /**
80  * 是否逆序
81  * @return
82  */
83  public Boolean getReverse() {
84  return reverse;
85  }
86 
87  /**
88  * 设置是否逆序,同历史消息查询,默认从现在查到过去
89  * @param reverse
90  */
91  public void setReverse(Boolean reverse) {
92  this.reverse = reverse;
93  }
94 
95  /**
96  * 获取最大数量限制
97  * @return
98  */
99  public Integer getLimit() {
100  return limit;
101  }
102 
103  /**
104  * 设置最大数量限制,默认100,最大100
105  * @param limit
106  */
107  public void setLimit(Integer limit) {
108  this.limit = limit;
109  }
110 
111  /**
112  * 获取排除RecordId
113  * @return
114  */
115  public Long getExcludeRecordId() {
116  return excludeRecordId;
117  }
118 
119  /**
120  * 设置排除RecordId,用于分页去重
121  * @param excludeRecordId
122  */
123  public void setExcludeRecordId(Long excludeRecordId) {
124  this.excludeRecordId = excludeRecordId;
125  }
126 
127  /**
128  * 参数是否合法
129  * @return
130  */
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)