1 package com.netease.nimlib.sdk.qchat.param;
3 import androidx.annotation.NonNull;
16 private static final String TAG =
"QChatCreateChannelParam";
21 private final Long serverId;
26 private final String name;
31 private final Integer type;
39 private String custom;
49 private Long categoryId;
66 @SuppressWarnings(
"java:S2259")
69 String error = String.format(
"QChatCreateChannelParam QChatChannelType is %s", type);
70 if (BuildConfig.DEBUG) {
71 throw new IllegalArgumentException(error);
77 this.serverId = serverId;
79 this.type = type.getValue();
89 this.serverId = serverId;
91 this.type = customType;
107 this.custom = custom;
166 this.viewMode = viewMode;
182 this.categoryId = categoryId;
198 this.syncMode = syncMode;
214 this.visitorMode = visitorMode;
void setSyncMode(QChatChannelSyncMode syncMode)
设置同步模式
void setCategoryId(Long categoryId)
设置频道分组Id
void setCustom(String custom)
设置自定义扩展
QChatChannelSyncMode getSyncMode()
获取同步模式
QChatChannelMode getViewMode()
获取频道查看模式
String getCustom()
获取自定义扩展
Long getCategoryId()
获取频道分组Id
void setTopic(String topic)
设置主题
void setVisitorMode(QChatVisitorMode visitorMode)
设置游客可见模式
Long getServerId()
获取服务器ID
QChatCreateChannelParam(long serverId,@NonNull String name,@NonNull QChatChannelType type)
void setViewMode(QChatChannelMode viewMode)
设置频道查看模式
QChatVisitorMode getVisitorMode()
获取游客可见模式