floo::BMXUserProfile

用户Profile

#include <bmx_user_profile.h>

Inherits from BMXBaseObject

Public Types

Name

enum class

AddFriendAuthMode { Open, NeedApproval, AnswerQuestion, RejectAll} 对方申请加好友时的验证方式

enum class

UserCategory { Normal, Advanced} 用户类型

Public Functions

Name

virtual

~BMXUserProfile() 析构函数

virtual int64_t

userId() =0 用户ID(唯一)

virtual UserCategory

category() =0 用户策略

virtual const std::string &

username() =0 用户名(唯一)

virtual const std::string &

nickname() =0 用户昵称

virtual std::string

avatarRatelUrl() =0 用户ratel服务器头像url

virtual std::string

avatarUrl() =0 用户头像url

virtual std::string

avatarPath() =0 用户头像本地存储路径

virtual std::string

avatarThumbnailPath() =0 用户头像缩略图本地存储路径

virtual const std::string &

mobilePhone() =0 用户手机

virtual const std::string &

email() =0 用户邮箱

virtual const JSON &

publicInfo() =0 用户公开扩展信息,好友可见

virtual const JSON &

privateInfo() =0 用户私有扩展信息,好友不可见

addFriendAuthMode() =0 加好友校验方式

virtual const [AuthQuestion] &

authQuestion() =0 添加好友时的验证问题

virtual const [MessageSetting] &

messageSetting() =0 用户消息设定

virtual bool

isAutoAcceptGroupInvite() =0 收到群组邀请进群时是否自动同意进群

Protected Functions

Public Types Documentation

enum AddFriendAuthMode

Enumerator
Value
Description

Open

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

NeedApproval

需要同意方可加为好友

AnswerQuestion

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

RejectAll

拒绝所有加好友申请

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

enum UserCategory

Enumerator
Value
Description

Normal

普通用户

Advanced

高级用户

用户类型

Public Functions Documentation

function ~BMXUserProfile

析构函数

function userId

用户ID(唯一)

Return: int64_t

function category

用户策略

Return: UserCategory

function username

用户名(唯一)

Return: std::string

function nickname

用户昵称

Return: std::string

function avatarRatelUrl

用户ratel服务器头像url

Return: std::string

function avatarUrl

用户头像url

Return: std::string

function avatarPath

用户头像本地存储路径

Return: std::string

function avatarThumbnailPath

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

Return: std::string

function mobilePhone

用户手机

Return: std::string

function email

用户邮箱

Return: std::string

function publicInfo

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

Return: JSON(std::string)

function privateInfo

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

Return: JSON(std::string)

function addFriendAuthMode

加好友校验方式

Return: AddFriendAuthMode

function authQuestion

添加好友时的验证问题

Return: [AuthQuestion]

function messageSetting

用户消息设定

Return: [MessageSetting]

function isAutoAcceptGroupInvite

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

Return: bool

Protected Functions Documentation

function BMXUserProfile


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

Last updated

Was this helpful?