NIM C# SDK  6.3.0
NIM.SysMessage.SysMsgAPI Class Reference

Static Public Member Functions

static void RegisterCallbacks ()
 
static void SendCustomMessage (NIMSysMessageContent content)
 发送自定义通知 More...
 
static void QueryMessage (int limit, long lastTimetag, QuerySysMsgResult cb)
 查询本地系统消息(按时间逆序起查,逆序排列) More...
 
static void QueryUnreadCount (CommomOperateResult cb)
 查询未读消息数 More...
 
static void SetMsgStatus (long msgId, NIMSysMsgStatus status, OperateSysMsgExternDelegate cb)
 设置消息状态 More...
 
static void SetAllMsgRead (OperateSysMsgDelegate cb)
 设置全部消息为已读 More...
 
static void DeleteByMsgId (long msgId, OperateSysMsgExternDelegate cb)
 删除消息 More...
 
static void DeleteAll (OperateSysMsgDelegate cb)
 全部删除 More...
 
static void SetMsgStatusByType (NIMSysMsgType type, NIMSysMsgStatus status, OperateSysMsgDelegate cb)
 按消息类型批量设置消息状态 More...
 
static void DeleteMsgByType (NIMSysMsgType type, OperateSysMsgDelegate cb)
 按消息类型批量删除消息 More...
 

Static Public Attributes

static EventHandler< MessageArcEventArgsSendSysMsgHandler
 
static EventHandler< NIMSysMsgEventArgsReceiveSysMsgHandler
 

Member Function Documentation

◆ DeleteAll()

static void NIM.SysMessage.SysMsgAPI.DeleteAll ( OperateSysMsgDelegate  cb)
static

全部删除

Parameters
cb

◆ DeleteByMsgId()

static void NIM.SysMessage.SysMsgAPI.DeleteByMsgId ( long  msgId,
OperateSysMsgExternDelegate  cb 
)
static

删除消息

Parameters
msgId消息id
cb

◆ DeleteMsgByType()

static void NIM.SysMessage.SysMsgAPI.DeleteMsgByType ( NIMSysMsgType  type,
OperateSysMsgDelegate  cb 
)
static

按消息类型批量删除消息

Parameters
type消息类型
cb

◆ QueryMessage()

static void NIM.SysMessage.SysMsgAPI.QueryMessage ( int  limit,
long  lastTimetag,
QuerySysMsgResult  cb 
)
static

查询本地系统消息(按时间逆序起查,逆序排列)

Parameters
limit一次查询数量,建议20
lastTimetag上次查询最后一条消息的时间戳(按时间逆序起查,即最小的时间戳)
cb查询本地系统消息的回调函数

◆ QueryUnreadCount()

static void NIM.SysMessage.SysMsgAPI.QueryUnreadCount ( CommomOperateResult  cb)
static

查询未读消息数

Parameters
cb

◆ RegisterCallbacks()

static void NIM.SysMessage.SysMsgAPI.RegisterCallbacks ( )
static

◆ SendCustomMessage()

static void NIM.SysMessage.SysMsgAPI.SendCustomMessage ( NIMSysMessageContent  content)
static

发送自定义通知

Parameters
content

◆ SetAllMsgRead()

static void NIM.SysMessage.SysMsgAPI.SetAllMsgRead ( OperateSysMsgDelegate  cb)
static

设置全部消息为已读

Parameters
cb

◆ SetMsgStatus()

static void NIM.SysMessage.SysMsgAPI.SetMsgStatus ( long  msgId,
NIMSysMsgStatus  status,
OperateSysMsgExternDelegate  cb 
)
static

设置消息状态

Parameters
msgId消息id
status消息状态
cb设置消息状态的回调函数,

◆ SetMsgStatusByType()

static void NIM.SysMessage.SysMsgAPI.SetMsgStatusByType ( NIMSysMsgType  type,
NIMSysMsgStatus  status,
OperateSysMsgDelegate  cb 
)
static

按消息类型批量设置消息状态

Parameters
type消息类型
status消息状态
cb

Member Data Documentation

◆ ReceiveSysMsgHandler

EventHandler<NIMSysMsgEventArgs> NIM.SysMessage.SysMsgAPI.ReceiveSysMsgHandler
static

◆ SendSysMsgHandler

EventHandler<MessageArcEventArgs> NIM.SysMessage.SysMsgAPI.SendSysMsgHandler
static