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

用户Profile More...

#include <bmx_user_profile.h>

Inheritance diagram for floo::BMXUserProfile:
floo::BMXBaseObject

Classes

struct  AuthQuestion
 添加好友时的校验问题 More...
 
struct  MessageSetting
 用户消息设置 More...
 

Public Types

enum  AddFriendAuthMode { AddFriendAuthMode::Open, AddFriendAuthMode::NeedApproval, AddFriendAuthMode::AnswerQuestion, AddFriendAuthMode::RejectAll }
 对方申请加好友时的验证方式 More...
 
enum  UserCategory { UserCategory::Normal, UserCategory::Advanced }
 用户类型 More...
 

Public Member Functions

virtual ~BMXUserProfile ()
 析构函数
 
virtual int64_t userId ()=0
 用户ID(唯一) More...
 
virtual UserCategory category ()=0
 用户策略 More...
 
virtual const std::string & username ()=0
 用户名(唯一) More...
 
virtual const std::string & nickname ()=0
 用户昵称 More...
 
virtual std::string avatarRatelUrl ()=0
 用户ratel服务器头像url More...
 
virtual std::string avatarUrl ()=0
 用户头像url More...
 
virtual std::string avatarPath ()=0
 用户头像本地存储路径 More...
 
virtual std::string avatarThumbnailPath ()=0
 用户头像缩略图本地存储路径 More...
 
virtual const std::string & mobilePhone ()=0
 用户手机 More...
 
virtual const std::string & email ()=0
 用户邮箱 More...
 
virtual const JSON & publicInfo ()=0
 用户公开扩展信息,好友可见 More...
 
virtual const JSON & privateInfo ()=0
 用户私有扩展信息,好友不可见 More...
 
virtual AddFriendAuthMode addFriendAuthMode ()=0
 加好友校验方式 More...
 
virtual const AuthQuestionauthQuestion ()=0
 添加好友时的验证问题 More...
 
virtual const MessageSettingmessageSetting ()=0
 用户消息设定 More...
 
virtual bool isAutoAcceptGroupInvite ()=0
 收到群组邀请进群时是否自动同意进群 More...
 
- Public Member Functions inherited from floo::BMXBaseObject
template<typename T >
T * cast ()
 

Detailed Description

用户Profile

Member Enumeration Documentation

◆ AddFriendAuthMode

对方申请加好友时的验证方式

Enumerator
Open 

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

NeedApproval 

需要同意方可加为好友

AnswerQuestion 

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

RejectAll 

拒绝所有加好友申请

◆ UserCategory

用户类型

Enumerator
Normal 

普通用户

Advanced 

高级用户

Member Function Documentation

◆ addFriendAuthMode()

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

加好友校验方式

Returns
AddFriendAuthMode

◆ authQuestion()

virtual const AuthQuestion& floo::BMXUserProfile::authQuestion ( )
pure virtual

添加好友时的验证问题

Returns
AuthQuestion

◆ avatarPath()

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

用户头像本地存储路径

Returns
std::string

◆ avatarRatelUrl()

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

用户ratel服务器头像url

Returns
std::string

◆ avatarThumbnailPath()

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

用户头像缩略图本地存储路径

Returns
std::string

◆ avatarUrl()

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

用户头像url

Returns
std::string

◆ category()

virtual UserCategory floo::BMXUserProfile::category ( )
pure virtual

用户策略

Returns
UserCategory

◆ email()

virtual const std::string& floo::BMXUserProfile::email ( )
pure virtual

用户邮箱

Returns
std::string

◆ isAutoAcceptGroupInvite()

virtual bool floo::BMXUserProfile::isAutoAcceptGroupInvite ( )
pure virtual

收到群组邀请进群时是否自动同意进群

Returns
bool

◆ messageSetting()

virtual const MessageSetting& floo::BMXUserProfile::messageSetting ( )
pure virtual

用户消息设定

Returns
MessageSetting

◆ mobilePhone()

virtual const std::string& floo::BMXUserProfile::mobilePhone ( )
pure virtual

用户手机

Returns
std::string

◆ nickname()

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

用户昵称

Returns
std::string

◆ privateInfo()

virtual const JSON& floo::BMXUserProfile::privateInfo ( )
pure virtual

用户私有扩展信息,好友不可见

Returns
JSON(std::string)

◆ publicInfo()

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

用户公开扩展信息,好友可见

Returns
JSON(std::string)

◆ userId()

virtual int64_t floo::BMXUserProfile::userId ( )
pure virtual

用户ID(唯一)

Returns
int64_t

◆ username()

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

用户名(唯一)

Returns
std::string

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