1 package com.netease.nimlib.sdk.v2.topic.params;
3 import android.text.TextUtils;
16 private final List<V2NIMTopic> topicList;
24 this.topicList = topicList;
42 if (topicList == null || topicList.isEmpty()) {
43 return "topicList is empty";
45 String conversationId = null;
48 return "topicList contains null topic";
50 if (TextUtils.isEmpty(topic.getConversationId())) {
51 return "topic conversationId is empty";
53 if (topic.getTopicId() <= 0) {
54 return "topicId must be greater than 0";
56 if (conversationId == null) {
57 conversationId = topic.getConversationId();
60 if (!TextUtils.equals(conversationId, topic.getConversationId())) {
61 return "only topics in the same conversation can be removed together";
String isValidWithErrorMsg()
返回参数非法原因。
V2NIMRemoveTopicsParams(List< V2NIMTopic > topicList)
构造批量删除 Topic 参数。
List< V2NIMTopic > getTopicList()
返回待删除的 Topic 列表。