NIMSDK-AOS  10.5.0
QChatUpdateServerParam.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.qchat.param;
2 
3 import androidx.annotation.NonNull;
4 import androidx.annotation.Nullable;
5 
8 
12 public class QChatUpdateServerParam extends QChatAntiSpamConfigParam{
13 
17  @NonNull
18  private final Long serverId;
22  private String name;
26  private String icon;
30  private String custom;
34  private QChatInviteMode inviteMode;
38  private QChatApplyJoinMode applyMode;
39 
43  @Nullable
44  private Integer searchType;
45 
49  @Nullable
50  private Boolean searchEnable;
51 
57  public QChatUpdateServerParam(long serverId) {
58  this.serverId = serverId;
59  }
60 
65  @NonNull
66  public Long getServerId() {
67  return serverId;
68  }
69 
74  public String getName() {
75  return name;
76  }
77 
82  public void setName(String name) {
83  this.name = name;
84  }
85 
90  public String getIcon() {
91  return icon;
92  }
93 
98  public void setIcon(String icon) {
99  this.icon = icon;
100  }
101 
106  public String getCustom() {
107  return custom;
108  }
109 
114  public void setCustom(String custom) {
115  this.custom = custom;
116  }
117 
123  return inviteMode;
124  }
125 
130  public void setInviteMode(QChatInviteMode inviteMode) {
131  this.inviteMode = inviteMode;
132  }
133 
139  return applyMode;
140  }
141 
146  public void setApplyMode(QChatApplyJoinMode applyMode) {
147  this.applyMode = applyMode;
148  }
149 
153  @Nullable
154  public Integer getSearchType() {
155  return searchType;
156  }
157 
162  public void setSearchType(@Nullable Integer searchType) {
163  this.searchType = searchType;
164  }
165 
169  @Nullable
170  public Boolean getSearchEnable() {
171  return searchEnable;
172  }
173 
178  public void setSearchEnable(@Nullable Boolean searchEnable) {
179  this.searchEnable = searchEnable;
180  }
181 }
void setSearchType(@Nullable Integer searchType)
设置服务器搜索类型
void setCustom(String custom)
设置服务器自定义扩展
QChatInviteMode getInviteMode()
获取邀请加入服务器模式
void setSearchEnable(@Nullable Boolean searchEnable)
设置服务器是否允许被搜索
void setInviteMode(QChatInviteMode inviteMode)
设置邀请加入服务器模式
void setApplyMode(QChatApplyJoinMode applyMode)
设置申请加入服务器模式
QChatApplyJoinMode getApplyMode()
获取申请加入服务器模式
Boolean getSearchEnable()
获取服务器是否允许被搜索