NIMSDK-AOS  10.5.0
QChatCheckPermissionParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 
10 
14  @NonNull
15  private final Long serverId;
16 
20  private final Long channelId;
24  private final QChatRoleResource permission;
25 
31  public QChatCheckPermissionParam(long serverId, QChatRoleResource permission) {
32  this.serverId = serverId;
33  this.channelId = null;
34  this.permission = permission;
35  }
36 
43  public QChatCheckPermissionParam(long serverId, long channelId, QChatRoleResource permission) {
44  this.serverId = serverId;
45  this.channelId = channelId;
46  this.permission = permission;
47  }
48 
53  @NonNull
54  public Long getServerId() {
55  return serverId;
56  }
57 
62  public Long getChannelId() {
63  return channelId;
64  }
65 
71  return permission;
72  }
73 }
QChatCheckPermissionParam(long serverId, QChatRoleResource permission)
查询server权限(此时不需要传channelId)
QChatRoleResource getPermission()
获取身份组权限资源项
QChatCheckPermissionParam(long serverId, long channelId, QChatRoleResource permission)
查询权限
"查询自己是否拥有某个权限"接口入参