NIMSDK-AOS  9.20.10
QChatGetChannelsInCategoryByPageParam.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 categoryId;
20  /**
21  * 查询锚点时间戳
22  */
23  @NonNull
24  private final Long timeTag;
25  /**
26  * 查询数量限制
27  */
28  private Integer limit;
29 
30  /**
31  *
32  * @param serverId 服务器Id
33  * @param categoryId 频道分组id
34  * @param timeTag 查询锚点时间戳
35  */
36  public QChatGetChannelsInCategoryByPageParam(long serverId,long categoryId, long timeTag) {
37  this.serverId = serverId;
38  this.categoryId = categoryId;
39  this.timeTag = timeTag;
40  }
41 
42  /**
43  * 获取服务器id
44  * @return
45  */
46  @NonNull
47  public Long getServerId() {
48  return serverId;
49  }
50 
51  /**
52  * 获取频道分组id
53  * @return
54  */
55  @NonNull
56  public Long getCategoryId() {
57  return categoryId;
58  }
59 
60  /**
61  * 获取查询时间戳
62  * @return
63  */
64  @NonNull
65  public Long getTimeTag() {
66  return timeTag;
67  }
68 
69  /**
70  * 获取查询数量限制
71  * @return
72  */
73  public Integer getLimit() {
74  return limit;
75  }
76 
77  /**
78  * 设置查询数量限制,默认100
79  * @param limit
80  */
81  public void setLimit(Integer limit) {
82  this.limit = limit;
83  }
84 }