1 package com.netease.nimlib.sdk.qchat.param;
3 import android.util.Log;
5 import androidx.annotation.NonNull;
13 import java.util.ArrayList;
14 import java.util.List;
21 private static final String TAG =
"SubscribeChannelParam";
36 private final List<QChatChannelIdInfo> channelIdInfos;
46 String error = String.format(
"QChatSubType(%s) is Illegal", type);
47 if (BuildConfig.DEBUG) {
48 throw new IllegalArgumentException(error);
49 }
else if (LogDesensitizationConfigHelper.printToLogcat()) {
55 this.operateType = operateType;
56 this.channelIdInfos =
new ArrayList<>(channelIdInfos);
80 return channelIdInfos;
List< QChatChannelIdInfo > getChannelIdInfos()
获取操作的对象:channelInfo列表
QChatSubscribeChannelParam(@NonNull QChatSubscribeType type, @NonNull QChatSubscribeOperateType operateType, @NonNull List< QChatChannelIdInfo > channelIdInfos)
QChatSubscribeOperateType getOperateType()
获取操作类型
static boolean isIllegalChannelSubType(int subType)
QChatSubscribeType getType()
获取订阅类型