public interface IMMessage extends NIMMessage
限定符和类型 | 方法和说明 |
---|---|
java.io.Serializable |
getRealMsgObj()
获取真实消息对象
如果是圈组消息,可强转为QChatMessage对象;
如果是其他消息,可强转为IMMessage对象,即当前对象本身。
|
MessageRobotInfo |
getRobotInfo()
获取消息的机器人信息
|
java.lang.String |
getSessionId()
获取聊天对象的Id(好友帐号,群ID等)。
|
SessionTypeEnum |
getSessionType()
获取会话类型。
|
void |
setRobotInfo(MessageRobotInfo robotInfo)
设置消息的机器人信息
|
getAttachment, getAttachStatus, getAttachStr, getCallbackExtension, getConfig, getContent, getDirect, getEnv, getFromAccount, getFromClientType, getFromNick, getLocalExtension, getMemberPushOption, getMsgType, getNIMAntiSpamOption, getPushContent, getPushPayload, getQuickCommentUpdateTime, getRemoteExtension, getServerId, getStatus, getSubtype, getTeamMsgAckCount, getTeamMsgUnAckCount, getThreadOption, getTime, getUuid, getYidunAntiCheating, getYidunAntiSpamExt, getYidunAntiSpamRes, hasSendAck, isChecked, isDeleted, isInBlackList, isRemoteRead, isSessionUpdate, isTheSame, isThread, needMsgAck, setAttachment, setAttachStatus, setChecked, setClientAntiSpam, setConfig, setContent, setDirect, setEnv, setForceUploadFile, setFromAccount, setLocalExtension, setMemberPushOption, setMsgAck, setNIMAntiSpamOption, setPushContent, setPushPayload, setRemoteExtension, setSessionUpdate, setStatus, setSubtype, setThreadOption, setYidunAntiCheating, setYidunAntiSpamExt
java.lang.String getSessionId()
SessionTypeEnum getSessionType()
MessageRobotInfo getRobotInfo()
void setRobotInfo(MessageRobotInfo robotInfo)
robotInfo
- 消息的机器人信息java.io.Serializable getRealMsgObj()