floo2
Public Member Functions | List of all members
floo::BMXChatServiceListener Class Reference

聊天监听者 More...

#include <bmx_chat_service_listener.h>

Public Member Functions

virtual ~BMXChatServiceListener ()
 析构函数
 
virtual void onStatusChanged (BMXMessagePtr msg, BMXErrorCode error)
 消息发送状态发生变化 More...
 
virtual void onAttachmentUploadProgressChanged (BMXMessagePtr msg, int percent)
 附件上传进度发送变化 More...
 
virtual void onRecallStatusChanged (BMXMessagePtr msg, BMXErrorCode error)
 消息撤回状态发送变化 More...
 
virtual void onReceive (const BMXMessageList &list)
 收到消息 More...
 
virtual void onReceiveCommandMessages (const BMXMessageList &list)
 收到命令消息 More...
 
virtual void onReceiveSystemMessages (const BMXMessageList &list)
 收到系统通知消息 More...
 
virtual void onReceiveReadAcks (const BMXMessageList &list)
 收到消息已读回执 More...
 
virtual void onReceiveDeliverAcks (const BMXMessageList &list)
 收到消息已送达回执 More...
 
virtual void onReceiveRecallMessages (const BMXMessageList &list)
 收到撤回消息 More...
 
virtual void onReceiveReadCancels (const BMXMessageList &list)
 收到消息已读取消(多设备其他设备同步消息已读状态变为未读) More...
 
virtual void onReceiveReadAllMessages (const BMXMessageList &list)
 收到消息全部已读(多设备同步某消息之前消息全部设置为已读) More...
 
virtual void onReceiveDeleteMessages (const BMXMessageList &list)
 收到删除消息 (多设备同步删除消息) More...
 
virtual void onReceivePlayAcks (const BMXMessageList &list)
 收到音频/视频消息已播放回执 More...
 
virtual void onAttachmentStatusChanged (BMXMessagePtr msg, BMXErrorCode error, int percent)
 附件下载状态发生变化 More...
 
virtual void onAttachmentDownloadByUrlStatusChanged (int64_t msgId, BMXErrorCode error, int percent)
 附件下载状态发生变化 More...
 
virtual void onRetrieveHistoryMessages (BMXConversationPtr conversation)
 拉取历史消息 More...
 
virtual void onLoadAllConversation ()
 已经加载完未读会话列表
 
virtual void onConversationCreate (BMXConversationPtr conversation, BMXMessagePtr msg)
 本地创建新会话 More...
 
virtual void onConversationDelete (int64_t conversationId, BMXErrorCode error)
 删除会话 More...
 
virtual void onTotalUnreadCountChanged (int unreadCount)
 更新总未读数 More...
 

Detailed Description

聊天监听者

Member Function Documentation

◆ onAttachmentDownloadByUrlStatusChanged()

virtual void floo::BMXChatServiceListener::onAttachmentDownloadByUrlStatusChanged ( int64_t  msgId,
BMXErrorCode  error,
int  percent 
)
inlinevirtual

附件下载状态发生变化

Parameters
msgId发生下载状态变化的消息Id
error状态错误码
percent附件下载的进度

◆ onAttachmentStatusChanged()

virtual void floo::BMXChatServiceListener::onAttachmentStatusChanged ( BMXMessagePtr  msg,
BMXErrorCode  error,
int  percent 
)
inlinevirtual

附件下载状态发生变化

Parameters
msg发生下载状态变化的消息
error状态错误码
percent附件下载的进度

◆ onAttachmentUploadProgressChanged()

virtual void floo::BMXChatServiceListener::onAttachmentUploadProgressChanged ( BMXMessagePtr  msg,
int  percent 
)
inlinevirtual

附件上传进度发送变化

Parameters
msg上传附件的消息
percent附件上传的进度

◆ onConversationCreate()

virtual void floo::BMXChatServiceListener::onConversationCreate ( BMXConversationPtr  conversation,
BMXMessagePtr  msg 
)
inlinevirtual

本地创建新会话

