public class LCIMTypedMessage extends LCIMMessage
LCIMMessage.MessageIOType, LCIMMessage.MessageStatus
bytes, content, conversationId, currentClient, deliveredAt, from, ioType, mentionAll, mentionList, messageId, readAt, status, timestamp, uniqueToken, updateAt
Constructor and Description |
---|
LCIMTypedMessage() |
LCIMTypedMessage(int messageType) |
Modifier and Type | Method and Description |
---|---|
protected static void |
computeFieldAttribute(Class clazz) |
boolean |
equals(Object other) |
String |
getContent()
获取消息体的内容
|
static LCIMMessage |
getMessage(String cid,
String mId,
String data,
String from,
long timestamp,
long ackAt,
long readAt) |
int |
getMessageType() |
int |
hashCode() |
void |
setContent(String content)
设置消息体的内容
|
protected void |
setMessageType(int messageType) |
dumpRawData, generateUniqueToken, getConversationId, getDeliveredAt, getFrom, getMentionList, getMentionListString, getMessageId, getMessageIOType, getMessageStatus, getReadAt, getReceiptTimestamp, getTimestamp, getUniqueToken, getUpdateAt, getUpdatedAt, isMentionAll, mentioned, parseJSON, parseJSONString, setConversationId, setFrom, setMentionAll, setMentionList, setMentionListString, setMessageId, setMessageIOType, setMessageStatus, setReadAt, setReceiptTimestamp, setTimestamp, setUniqueToken, setUpdateAt, setUpdatedAt, toJSONString
public LCIMTypedMessage()
public LCIMTypedMessage(int messageType)
public int getMessageType()
protected void setMessageType(int messageType)
public final String getContent()
LCIMMessage
getContent
in class LCIMMessage
public final void setContent(String content)
LCIMMessage
setContent
in class LCIMMessage
content
- message content.protected static void computeFieldAttribute(Class clazz)
public static LCIMMessage getMessage(String cid, String mId, String data, String from, long timestamp, long ackAt, long readAt)
public int hashCode()
hashCode
in class LCIMMessage
public boolean equals(Object other)
equals
in class LCIMMessage
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.