1package com.netease.nimlib.sdk.qchat.param;
3import android.util.Log;
5import androidx.annotation.NonNull;
7import com.netease.nimlib.BuildConfig;
8import com.netease.nimlib.sdk.qchat.enums.QChatSubscribeOperateType;
9import com.netease.nimlib.sdk.qchat.enums.QChatSubscribeType;
10import com.netease.nimlib.sdk.qchat.model.QChatChannelIdInfo;
12import java.util.ArrayList;
20 private static final String TAG =
"SubscribeChannelParam";
35 private final List<QChatChannelIdInfo> channelIdInfos;
45 String error = String.format(
"QChatSubType(%s) is Illegal", type);
46 if (BuildConfig.DEBUG) {
47 throw new IllegalArgumentException(error);
54 this.operateType = operateType;
55 this.channelIdInfos =
new ArrayList<>(channelIdInfos);
79 return channelIdInfos;
List< QChatChannelIdInfo > getChannelIdInfos()
获取操作的对象:channelInfo列表
QChatSubscribeChannelParam(@NonNull QChatSubscribeType type, @NonNull QChatSubscribeOperateType operateType, @NonNull List< QChatChannelIdInfo > channelIdInfos)
QChatSubscribeOperateType getOperateType()
获取操作类型
QChatSubscribeType getType()
获取订阅类型
static boolean isIllegalChannelSubType(int subType)