NIMSDK-AOS  9.16.0
QChatCreateServerRoleParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
5 
9 public class QChatCreateServerRoleParam extends QChatAntiSpamConfigParam{
10 
14  @NonNull
15  private final Long serverId;
19  @NonNull
20  private final String name;
24  @NonNull
25  private final QChatRoleType type;
26 
30  private String icon;
34  private String extension;
38  private Long priority;
39 
46  public QChatCreateServerRoleParam(long serverId, @NonNull String name, @NonNull QChatRoleType type) {
47  this.serverId = serverId;
48  this.name = name;
49  this.type = type;
50  }
51 
56  @NonNull
57  public Long getServerId() {
58  return serverId;
59  }
60 
65  @NonNull
66  public String getName() {
67  return name;
68  }
69 
74  @NonNull
76  return type;
77  }
78 
83  public String getIcon() {
84  return icon;
85  }
86 
91  public void setIcon(String icon) {
92  this.icon = icon;
93  }
94 
99  public String getExtension() {
100  return extension;
101  }
102 
107  public void setExtension(String extension) {
108  this.extension = extension;
109  }
110 
115  public Long getPriority() {
116  return priority;
117  }
118 
123  public void setPriority(Long priority) {
124  this.priority = priority;
125  }
126 }
void setExtension(String extension)
设置身份组扩展字段
QChatCreateServerRoleParam(long serverId, @NonNull String name, @NonNull QChatRoleType type)