1 package com.netease.nimlib.sdk.v2.conversation.option;
14 private List<V2NIMConversationType> conversationTypes = null;
18 private boolean onlyUnread =
false;
22 private List<String> conversationGroupIds = null;
32 this.conversationTypes = conversationTypes;
40 this.conversationTypes = conversationTypes;
41 this.onlyUnread = onlyUnread;
49 public V2NIMConversationOption(List<V2NIMConversationType> conversationTypes,
boolean onlyUnread, List<String> conversationGroupIds) {
50 this.conversationTypes = conversationTypes;
51 this.onlyUnread = onlyUnread;
52 this.conversationGroupIds = conversationGroupIds;
61 return conversationTypes;
70 this.conversationTypes = conversationTypes;
79 this.conversationGroupIds = conversationGroupIds;
97 this.onlyUnread = onlyUnread;
106 return conversationGroupIds;
111 return "V2NIMConversationOption{" +
"conversationTypes=" + conversationTypes +
", onlyUnread=" + onlyUnread +
", conversationGroupIds=" 112 + conversationGroupIds +
'}';
boolean isOnlyUnread()
是否只查询包含未读的会话
V2NIMConversationOption()
void setOnlyUnread(boolean onlyUnread)
设置是否只查询包含未读的会话
List< V2NIMConversationType > getConversationTypes()
获取会话类型列表
void setConversationGroupIds(List< String > conversationGroupIds)
设置会话分组id列表
V2NIMConversationOption(List< V2NIMConversationType > conversationTypes)
List< String > getConversationGroupIds()
获取会话分组id列表
V2NIMConversationOption(List< V2NIMConversationType > conversationTypes, boolean onlyUnread)
V2NIMConversationOption(List< V2NIMConversationType > conversationTypes, boolean onlyUnread, List< String > conversationGroupIds)
void setConversationTypes(List< V2NIMConversationType > conversationTypes)
设置会话类型列表