1 package com.netease.nimlib.sdk.msg;
3 import android.util.Pair;
51 import java.util.ArrayList;
52 import java.util.List;
68 String MSG_CHATTING_ACCOUNT_ALL =
"all";
76 String MSG_CHATTING_ACCOUNT_NONE = null;
221 List<IMMessage> queryMessageListByUuidBlock(List<String> uuids);
237 List<IMMessage> queryMessageListByServerIdBlock(List<String> serverIds);
269 List<IMMessage> queryMessageListBySubtypeBlock(
MsgTypeEnum msgTypeEnum,
IMMessage anchor,
int limit,
int subtype);
379 long queryRoamMsgHasMoreTimeBlock(String sessionId,
SessionTypeEnum sessionType);
398 long queryRoamMsgHasMoreTagServerIdBlock(String sessionId,
SessionTypeEnum sessionType);
499 boolean persistClear);
536 boolean persistClear,
IMMessageFilter customFilter,
boolean updateUnread);
670 List<MsgIndexRecord> searchAllSessionBlock(String query,
int limit);
690 List<MsgIndexRecord> searchSessionBlock(String query,
SessionTypeEnum sessionType, String sessionId);
698 void deleteChattingHistory(
IMMessage message);
706 void deleteChattingHistory(
IMMessage message,
boolean ignore);
714 void deleteChattingHistory(List<IMMessage> msgList,
boolean ignore);
722 void clearChattingHistory(String account,
SessionTypeEnum sessionType);
731 void clearChattingHistory(String account,
SessionTypeEnum sessionType,
boolean ignore);
767 boolean everBeenDeleted(
IMMessage message);
786 int getTotalUnreadCount();
794 int getTotalUnreadCount(
boolean notify);
818 List<IMMessage> queryUnreadMessageListBlock(String sessionId,
SessionTypeEnum sessionType);
854 void clearAllUnreadCount();
875 void updateIMMessageStatus(
IMMessage message);
918 List<RecentContact> queryRecentContactsBlock();
951 List<RecentContact> queryRecentContactsBlock(
int limit);
981 List<RecentContact> queryRecentContactsBlock(
MsgTypeEnum filterMsgType);
998 List<RecentContact> queryRecentContactsBlock(Set<MsgTypeEnum> filterMsgTypeSet);
1024 void updateRecentByMessage(
IMMessage message,
boolean needNotify);
1032 void updateRoamMsgHasMoreTag(
IMMessage newTag);
1049 void deleteRecentContact2(String account,
SessionTypeEnum sessionType);
1079 void deleteRoamMsgHasMoreTag(String sessionId,
SessionTypeEnum sessionType);
1100 AbortableFuture<String> transVoiceToTextAtScene(String voiceUrl, String path,
long duration, String sceneKey);
1113 AbortableFuture<String> transVoiceToTextEnableForce(String voiceUrl, String path,
long duration, String sceneKey,
1114 boolean enableForceUploadFile);
1176 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount);
1189 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1204 Map<String, Object> pushPayload,
boolean shouldNotifyBeCount,
1205 String postscript, String attach);
1255 boolean saveToDB,
boolean withLastMsg);
1334 void clearServerHistory(String sessionId,
boolean deleteRoam);
1343 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType);
1355 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean deleteRoam);
1365 void clearServerHistory(String sessionId,
SessionTypeEnum sessionType,
boolean sync, String ext);
1376 void deleteRangeHistory(String account,
SessionTypeEnum sessionType,
long startTime,
long endTime);
1461 int queryReplyCountInThreadTalkBlock(
IMMessage msg);
1494 boolean needBadge, String pushTitle, String pushContent,
1495 Map<String, Object> pushPayload);
1521 boolean needBadge, String pushTitle, String pushContent,
1522 Map<String, Object> pushPayload);
1645 List<MsgPinDbOption> queryMsgPinBlock(String sessionId,
SessionTypeEnum sessionType);
1682 List<StickTopSessionInfo> queryStickTopSessionBlock();
1692 boolean isStickTopSession(String sessionId,
SessionTypeEnum sessionType);
1702 void migrateMessages(String from, String to,
boolean changeFrom);
历史消息牵移时导出时自定义处理器,导出时参考IMsgExportProcessor
NIM消息实体数据结构。 第三方APP不要调用设置类接口,调用之后不会被持久化
消息本身发送/接收状态,附件状态见AttachStatusEnum
NIMMessageAIStreamStopParams类
消息的关键信息,通过这些信息可以从服务端查询到该消息的完整部分
云信消息服务接口类,提供消息发送、消息查询、历史消息、消息扩展功能、获取未读数、已读回执、会话列表等...
SDK nos token场景配置,不配置的话,走默认值,默认值只有以下3种场景:
自定义通知。 区别于IMMessage,SDK仅透传该类型消息,不负责解析和存储。消息内容由第三方APP自由扩展。 ...