1 package com.netease.nimlib.sdk.qchat.param;
3 import android.util.Log;
5 import androidx.annotation.NonNull;
12 import java.util.ArrayList;
13 import java.util.List;
20 private static final String TAG =
"SubscribeServerParam";
35 private final List<Long> serverIds;
45 String error = String.format(
"QChatSubType(%s) is Illegal", type);
46 if (BuildConfig.DEBUG) {
47 throw new IllegalArgumentException(error);
48 }
else if (LogDesensitizationConfigHelper.printToLogcat()) {
54 this.operateType = operateType;
55 this.serverIds =
new ArrayList<>(serverIds);
QChatSubscribeType getType()
获取订阅类型
static boolean isIllegalServerSubType(int subType)
List< Long > getServerIds()
获取操作的对象:serverId列表
QChatSubscribeServerParam(@NonNull QChatSubscribeType type, @NonNull QChatSubscribeOperateType operateType, @NonNull List< Long > serverIds)
QChatSubscribeOperateType getOperateType()
获取操作类型