NIMSDK-AOS  10.6.0
QChatCheckPermissionsParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 import java.util.List;
6 
11 
15  @NonNull
16  private final Long serverId;
17 
21  private final Long channelId;
25  private final List<QChatRoleResource> permissions;
26 
32  public QChatCheckPermissionsParam(long serverId, List<QChatRoleResource> permissions) {
33  this.serverId = serverId;
34  this.channelId = null;
35  this.permissions = permissions;
36  }
37 
44  public QChatCheckPermissionsParam(long serverId, long channelId, List<QChatRoleResource> permissions) {
45  this.serverId = serverId;
46  this.channelId = channelId;
47  this.permissions = permissions;
48  }
49 
54  @NonNull
55  public Long getServerId() {
56  return serverId;
57  }
58 
63  public Long getChannelId() {
64  return channelId;
65  }
66 
71  public List<QChatRoleResource> getPermissions() {
72  return permissions;
73  }
74 }
List< QChatRoleResource > getPermissions()
身份组权限资源项列表
QChatCheckPermissionsParam(long serverId, List< QChatRoleResource > permissions)
查询server权限(此时不需要传channelId)
QChatCheckPermissionsParam(long serverId, long channelId, List< QChatRoleResource > permissions)
查询权限