public class SystemMessage
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SystemMessage() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttach()
Get the attachment of a system message.
|
java.lang.Object |
getAttachObject()
Get the parsed attachment object of a system message.
|
java.lang.String |
getContent()
Get the content of a system message
For example, An extra info for a join request or reason for decline |
java.lang.String |
getCustomInfo()
Get the custom information.
|
java.lang.String |
getFromAccount()
Get the account that initiates the system message.
|
long |
getMessageId()
Get the ID of a system message
|
SystemMessageStatus |
getStatus()
Get the status of a system message
|
java.lang.String |
getTargetId()
Get the target ID of a system message
For example, the group ID that declined the join request
|
long |
getTime()
Get the time when a system message is sent in milliseconds
|
SystemMessageType |
getType()
Get the type of a system message
|
boolean |
isUnread()
Check if a system message is read
|
void |
setAttach(java.lang.String attach)
Set the attachment of a system message.
|
void |
setAttachObject(java.lang.Object object)
Set the attachment object after parsing
The field is separate from the attach field. |
void |
setContent(java.lang.String content)
Set the content of a system message
|
void |
setFromAccount(java.lang.String fromAccount)
Set the account of an initiator
|
void |
setMessageId(long messageId)
Set the ID of a system message
|
void |
setStatus(SystemMessageStatus status)
Set the status of a system message
|
void |
setTargetId(java.lang.String targetId)
Set the target ID of a system message
|
void |
setTime(long time)
Set the time when a system message is sent
|
void |
setType(int type)
Set the type of a system message
|
void |
setUnread(boolean unread)
Set the unread indicator for system messages
|
public long getMessageId()
public void setMessageId(long messageId)
messageId
- message IDpublic SystemMessageType getType()
public void setType(int type)
type
- System message typepublic java.lang.String getFromAccount()
public void setFromAccount(java.lang.String fromAccount)
fromAccount
- the account of an initiatorpublic java.lang.String getTargetId()
public void setTargetId(java.lang.String targetId)
targetId
- target IDpublic long getTime()
public void setTime(long time)
time
- The timepublic SystemMessageStatus getStatus()
public void setStatus(SystemMessageStatus status)
status
- the statuspublic java.lang.String getContent()
public void setContent(java.lang.String content)
content
- The contentpublic java.lang.String getAttach()
public void setAttach(java.lang.String attach)
attach
- The attachmentpublic java.lang.Object getAttachObject()
SystemMessageType
public void setAttachObject(java.lang.Object object)
object
- The attachment objectpublic boolean isUnread()
public void setUnread(boolean unread)
unread
- true: unread; false: readpublic java.lang.String getCustomInfo()