floo2
Public Types | Public Member Functions | List of all members
floo::BMXRosterItem Class Referenceabstract

联系人 More...

#include <bmx_roster_item.h>

Inheritance diagram for floo::BMXRosterItem:
floo::BMXBaseObject

Public Types

enum  RosterRelation { RosterRelation::Friend, RosterRelation::Deleted, RosterRelation::Stranger, RosterRelation::Blocked }
 好友关系 More...
 
enum  AddFriendAuthMode { AddFriendAuthMode::Open, AddFriendAuthMode::NeedApproval, AddFriendAuthMode::AnswerQuestion, AddFriendAuthMode::RejectAll }
 roster 被申请加好友时的验证方式 More...
 

Public Member Functions

virtual ~BMXRosterItem ()
 析构函数
 
virtual int64_t rosterId ()=0
 好友Id More...
 
virtual const std::string & username ()=0
 好友名 More...
 
virtual const std::string & nickname ()=0
 好友昵称 More...
 
virtual std::string avatarRatelUrl ()=0
 好友头像Ratel服务器地址 More...
 
virtual std::string avatarUrl ()=0
 好友头像服务器地址 More...
 
virtual std::string avatarPath ()=0
 好友头像本地存储路径 More...
 
virtual std::string avatarThumbnailUrl ()=0
 好友头像缩略图服务器地址 More...
 
virtual std::string avatarThumbnailPath ()=0
 好友头像缩略图本地存储路径 More...
 
virtual const JSON & publicInfo ()=0
 扩展信息,用户设置的好友可以看到的信息,比如地址,个性签名等 More...
 
virtual const JSON & alias ()=0
 用户对好友添加的备注等信息 More...
 
virtual const JSON & ext ()=0
 用户的服务器扩展信息 More...
 
virtual const JSON & localExt ()=0
 用户的本地扩展信息 More...
 
virtual RosterRelation relation ()=0
 联系人关系 More...
 
virtual bool isMuteNotification ()=0
 是否提醒用户消息 More...
 
virtual AddFriendAuthMode addFriendAuthMode ()=0
 roster的好友添加验证方式。 More...
 
virtual const std::string & authQuestion ()=0
 roster的好友验证问题。 More...
 
- Public Member Functions inherited from floo::BMXBaseObject
template<typename T >
T * cast ()
 

Detailed Description

联系人

Member Enumeration Documentation

◆ AddFriendAuthMode

roster 被申请加好友时的验证方式

Enumerator
Open 

无需验证,任何人可以加为好友

NeedApproval 

需要同意方可加为好友

AnswerQuestion 

需要回答问题正确方可加为好友

RejectAll 

拒绝所有加好友申请

◆ RosterRelation

好友关系

Enumerator
Friend 

好友

Deleted 

被删除

Stranger 

陌生人

Blocked 

被加入黑名单

Member Function Documentation

◆ addFriendAuthMode()

virtual AddFriendAuthMode floo::BMXRosterItem::addFriendAuthMode ( )
pure virtual

roster的好友添加验证方式。

Returns
AddFriendAuthMode

◆ alias()

virtual const JSON& floo::BMXRosterItem::alias ( )
pure virtual

用户对好友添加的备注等信息

Returns
JSON(std::string)

◆ authQuestion()

virtual const std::string& floo::BMXRosterItem::authQuestion ( )
pure virtual

roster的好友验证问题。

Returns
std::string

◆ avatarPath()

virtual std::string floo::BMXRosterItem::avatarPath ( )
pure virtual

好友头像本地存储路径

Returns
std::string

◆ avatarRatelUrl()

virtual std::string floo::BMXRosterItem::avatarRatelUrl ( )
pure virtual

好友头像Ratel服务器地址

Returns
std::string

◆ avatarThumbnailPath()

virtual std::string floo::BMXRosterItem::avatarThumbnailPath ( )
pure virtual

好友头像缩略图本地存储路径

Returns
std::string

◆ avatarThumbnailUrl()

virtual std::string floo::BMXRosterItem::avatarThumbnailUrl ( )
pure virtual

好友头像缩略图服务器地址

Returns
std::string

◆ avatarUrl()

virtual std::string floo::BMXRosterItem::avatarUrl ( )
pure virtual

好友头像服务器地址

Returns
std::string

◆ ext()

virtual const JSON& floo::BMXRosterItem::ext ( )
pure virtual

用户的服务器扩展信息

Returns
JSON(std::string)

◆ isMuteNotification()

virtual bool floo::BMXRosterItem::isMuteNotification ( )
pure virtual

是否提醒用户消息

Returns
bool

◆ localExt()

virtual const JSON& floo::BMXRosterItem::localExt ( )
pure virtual

用户的本地扩展信息

Returns
JSON(std::string)

◆ nickname()

virtual const std::string& floo::BMXRosterItem::nickname ( )
pure virtual

好友昵称

Returns
std::string

◆ publicInfo()

virtual const JSON& floo::BMXRosterItem::publicInfo ( )
pure virtual

扩展信息,用户设置的好友可以看到的信息,比如地址,个性签名等

Returns
JSON(std::string)

◆ relation()

virtual RosterRelation floo::BMXRosterItem::relation ( )
pure virtual

联系人关系

Returns
RosterRelation

◆ rosterId()

virtual int64_t floo::BMXRosterItem::rosterId ( )
pure virtual

好友Id

Returns
int64_t

◆ username()

virtual const std::string& floo::BMXRosterItem::username ( )
pure virtual

好友名

Returns
std::string

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