1 package com.netease.nimlib.sdk.v2.conversation.params;
5 import java.util.HashSet;
7 import java.util.Objects;
18 private List<V2NIMConversationType> conversationTypes = null;
22 private boolean ignoreMuted =
false;
26 private Set<V2NIMConversationType> conversationTypeSet = null;
35 this.conversationTypes = types;
38 this.conversationTypeSet =
new HashSet<>(types);
48 this.ignoreMuted = ignoreMuted;
57 return conversationTypes;
65 if(CollectionUtil.isNotEmpty(conversationTypes) && CollectionUtil.isEmpty(conversationTypeSet))
67 conversationTypeSet =
new HashSet<>(conversationTypes);
69 return conversationTypeSet;
77 this.conversationTypes = conversationTypes;
93 this.ignoreMuted = ignoreMuted;
116 return "V2NIMConversationFilter{" +
"conversationTypes=" + conversationTypes +
", ignoreMuted=" + ignoreMuted +
'}';
V2NIMLocalConversationFilter(List< V2NIMConversationType > types)
V2NIMLocalConversationFilter(List< V2NIMConversationType > types, boolean ignoreMuted)
void setIgnoreMuted(boolean ignoreMuted)
设置是否忽略免打扰
V2NIMLocalConversationFilter()
List< V2NIMConversationType > getConversationTypes()
获取会话类型列表,为空表示查询所有类型,否则查询指定对话类型
boolean isIgnoreMuted()
获取是否忽略免打扰
Set< V2NIMConversationType > getConversationTypeSet()
获取会话类型集合
void setConversationTypes(List< V2NIMConversationType > conversationTypes)
设置会话类型列表