NIMSDK-AOS  10.9.50
QChatUpdateServerRoleParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
6 import java.util.Map;
7 
8 /**
9  * "修改Server身份组信息"接口入参
10  */
11 public class QChatUpdateServerRoleParam extends QChatAntiSpamConfigParam{
12 
13  /**
14  * 服务器id,必填
15  */
16  @NonNull
17  private final Long serverId;
18  /**
19  * 身份组id,必填
20  */
21  @NonNull
22  private final Long roleId;
23  /**
24  * 身份组名称
25  */
26  private String name;
27  /**
28  * 身份组图片url
29  */
30  private String icon;
31  /**
32  * 身份组扩展字段
33  */
34  private String ext;
35  /**
36  * 要操作的权限列表,最多操作50个
37  */
38  private Map<QChatRoleResource, QChatRoleOption> resourceAuths;
39  /**
40  * 优先级
41  */
42  private Long priority;
43 
44  /**
45  *
46  * @param serverId 服务器id
47  * @param roleId 身份组id
48  */
49  public QChatUpdateServerRoleParam(long serverId, long roleId) {
50  this.serverId = serverId;
51  this.roleId = roleId;
52  }
53 
54  /**
55  * 获取服务器ID
56  */
57  @NonNull
58  public Long getServerId() {
59  return serverId;
60  }
61 
62  /**
63  * 获取服务器身份组ID
64  */
65  @NonNull
66  public Long getRoleId() {
67  return roleId;
68  }
69 
70  /**
71  * 获取身份组名称
72  */
73  public String getName() {
74  return name;
75  }
76 
77  /**
78  * 设置身份组名称
79  * @param name
80  */
81  public void setName(String name) {
82  this.name = name;
83  }
84 
85  /**
86  * 获取身份组图片url
87  */
88  public String getIcon() {
89  return icon;
90  }
91 
92  /**
93  * 设置身份组图片url
94  * @param icon
95  */
96  public void setIcon(String icon) {
97  this.icon = icon;
98  }
99 
100  /**
101  * 获取身份组扩展字段
102  */
103  public String getExt() {
104  return ext;
105  }
106 
107  /**
108  * 设置身份组扩展字段
109  * @param ext
110  */
111  public void setExt(String ext) {
112  this.ext = ext;
113  }
114 
115  /**
116  * 获取要操作的权限列表
117  */
118  public Map<QChatRoleResource, QChatRoleOption> getResourceAuths() {
119  return resourceAuths;
120  }
121 
122  /**
123  * 设置要操作的权限列表,最多操作50个
124  * @param resourceAuths
125  */
126  public void setResourceAuths(
127  Map<QChatRoleResource, QChatRoleOption> resourceAuths) {
128  this.resourceAuths = resourceAuths;
129  }
130 
131  /**
132  * 获取优先级
133  */
134  public Long getPriority() {
135  return priority;
136  }
137 
138  /**
139  * 设置获取优先级
140  * @param priority
141  */
142  public void setPriority(Long priority) {
143  this.priority = priority;
144  }
145 }
Map< QChatRoleResource, QChatRoleOption > getResourceAuths()
获取要操作的权限列表
void setResourceAuths(Map< QChatRoleResource, QChatRoleOption > resourceAuths)
设置要操作的权限列表,最多操作50个