Parameters
conversation新创建的本地会话
msg会话的最新消息,存在返回不存在返回为空

◆ onConversationDelete()

virtual void floo::BMXChatServiceListener::onConversationDelete ( int64_t  conversationId,
BMXErrorCode  error 
)
inlinevirtual

删除会话

Parameters
conversationId删除的本地会话id
error状态错误码

◆ onRecallStatusChanged()

virtual void floo::BMXChatServiceListener::onRecallStatusChanged ( BMXMessagePtr  msg,
BMXErrorCode  error 
)
inlinevirtual

消息撤回状态发送变化

Parameters
msg撤回状态发生变化的消息
error状态错误码

◆ onReceive()

virtual void floo::BMXChatServiceListener::onReceive ( const BMXMessageList &  list)
inlinevirtual

收到消息

Parameters
list接收到的消息列表

◆ onReceiveCommandMessages()

virtual void floo::BMXChatServiceListener::onReceiveCommandMessages ( const BMXMessageList &  list)
inlinevirtual

收到命令消息

Parameters
list接收到的消息列表

◆ onReceiveDeleteMessages()

virtual void floo::BMXChatServiceListener::onReceiveDeleteMessages ( const BMXMessageList &  list)
inlinevirtual

收到删除消息 (多设备同步删除消息)

Parameters
list接收到的删除消息列表

◆ onReceiveDeliverAcks()

virtual void floo::BMXChatServiceListener::onReceiveDeliverAcks ( const BMXMessageList &  list)
inlinevirtual

收到消息已送达回执

Parameters
list接收到的已送达回执消息列表

◆ onReceivePlayAcks()

virtual void floo::BMXChatServiceListener::onReceivePlayAcks ( const BMXMessageList &  list)
inlinevirtual

收到音频/视频消息已播放回执

Parameters
list接收到的音频/视频消息已播放回执消息列表

◆ onReceiveReadAcks()

virtual void floo::BMXChatServiceListener::onReceiveReadAcks ( const BMXMessageList &  list)
inlinevirtual

收到消息已读回执

Parameters
list接收到的已读回执消息列表

◆ onReceiveReadAllMessages()

virtual void floo::BMXChatServiceListener::onReceiveReadAllMessages ( const BMXMessageList &  list)
inlinevirtual

收到消息全部已读(多设备同步某消息之前消息全部设置为已读)

Parameters
list接收到的消息全部已读消息列表

◆ onReceiveReadCancels()

virtual void floo::BMXChatServiceListener::onReceiveReadCancels ( const BMXMessageList &  list)
inlinevirtual

收到消息已读取消(多设备其他设备同步消息已读状态变为未读)

Parameters
list接收到的消息已读取消消息列表

◆ onReceiveRecallMessages()

virtual void floo::BMXChatServiceListener::onReceiveRecallMessages ( const BMXMessageList &  list)
inlinevirtual

收到撤回消息

Parameters
list接收到的撤回消息列表

◆ onReceiveSystemMessages()

virtual void floo::BMXChatServiceListener::onReceiveSystemMessages ( const BMXMessageList &  list)
inlinevirtual

收到系统通知消息

Parameters
list接收到的系统消息列表

◆ onRetrieveHistoryMessages()

virtual void floo::BMXChatServiceListener::onRetrieveHistoryMessages ( BMXConversationPtr  conversation)
inlinevirtual

拉取历史消息

Parameters
conversation发生了拉取指历史消息的会话

◆ onStatusChanged()

virtual void floo::BMXChatServiceListener::onStatusChanged ( BMXMessagePtr  msg,
BMXErrorCode  error 
)
inlinevirtual

消息发送状态发生变化

Parameters
msg发生状态变化的消息
error状态错误码

◆ onTotalUnreadCountChanged()

virtual void floo::BMXChatServiceListener::onTotalUnreadCountChanged ( int  unreadCount)
inlinevirtual

更新总未读数

Parameters
unreadCount本地全部会话未读总数

The documentation for this class was generated from the following file: