floo::BMXRosterServiceListener

好友变化监听者

#include <bmx_roster_service_listener.h>

Public Functions

Name
BMXRosterServiceListener()
构造函数
virtual ~BMXRosterServiceListener()
析构函数
virtual void onFriendAdded(int64_t sponsorId, int64_t recipientId)
添加好友
virtual void onFriendRemoved(int64_t sponsorId, int64_t recipientId)
删除好友
virtual void onApplied(int64_t sponsorId, int64_t recipientId, const std::string & message)
收到加好友申请
virtual void onApplicationAccepted(int64_t sponsorId, int64_t recipientId)
加好友申请被通过了
virtual void onApplicationDeclined(int64_t sponsorId, int64_t recipientId, const std::string & reason)
加好友申请被拒绝了
virtual void onBlockListAdded(int64_t sponsorId, int64_t recipientId)
添加黑名单
virtual void onBlockListRemoved(int64_t sponsorId, int64_t recipientId)
删除黑名单
virtual void onRosterInfoUpdate(BMXRosterItemPtr item)
用户信息更新
virtual void onRosterListUpdate()
客户端从服务器拉取到新联系人时触发,用于用户联系人列表更新,从SDK调用本地获取联系人即可取得全部成员信息
void registerRosterService(BMXRosterService * service)
注册BMXRosterServiceListener绑定到的BMXRosterService(SDK内部自动注册)

Protected Attributes

Name
BMXRosterService * mService

Public Functions Documentation

function BMXRosterServiceListener

inline BMXRosterServiceListener()

构造函数

function ~BMXRosterServiceListener

inline virtual ~BMXRosterServiceListener()

析构函数

function onFriendAdded

inline virtual void onFriendAdded(
    int64_t sponsorId,
    int64_t recipientId
)

添加好友

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者

function onFriendRemoved

inline virtual void onFriendRemoved(
    int64_t sponsorId,
    int64_t recipientId
)

删除好友

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者

function onApplied

inline virtual void onApplied(
    int64_t sponsorId,
    int64_t recipientId,
    const std::string & message
)

收到加好友申请

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者
  • message 好友申请消息

function onApplicationAccepted

inline virtual void onApplicationAccepted(
    int64_t sponsorId,
    int64_t recipientId
)

加好友申请被通过了

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者

function onApplicationDeclined

inline virtual void onApplicationDeclined(
    int64_t sponsorId,
    int64_t recipientId,
    const std::string & reason
)

加好友申请被拒绝了

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者
  • reason 申请拒绝原因

function onBlockListAdded

inline virtual void onBlockListAdded(
    int64_t sponsorId,
    int64_t recipientId
)

添加黑名单

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者

function onBlockListRemoved

inline virtual void onBlockListRemoved(
    int64_t sponsorId,
    int64_t recipientId
)

删除黑名单

Parameters:

  • sponsorId 操作的发起者
  • recipientId 操作的接受者

function onRosterInfoUpdate

inline virtual void onRosterInfoUpdate(
    BMXRosterItemPtr item
)

用户信息更新

Parameters:

  • item 更新的好友信息

function onRosterListUpdate

inline virtual void onRosterListUpdate()

客户端从服务器拉取到新联系人时触发,用于用户联系人列表更新,从SDK调用本地获取联系人即可取得全部成员信息

function registerRosterService

inline void registerRosterService(
    BMXRosterService * service
)

注册BMXRosterServiceListener绑定到的BMXRosterService(SDK内部自动注册)

Parameters:

Protected Attributes Documentation

variable mService

BMXRosterService * mService;

Updated on 2022-01-26 at 17:20:40 +0800

© 2019-2022 美信拓扑 | 官网 该文件修订时间: 2022-03-07 03:07:24

results matching ""

    No results matching ""