public class LCIMBinaryMessage extends LCIMMessage
LCIMMessage.MessageIOType, LCIMMessage.MessageStatus
bytes, content, conversationId, currentClient, deliveredAt, from, ioType, mentionAll, mentionList, messageId, readAt, status, timestamp, uniqueToken, updateAt
Constructor and Description |
---|
LCIMBinaryMessage()
default constructor
|
LCIMBinaryMessage(String conversationId,
String from)
constructor
|
LCIMBinaryMessage(String conversationId,
String from,
long timestamp,
long deliveredAt)
constructor
|
LCIMBinaryMessage(String conversationId,
String from,
long timestamp,
long deliveredAt,
long readAt)
constructor
|
Modifier and Type | Method and Description |
---|---|
static LCIMBinaryMessage |
createInstanceFromMessage(LCIMMessage other)
create binary instance by copying LCIMMessage instance(except content field).
|
boolean |
equals(Object other) |
byte[] |
getBytes()
get binary content.
|
int |
hashCode() |
void |
setBytes(byte[] val)
set binary content.
|
dumpRawData, generateUniqueToken, getContent, getConversationId, getDeliveredAt, getFrom, getMentionList, getMentionListString, getMessageId, getMessageIOType, getMessageStatus, getReadAt, getReceiptTimestamp, getTimestamp, getUniqueToken, getUpdateAt, getUpdatedAt, isMentionAll, mentioned, parseJSON, parseJSONString, setContent, setConversationId, setFrom, setMentionAll, setMentionList, setMentionListString, setMessageId, setMessageIOType, setMessageStatus, setReadAt, setReceiptTimestamp, setTimestamp, setUniqueToken, setUpdateAt, setUpdatedAt, toJSONString
public LCIMBinaryMessage()
public LCIMBinaryMessage(String conversationId, String from)
conversationId
- - conversation idfrom
- - message senderpublic LCIMBinaryMessage(String conversationId, String from, long timestamp, long deliveredAt)
conversationId
- - conversation idfrom
- - message sendertimestamp
- - message send timestampdeliveredAt
- - message deliver timestamppublic LCIMBinaryMessage(String conversationId, String from, long timestamp, long deliveredAt, long readAt)
conversationId
- - conversation idfrom
- - message sendertimestamp
- - message send timestampdeliveredAt
- - message deliver timestampreadAt
- - message read timestamppublic static LCIMBinaryMessage createInstanceFromMessage(LCIMMessage other)
other
- other instancepublic void setBytes(byte[] val)
val
- data bytes.public byte[] getBytes()
public int hashCode()
hashCode
in class LCIMMessage
public boolean equals(Object other)
equals
in class LCIMMessage
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.