NIMSDK-AOS  9.21.10
QChatGetServerRolesByAccidParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
5 /**
6  * "通过accid查询服务器身份组列表"接口入参
7  */
9 
10  /**
11  * 服务器Id
12  */
13  @NonNull
14  private final Long serverId;
15  /**
16  * 用户账号
17  */
18  @NonNull
19  private final String accid;
20  /**
21  * 查询锚点时间戳
22  */
23  @NonNull
24  private final Long timeTag;
25  /**
26  * 查询数量限制
27  */
28  @NonNull
29  private final Integer limit;
30 
31  /**
32  *
33  * @param serverId 服务器Id
34  * @param accid 用户账号
35  * @param timeTag 查询锚点时间戳
36  * @param limit 查询数量限制
37  */
38  public QChatGetServerRolesByAccidParam(long serverId, @NonNull String accid, long timeTag, int limit) {
39  this.serverId = serverId;
40  this.accid = accid;
41  this.timeTag = timeTag;
42  this.limit = limit;
43  }
44 
45  /**
46  * 获取服务器id
47  * @return
48  */
49  @NonNull
50  public Long getServerId() {
51  return serverId;
52  }
53 
54  /**
55  * 获取用户accid
56  * @return
57  */
58  @NonNull
59  public String getAccid() {
60  return accid;
61  }
62 
63  /**
64  * 获取查询时间戳
65  * @return
66  */
67  @NonNull
68  public Long getTimeTag() {
69  return timeTag;
70  }
71 
72  /**
73  * 获取查询数量限制
74  * @return
75  */
76  @NonNull
77  public Integer getLimit() {
78  return limit;
79  }
80 }
QChatGetServerRolesByAccidParam(long serverId,@NonNull String accid, long timeTag, int limit)