NIMSDK-AOS  9.19.0
QChatUpdateServerRolePrioritiesResult.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.result;
2 
3 import androidx.annotation.NonNull;
4 
5 import java.io.Serializable;
6 import java.util.HashMap;
7 import java.util.Map;
8 
9 public class QChatUpdateServerRolePrioritiesResult implements Serializable {
10  /**
11  * 服务器身份组Id和服务器身份组权限构成的Map
12  */
13  @NonNull
14  private final Map<Long, Long> roleIdPriorityMap;
15 
16  public QChatUpdateServerRolePrioritiesResult(Map<Long, Long> roleIdPriorityMap) {
17  if (roleIdPriorityMap == null) {
18  this.roleIdPriorityMap = new HashMap<>();
19  } else {
20  this.roleIdPriorityMap = roleIdPriorityMap;
21  }
22  }
23 
24  /**
25  * 获取更新后的服务器身份组Id和服务器身份组权限构成的Map
26  * @return
27  */
28  @NonNull
29  public Map<Long, Long> getRoleIdPriorityMap() {
30  return roleIdPriorityMap;
31  }
32 
33  @Override
34  public String toString() {
35  return "QChatUpdateServerRolePrioritiesResult{" +
36  "roleIdPriorityMap=" + roleIdPriorityMap +
37  '}';
38  }
39 }
Map< Long, Long > getRoleIdPriorityMap()
获取更新后的服务器身份组Id和服务器身份组权限构成的Map