cpp-mirai-client  v2.6.1
cpp client for mirai-api-http
Mirai::UserProfile结构体 参考

QQ用户资料 更多...

#include <BasicTypes.hpp>

Mirai::UserProfile 的协作图:
[图例]

Public 成员函数

 UserProfile (std::string nickname="", std::string email="", int age=0, int level=0, std::string sign="", SEX sex=SEX::ENUM_END)
 
bool operator== (const UserProfile &rhs) const
 比较用户资料是否相同 更多...
 

Public 属性

std::string nickname
 QQ昵称 更多...
 
std::string email
 QQ邮箱 更多...
 
int age = 0
 年龄 更多...
 
int level = 0
 QQ等级 更多...
 
std::string sign
 QQ签名 更多...
 
SEX sex = SEX::ENUM_END
 性别 更多...
 

详细描述

QQ用户资料

在文件 BasicTypes.hpp408 行定义.

构造及析构函数说明

◆ UserProfile()

Mirai::UserProfile::UserProfile ( std::string  nickname = "",
std::string  email = "",
int  age = 0,
int  level = 0,
std::string  sign = "",
SEX  sex = SEX::ENUM_END 
)
inline

在文件 BasicTypes.hpp423 行定义.

成员函数说明

◆ operator==()

bool Mirai::UserProfile::operator== ( const UserProfile rhs) const
inline

比较用户资料是否相同

等价与所有成员变量分别判断相等。由于用户资料可能巧合,因此不保证真的为同一人

在文件 BasicTypes.hpp439 行定义.

类成员变量说明

◆ nickname

std::string Mirai::UserProfile::nickname

QQ昵称

在文件 BasicTypes.hpp411 行定义.

◆ email

std::string Mirai::UserProfile::email

QQ邮箱

在文件 BasicTypes.hpp413 行定义.

◆ age

int Mirai::UserProfile::age = 0

年龄

在文件 BasicTypes.hpp415 行定义.

◆ level

int Mirai::UserProfile::level = 0

QQ等级

在文件 BasicTypes.hpp417 行定义.

◆ sign

std::string Mirai::UserProfile::sign

QQ签名

在文件 BasicTypes.hpp419 行定义.

◆ sex

SEX Mirai::UserProfile::sex = SEX::ENUM_END

性别

在文件 BasicTypes.hpp421 行定义.


该结构体的文档由以下文件生成: