public class LCIMMessageStorage extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LCIMMessageStorage.MessageQueryResult |
static class |
LCIMMessageStorage.SQL |
static interface |
LCIMMessageStorage.StorageMessageCallback |
static interface |
LCIMMessageStorage.StorageQueryCallback |
public static final int MESSAGE_INNERTYPE_BIN
public static final int MESSAGE_INNERTYPE_PLAIN
public static final String DB_NAME_PREFIX
public static final String MESSAGE_TABLE
public static final String MESSAGE_INDEX
public static final int DB_VERSION
public static final String COLUMN_MESSAGE_ID
public static final String COLUMN_TIMESTAMP
public static final String COLUMN_CONVERSATION_ID
public static final String COLUMN_FROM_PEER_ID
public static final String COLUMN_MESSAGE_DELIVEREDAT
public static final String COLUMN_MESSAGE_READAT
public static final String COLUMN_MESSAGE_UPDATEAT
public static final String COLUMN_PAYLOAD
public static final String COLUMN_STATUS
public static final String COLUMN_BREAKPOINT
public static final String COLUMN_DEDUPLICATED_TOKEN
public static final String COLUMN_MSG_MENTION_ALL
public static final String COLUMN_MSG_MENTION_LIST
public static final String COLUMN_MSG_INNERTYPE
public static final String CONVERSATION_TABLE
public static final String COLUMN_EXPIREAT
public static final String COLUMN_ATTRIBUTE
public static final String COLUMN_INSTANCEDATA
public static final String COLUMN_UPDATEDAT
public static final String COLUMN_CREATEDAT
public static final String COLUMN_CREATOR
public static final String COLUMN_MEMBERS
public static final String COLUMN_LM
public static final String COLUMN_LASTMESSAGE
public static final String COLUMN_TRANSIENT
public static final String COLUMN_UNREAD_COUNT
public static final String COLUMN_CONV_MENTIONED
public static final String COLUMN_CONVERSATION_READAT
public static final String COLUMN_CONVRESATION_DELIVEREDAT
public static final String COLUMN_CONV_LASTMESSAGE_INNERTYPE
public static final String COLUMN_CONV_TEMP
public static final String COLUMN_CONV_TEMP_TTL
public static final String COLUMN_CONV_SYSTEM
public static final String NUMBERIC
public static final String INTEGER
public static final String BLOB
public static final String TEXT
public static final String VARCHAR32
public static LCIMMessageStorage getInstance(String clientId)
public void insertMessage(LCIMMessage message, boolean breakpoint)
public boolean insertLocalMessage(LCIMMessage message)
public boolean removeLocalMessage(LCIMMessage message)
public void insertContinuousMessages(List<LCIMMessage> messages, String conversationId)
public boolean containMessage(LCIMMessage message)
protected void updateBreakpoints(List<LCIMMessage> messages, boolean breakpoint, String conversationId)
public boolean updateMessage(LCIMMessage message, String originalId)
public void deleteMessages(List<LCIMMessage> messages, String conversationId)
public void deleteConversationData(String conversationId)
public void deleteClientData()
public void getMessages(String msgId, long timestamp, int limit, String conversationId, LCIMMessageStorage.StorageQueryCallback callback)
public long getMessageCount(String conversationId)
protected LCIMMessage getNextMessage(LCIMMessage currentMessage)
public int insertConversations(List<LCIMConversation> conversations)
public LCIMConversation getConversation(String conversationId)
public List<LCIMConversation> getCachedConversations(List<String> conversationIds)
public void deleteConversation(String conversationId)
public boolean updateConversationLastMessageAt(LCIMConversation conversation)
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.