1 package com.netease.nimlib.sdk.qchat.param;
3 import androidx.annotation.NonNull;
7 import java.util.ArrayList;
15 private static final String TAG =
"QChatSubscribeChannelAsVisitorParam";
25 private final List<QChatChannelIdInfo> channelIdInfos;
32 this.operateType = operateType;
33 if(channelIdInfos != null && channelIdInfos.size() > 0){
34 this.channelIdInfos =
new ArrayList<>(channelIdInfos);
36 this.channelIdInfos =
new ArrayList<>();
54 return channelIdInfos;
61 if (operateType == null) {
64 if(CollectionUtil.isEmpty(channelIdInfos)){
72 return "QChatSubscribeChannelAsVisitorParam{" +
73 "operateType=" + operateType +
74 ", channelIdInfos=" + channelIdInfos +
QChatSubscribeOperateType getOperateType()
获取操作类型
QChatSubscribeChannelAsVisitorParam(@NonNull QChatSubscribeOperateType operateType, @NonNull List< QChatChannelIdInfo > channelIdInfos)
List< QChatChannelIdInfo > getChannelIdInfos()
获取操作的对象:channelInfo列表