1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
53 import java.util.ArrayList;
54 import java.util.List;
70 String MSG_CHATTING_ACCOUNT_ALL =
"all";
78 String MSG_CHATTING_ACCOUNT_NONE = null;
223 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
239 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
271 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
381 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
400 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
501 boolean persistClear);
538 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
672 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
692 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
700 void deleteChattingHistory(
IMMessage message);
708 void deleteChattingHistory(
IMMessage message,
boolean ignore);
716 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
724 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
733 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
769 boolean everBeenDeleted(
IMMessage message);
788 int getTotalUnreadCount();
796 int getTotalUnreadCount(
boolean notify);
820 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
856 void clearAllUnreadCount();
877 void updateIMMessageStatus(
IMMessage message);
920 List<RecentContact> queryRecentContactsBlock();
953 List<RecentContact> queryRecentContactsBlock(
int limit);
983 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
1000 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
1026 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
1034 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1051 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1081 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1102 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1115 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1116 boolean enableForceUploadFile);
1178 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1191 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1206 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1207 String postscript, String attach);
1257 boolean saveToDB,
boolean withLastMsg);
1336 void clearServerHistory(String sessionId,
boolean deleteRoam);
1345 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1357 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1367 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1378 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1463 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1496 boolean needBadge, String pushTitle, String pushContent,
1497 Map<String, Object> pushPayload);
1523 boolean needBadge, String pushTitle, String pushContent,
1524 Map<String, Object> pushPayload);
1647 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1684 List<StickTopSessionInfo> queryStickTopSessionBlock();
1694 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1704 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
NIMMessageAIStreamStopParams类
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...