NIM Unity SDK V2.6.0
载入中...
搜索中...
未找到
| 枚举 | 函数
NIM.Messagelog 命名空间参考

class  MessagelogAPI
 
class  MsglogNativeMethods
 
class  MsglogQueryResult
 
class  QueryMsglogParams
 

枚举

enum  NIMMsgLogStatus {
  kNIMMsgLogStatusNone = 0 , kNIMMsgLogStatusUnread = 1 , kNIMMsgLogStatusRead = 2 , kNIMMsgLogStatusDeleted = 3 ,
  kNIMMsgLogStatusSending = 4 , kNIMMsgLogStatusSendFailed = 5 , kNIMMsgLogStatusSent = 6 , kNIMMsgLogStatusReceipt = 7 ,
  kNIMMsgLogStatusDraft = 8 , kNIMMsgLogStatusSendCancel = 9 , kNIMMsgLogStatusRefused = 10
}
 
enum  NIMMsgLogSubStatus { kNIMMsgLogSubStatusNone = 0 , kNIMMsgLogSubStatusNotPlaying = 20 , kNIMMsgLogSubStatusPlayed = 21 }
 消息子状态 更多...
 
enum  NIMMsgLogQueryRange {
  kNIMMsgLogQueryRangeP2P = 0 , kNIMMsgLogQueryRangeTeam = 1 , kNIMMsgLogQueryRangeAll = 100 , kNIMMsgLogQueryRangeAllP2P = 101 ,
  kNIMMsgLogQueryRangeAllTeam = 102 , kNIMMsgLogQueryRangeUnknown = 200
}
 消息历史的检索范围 更多...
 
enum  MsglogSearchDirection { kForward = 0 , kBackward = 1 , kBothway = 2 }
 
enum  NIMMsglogQuerySource { kNIMMsglogQuerySourceLocal = 0 , kNIMMsglogQuerySourceServer = 1 }
 消息历史查询来源 更多...
 

函数

delegate void QueryLogByMsgIdResultDelegate (ResponseCode code, string msdId, NIMIMMessage msg)
 
delegate void QueryMsglogResultDelegate (ResponseCode code, string accountId, NIMSessionType sType, MsglogQueryResult result)
 
delegate void OperateMsglogResultDelegate (ResponseCode code, string uid, NIMSessionType sType)
 
delegate void OperateSingleLogResultDelegate (ResponseCode code, string msgId)
 
delegate void CommonOperationResultDelegate (ResponseCode code)
 
delegate void ImportProgressDelegate (long importedCount, long totalCount)
 
delegate void MsglogStatusChangedDelegate (ResponseCode res, string result)
 
delegate void UpdateLocalExtDelegate (ResponseCode res, string msgId)
 

枚举类型说明

◆ NIMMsgLogStatus

枚举值
kNIMMsgLogStatusNone 

默认,不能当查询条件,意义太多

kNIMMsgLogStatusUnread 

收到消息,未读

kNIMMsgLogStatusRead 

收到消息,已读

kNIMMsgLogStatusDeleted 

已删

kNIMMsgLogStatusSending 

发送中

kNIMMsgLogStatusSendFailed 

发送失败

kNIMMsgLogStatusSent 

已发送

kNIMMsgLogStatusReceipt 

对方已读发送的内容

kNIMMsgLogStatusDraft 

草稿

kNIMMsgLogStatusSendCancel 

发送取消

kNIMMsgLogStatusRefused 

被对方拒绝,比如被对方加入黑名单等等

◆ NIMMsgLogSubStatus

消息子状态

枚举值
kNIMMsgLogSubStatusNone 

默认状态

kNIMMsgLogSubStatusNotPlaying 

未播放

kNIMMsgLogSubStatusPlayed 

已播放

◆ NIMMsgLogQueryRange

消息历史的检索范围

枚举值
kNIMMsgLogQueryRangeP2P 

指定的个人(点对点会话)(注意:暂不支持指定多个人的检索!)

kNIMMsgLogQueryRangeTeam 

指定的群组(注意:暂不支持指定多个群组的检索!)

kNIMMsgLogQueryRangeAll 

全部

kNIMMsgLogQueryRangeAllP2P 

所有个人会话

kNIMMsgLogQueryRangeAllTeam 

所有群组

kNIMMsgLogQueryRangeUnknown 

未知(如指定个人和群组的集合)(注意:暂不支持指定个人和群组的混合检索!)

◆ NIMMsglogQuerySource

消息历史查询来源

枚举值
kNIMMsglogQuerySourceLocal 

本地查询

kNIMMsglogQuerySourceServer 

云端查询