1 package com.netease.nimlib.sdk.v2.message.params;
3 import java.util.Objects;
17 private long anchorTime = 0;
25 private boolean deleteConversation =
false;
40 this.anchorTime = anchorTime;
41 this.deleteConversation = deleteConversation;
57 this.anchorTime = anchorTime;
58 if(this.anchorTime < 0){
69 return deleteConversation;
78 this.deleteConversation = deleteConversation;
87 return anchorTime >= 0;
97 return "V2NIMClearLocalMessageParams{" +
98 "anchorTime=" + anchorTime +
99 ", deleteConversation=" + deleteConversation +
114 if (obj == null || getClass() != obj.getClass()) {
120 return anchorTime == that.anchorTime &&
121 deleteConversation == that.deleteConversation;
131 return Objects.hash(anchorTime, deleteConversation);
V2NIMClearLocalMessageParams(long anchorTime, boolean deleteConversation)
带参数的构造函数
void setAnchorTime(long anchorTime)
设置清空的时间范围的结束时间
void setDeleteConversation(boolean deleteConversation)
设置是否同步删除会话入口
V2NIM 清空本地消息参数类 用于配置清空本地消息的相关参数,包括时间范围和是否删除会话入口 ...
V2NIMClearLocalMessageParams()
默认构造函数
int hashCode()
重写hashCode方法
boolean equals(Object obj)
重写equals方法
long getAnchorTime()
获取清空的时间范围的结束时间
String toString()
重写toString方法,便于调试和日志输出
boolean isDeleteConversation()
获取是否同步删除会话入口的标志