public interface RecentContact
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
MsgAttachment |
getAttachment()
If the most recent message belongs to the extended type, get the attachment of the message.
|
java.lang.String |
getContactId()
Get the contact ID
|
java.lang.String |
getContent()
Get the content of the most recent message
Text messages return text. |
java.util.Map<java.lang.String,java.lang.Object> |
getExtension()
Get the extension field
|
java.lang.String |
getFromAccount()
Get the account of a sender that sent the most recent messages
|
java.lang.String |
getFromNick()
Get the nickname of an user that sent the most recent message.
|
MsgStatusEnum |
getMsgStatus()
Get the status of the most recent message
|
MsgTypeEnum |
getMsgType()
Get the type of the most recent message
|
java.lang.String |
getRecentMessageId()
Get the ID of the most recent message.
|
SessionTypeEnum |
getSessionType()
Get the session type
|
long |
getTag()
Get the tag
|
long |
getTime()
Get the time of the most recent message in milliseconds
|
int |
getUnreadCount()
Get the unread count of messages sent from the contact
|
void |
setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
Set the extension field
|
boolean |
setLastMsg(IMMessage message)
Set the last message
|
void |
setMsgStatus(MsgStatusEnum msgStatus)
Set the status of the most recent message
|
void |
setTag(long tag)
Set a tag used to pin a contact or sort recent sessions.
|
java.lang.String getContactId()
java.lang.String getFromAccount()
java.lang.String getFromNick()
SessionTypeEnum getSessionType()
java.lang.String getRecentMessageId()
IMMessage.getUuid()
()}MsgTypeEnum getMsgType()
MsgStatusEnum getMsgStatus()
void setMsgStatus(MsgStatusEnum msgStatus)
msgStatus
- Message statusint getUnreadCount()
java.lang.String getContent()
getAttachment()
.long getTime()
MsgAttachment getAttachment()
void setTag(long tag)
MsgService.updateRecent(RecentContact)
.tag
- The tag valuelong getTag()
java.util.Map<java.lang.String,java.lang.Object> getExtension()
void setExtension(java.util.Map<java.lang.String,java.lang.Object> extension)
extension
- the extension fieldboolean setLastMsg(IMMessage message)
message
- the last message