NIMSDK-AOS  10.9.50
QChatGetServerRolesParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
5 /**
6  * "查询Server身份组"接口入参
7  */
9 
10  /**
11  * 服务器Id
12  */
13  @NonNull
14  private final Long serverId;
15  /**
16  * 查询锚点优先级,填0从最高优先级开始查询
17  */
18  @NonNull
19  private final Long priority;
20  /**
21  * 查询数量限制
22  */
23  @NonNull
24  private final Integer limit;
25  /**
26  * 以channelId的名义查询,可选,如果传了,则只需要有该channel的管理角色权限即可,否则需要有server的管理权限
27  */
28  private Long channelId;
29 
30  /**
31  * 以categoryId的名义查询,可选,如果传了,则只需要有该频道分组的管理角色权限即可,否则需要有server的管理权限
32  */
33  private Long categoryId;
34 
35  /**
36  *
37  * @param serverId 服务器Id
38  * @param priority 查询锚点优先级,填0从最高优先级开始查询
39  * @param limit 查询数量限制
40  */
41  public QChatGetServerRolesParam(long serverId, long priority, int limit) {
42  this.serverId = serverId;
43  this.priority = priority;
44  this.limit = limit;
45  }
46  /**
47  * 获取服务器id
48  * @return
49  */
50  @NonNull
51  public Long getServerId() {
52  return serverId;
53  }
54 
55  /**
56  * 获取查询数量限制
57  * @return
58  */
59  @NonNull
60  public Integer getLimit() {
61  return limit;
62  }
63 
64  /**
65  * 设置查询锚点优先级
66  * @return
67  */
68  public Long getPriority() {
69  return priority;
70  }
71 
72  /**
73  * 获取频道Id
74  * @return
75  */
76  public Long getChannelId() {
77  return channelId;
78  }
79 
80  /**
81  * 设置频道Id,可选,如果传了,则只需要有该channel的管理角色权限即可,否则需要有server的管理权限
82  * @param channelId
83  */
84  public void setChannelId(Long channelId) {
85  this.channelId = channelId;
86  }
87 
88  /**
89  * 获取频道分组Id
90  * @return
91  */
92  public Long getCategoryId() {
93  return categoryId;
94  }
95 
96  /**
97  * 设置频道分组Id,可选,如果传了,则只需要有该频道分组的管理角色权限即可,否则需要有server的管理权限
98  * @param categoryId
99  */
100  public void setCategoryId(Long categoryId) {
101  this.categoryId = categoryId;
102  }
103 }
void setChannelId(Long channelId)
设置频道Id,可选,如果传了,则只需要有该channel的管理角色权限即可,否则需要有server的管理权限 ...
void setCategoryId(Long categoryId)
设置频道分组Id,可选,如果传了,则只需要有该频道分组的管理角色权限即可,否则需要有server的管理权限 ...