NIMSDK-AOS  9.20.10
QChatGetChannelMembersByPageParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
5 /**
6  * "查询频道成员列表"接口入参
7  */
9 
10  /**
11  * 服务器id
12  */
13  @NonNull
14  private final Long serverId;
15  /**
16  * 频道id
17  */
18  @NonNull
19  private final Long channelId;
20  /**
21  * 查询时间戳,如果传0表示当前时间
22  */
23  @NonNull
24  private final Long timeTag;
25  /**
26  * 查询数量限制,默认100
27  */
28  private Integer limit;
29 
30  /**
31  *
32  * @param serverId 服务器id
33  * @param channelId 频道id
34  * @param timeTag 查询时间戳,如果要查当前时间,请务必传0
35  */
36  public QChatGetChannelMembersByPageParam(@NonNull Long serverId, @NonNull Long channelId, @NonNull Long timeTag) {
37  this.serverId = serverId;
38  this.channelId = channelId;
39  this.timeTag = timeTag;
40  }
41 
42  /**
43  * 设置查询数量限制
44  * @param limit
45  */
46  public void setLimit(Integer limit) {
47  this.limit = limit;
48  }
49 
50  /**
51  * 获取服务器id
52  * @return
53  */
54  @NonNull
55  public Long getServerId() {
56  return serverId;
57  }
58 
59  /**
60  * 获取频道id
61  * @return
62  */
63  @NonNull
64  public Long getChannelId() {
65  return channelId;
66  }
67 
68  /**
69  * 获取查询时间戳
70  * @return
71  */
72  @NonNull
73  public Long getTimeTag() {
74  return timeTag;
75  }
76 
77  /**
78  * 获取查询数量限制
79  * @return
80  */
81  public Integer getLimit() {
82  return limit;
83  }
84 }
QChatGetChannelMembersByPageParam(@NonNull Long serverId,@NonNull Long channelId,@NonNull Long timeTag)