NIMSDK-AOS  9.16.0
QChatUpdateServerRoleParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
6 import java.util.Map;
7 
11 public class QChatUpdateServerRoleParam extends QChatAntiSpamConfigParam{
12 
16  @NonNull
17  private final Long serverId;
21  @NonNull
22  private final Long roleId;
26  private String name;
30  private String icon;
34  private String ext;
38  private Map<QChatRoleResource, QChatRoleOption> resourceAuths;
42  private Long priority;
43 
49  public QChatUpdateServerRoleParam(long serverId, long roleId) {
50  this.serverId = serverId;
51  this.roleId = roleId;
52  }
53 
57  @NonNull
58  public Long getServerId() {
59  return serverId;
60  }
61 
65  @NonNull
66  public Long getRoleId() {
67  return roleId;
68  }
69 
73  public String getName() {
74  return name;
75  }
76 
81  public void setName(String name) {
82  this.name = name;
83  }
84 
88  public String getIcon() {
89  return icon;
90  }
91 
96  public void setIcon(String icon) {
97  this.icon = icon;
98  }
99 
103  public String getExt() {
104  return ext;
105  }
106 
111  public void setExt(String ext) {
112  this.ext = ext;
113  }
114 
118  public Map<QChatRoleResource, QChatRoleOption> getResourceAuths() {
119  return resourceAuths;
120  }
121 
126  public void setResourceAuths(
127  Map<QChatRoleResource, QChatRoleOption> resourceAuths) {
128  this.resourceAuths = resourceAuths;
129  }
130 
134  public Long getPriority() {
135  return priority;
136  }
137 
142  public void setPriority(Long priority) {
143  this.priority = priority;
144  }
145 }
Map< QChatRoleResource, QChatRoleOption > getResourceAuths()
获取要操作的权限列表
void setResourceAuths(Map< QChatRoleResource, QChatRoleOption > resourceAuths)
设置要操作的权限列表,最多操作50个