NIMSDK-AOS  9.19.0
QChatCheckPermissionsResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
5 import java.io.Serializable;
6 import java.util.Map;
7 
8 /**
9  * 查询自己是否拥有某些权限 结果
10  */
11 public class QChatCheckPermissionsResult implements Serializable {
12 
13  /**
14  * 权限结果
15  */
16  private final Map<QChatRoleResource, QChatRoleOption> permissions;
17 
19  Map<QChatRoleResource, QChatRoleOption> permissions) {
20  this.permissions = permissions;
21  }
22 
23  /**
24  * 权限结果
25  * @return
26  */
27  public Map<QChatRoleResource, QChatRoleOption> getPermissions() {
28  return permissions;
29  }
30 
31  @Override
32  public String toString() {
33  return "QChatCheckPermissionsResult{" +
34  "permissions=" + permissions +
35  '}';
36  }
37 }
Map< QChatRoleResource, QChatRoleOption > getPermissions()
权限结果
QChatCheckPermissionsResult(Map< QChatRoleResource, QChatRoleOption > permissions)