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
用户私有扩展信息,好友不可见
virtual AddFriendAuthMode addFriendAuthMode() =0
加好友校验方式
virtual const [AuthQuestion] & authQuestion() =0
添加好友时的验证问题
virtual const [MessageSetting] & messageSetting() =0
用户消息设定
virtual bool isAutoAcceptGroupInvite() =0
收到群组邀请进群时是否自动同意进群

Protected Functions

Name
BMXUserProfile()

Public Types Documentation

enum AddFriendAuthMode

Enumerator Value Description
Open 无需验证,任何人可以加为好友
NeedApproval 需要同意方可加为好友
AnswerQuestion 需要回答问题正确方可加为好友
RejectAll 拒绝所有加好友申请

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

enum UserCategory

Enumerator Value Description
Normal 普通用户
Advanced 高级用户

用户类型

Public Functions Documentation

function ~BMXUserProfile

inline virtual ~BMXUserProfile()

析构函数

function userId

virtual int64_t userId() =0

用户ID(唯一)

Return: int64_t

function category

virtual UserCategory category() =0

用户策略

Return: UserCategory

function username

virtual const std::string & username() =0

用户名(唯一)

Return: std::string

function nickname

virtual const std::string & nickname() =0

用户昵称

Return: std::string

function avatarRatelUrl

virtual std::string avatarRatelUrl() =0

用户ratel服务器头像url

Return: std::string

function avatarUrl

virtual std::string avatarUrl() =0

用户头像url

Return: std::string

function avatarPath

virtual std::string avatarPath() =0

用户头像本地存储路径

Return: std::string

function avatarThumbnailPath

virtual std::string avatarThumbnailPath() =0

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

Return: std::string

function mobilePhone

virtual const std::string & mobilePhone() =0

用户手机

Return: std::string

function email

virtual const std::string & email() =0

用户邮箱

Return: std::string

function publicInfo

virtual const JSON & publicInfo() =0

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

Return: JSON(std::string)

function privateInfo

virtual const JSON & privateInfo() =0

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

Return: JSON(std::string)

function addFriendAuthMode

virtual AddFriendAuthMode addFriendAuthMode() =0

加好友校验方式

Return: AddFriendAuthMode

function authQuestion

virtual const AuthQuestion & authQuestion() =0

添加好友时的验证问题

Return: [AuthQuestion]

function messageSetting

virtual const MessageSetting & messageSetting() =0

用户消息设定

Return: [MessageSetting]

function isAutoAcceptGroupInvite

virtual bool isAutoAcceptGroupInvite() =0

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

Return: bool

Protected Functions Documentation

function BMXUserProfile

inline BMXUserProfile()

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

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

results matching ""

    No results matching ""