NIMSDK-AOS  10.9.50
QChatAddMemberRoleParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 
5 /**
6  * "为某个人定制某频道的权限"接口入参
7  */
8 public class QChatAddMemberRoleParam {
9 
10  /**
11  * 服务器id,必填
12  */
13  @NonNull
14  private final Long serverId;
15 
16  /**
17  * 频道id,必填
18  */
19  @NonNull
20  private final Long channelId;
21 
22  /**
23  * 用户账号,必填
24  */
25  @NonNull
26  private final String accid;
27 
28  /**
29  *
30  * @param serverId 服务器id
31  * @param channelId 频道id
32  * @param accid 用户账号
33  */
34  public QChatAddMemberRoleParam(long serverId, long channelId, @NonNull String accid) {
35  this.serverId = serverId;
36  this.channelId = channelId;
37  this.accid = accid;
38  }
39 
40  /**
41  * 获取服务器ID
42  * @return
43  */
44  @NonNull
45  public Long getServerId() {
46  return serverId;
47  }
48 
49  /**
50  * 获取频道ID
51  * @return
52  */
53  @NonNull
54  public Long getChannelId() {
55  return channelId;
56  }
57 
58  /**
59  * 获取用户accid
60  * @return
61  */
62  @NonNull
63  public String getAccid() {
64  return accid;
65  }
66 }
"为某个人定制某频道的权限"接口入参
QChatAddMemberRoleParam(long serverId, long channelId,@NonNull String accid)