NIMSDK-AOS  10.9.10
QChatGetMentionedMeMessagesParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 /**
4  * "分页查询指定频道@我的消息"接口入参
5  */
7 
8  /**
9  * 服务器id
10  */
11  private long serverId;
12  /**
13  * 频道id
14  */
15  private long channelId;
16  /**
17  * 查询时间戳
18  */
19  private Long timetag;
20  /**
21  * 查询数量限制,默认200
22  */
23  private Integer limit;
24 
25  /**
26  *
27  * @param serverId 服务器id
28  * @param channelId 频道id
29  */
30  public QChatGetMentionedMeMessagesParam(long serverId, long channelId) {
31  this.serverId = serverId;
32  this.channelId = channelId;
33  }
34 
35  /**
36  * 设置查询数量限制
37  * @param limit
38  */
39  public void setLimit(Integer limit) {
40  this.limit = limit;
41  }
42 
43  /**
44  * 设置查询时间戳
45  * @param timetag
46  */
47  public void setTimetag(Long timetag) {
48  this.timetag = timetag;
49  }
50 
51  /**
52  * 获取服务器id
53  * @return
54  */
55  public long getServerId() {
56  return serverId;
57  }
58 
59  /**
60  * 获取频道id
61  * @return
62  */
63  public long getChannelId() {
64  return channelId;
65  }
66 
67  /**
68  * 获取查询时间戳
69  * @return
70  */
71  public Long getTimetag() {
72  return timetag;
73  }
74 
75  /**
76  * 获取查询数量限制
77  * @return
78  */
79  public Integer getLimit() {
80  return limit;
81  }
82 
83  /**
84  * 是否合法
85  */
86  public boolean isValid() {
87  if (serverId <= 0 || channelId <= 0) {
88  return false;
89  }
90  return true;
91  }
92 }