public interface QChatMessage extends QChatMessageInternal
限定符和类型 | 方法和说明 |
---|---|
MsgDirectionEnum |
getDirect()
获取消息方向:发出去的消息还是接收到的消息
|
java.util.Map<java.lang.String,java.lang.Object> |
getLocalExtension()
获取本地扩展字段(仅本地有效)
|
MsgStatusEnum |
getStatus()
获取消息接收/发送状态。
|
java.lang.Boolean |
isChecked()
消息的选中状态
|
boolean |
isDeleted() |
boolean |
isTheSame(QChatMessage message)
判断与参数message是否是同一条消息。
|
void |
setChecked(java.lang.Boolean isChecked)
设置消息的选中状态
|
void |
setDirect(MsgDirectionEnum direct)
设置消息方向
|
void |
setLocalExtension(java.util.Map<java.lang.String,java.lang.Object> localExtension)
设置本地扩展字段(该字段仅在本地使用有效,不会发送给其他端
|
void |
setStatus(MsgStatusEnum status)
设置消息状态
|
getAntiSpamOption, getAntiSpamResult, getAttachment, getAttachStatus, getAttachStr, getCallbackExtension, getContent, getEnv, getFromAccount, getFromClientType, getFromDeviceId, getFromNick, getMentionedAccidList, getMentionedRoleIdList, getMsgIdServer, getMsgType, getNotifyReason, getPushContent, getPushPayload, getQChatChannelId, getQChatServerId, getRemoteExtension, getReplyRefer, getSendMsgStatus, getServerStatus, getSubType, getThreadRefer, getTime, getUpdateContent, getUpdateOperatorInfo, getUpdateTime, getUuid, isHistoryEnable, isMentionedAll, isNeedBadge, isNeedPushNick, isPushEnable, isResend, isRootThread, isRouteEnable, setAttachment, setAttachStatus, setContent, setEnv, setMessageThread, setRemoteExtension, setSendMsgStatus, setServerStatus, setSubType
boolean isTheSame(QChatMessage message)
message
- 消息对象MsgDirectionEnum getDirect()
void setDirect(MsgDirectionEnum direct)
direct
- 消息方向java.util.Map<java.lang.String,java.lang.Object> getLocalExtension()
void setLocalExtension(java.util.Map<java.lang.String,java.lang.Object> localExtension)
localExtension
- void setChecked(java.lang.Boolean isChecked)
isChecked
- true:被选中状态; false: 未被选中状态; null: 不在多选状态java.lang.Boolean isChecked()
boolean isDeleted()
void setStatus(MsgStatusEnum status)
status
- 消息状态MsgStatusEnum getStatus()