1 package com.netease.nimlib.sdk.v2.chatroom.config;
3 import java.io.Serializable;
13 private Boolean historyEnabled;
17 private Boolean highPriority;
27 this.historyEnabled = historyEnabled;
35 if(highPriority == null) {
46 this.highPriority = highPriority;
54 if(historyEnabled == null) {
57 return historyEnabled;
65 this.historyEnabled = historyEnabled;
V2NIMChatroomMessageConfig(Boolean historyEnabled)
void setHighPriority(Boolean highPriority)
设置是否是高优先级消息
void setHistoryEnabled(boolean historyEnabled)
设置是否需要在服务端保存历史消息
boolean isHistoryEnabled()
获取是否需要在服务端保存历史消息, 默认为true
boolean isHighPriority()
获取是否是高优先级消息
V2NIMChatroomMessageConfig()