|
cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
#include <MiraiCodeMessage.hpp>
Public 成员函数 | |
| MiraiCodeMessage ()=default | |
| MiraiCodeMessage (std::string code) | |
| bool | operator== (const MiraiCodeMessage &rhs) |
| bool | operator!= (const MiraiCodeMessage &rhs) |
| std::string | GetCode () const |
| 获取mirai码 更多... | |
| MiraiCodeMessage & | SetCode (std::string code) |
| 设置mirai码 更多... | |
Public 成员函数 继承自 Mirai::IMessageImpl< MiraiCodeMessage > | |
| std::unique_ptr< IMessage > | clone () const override |
Public 成员函数 继承自 Mirai::IMessage | |
| virtual | ~IMessage ()=default |
| virtual std::unique_ptr< IMessage > | clone () const =0 |
| MessageTypes | type () const |
| Return the type of the class 更多... | |
| bool | allowSend () const |
| 检查消息是否可以用于发送 更多... | |
| bool | valid () const |
| 检查消息是否有效 更多... | |
Protected 成员函数 | |
| bool | isValid_ () const final |
Protected 成员函数 继承自 Mirai::IMessageImpl< MiraiCodeMessage > | |
| IMessageImpl ()=default | |
| MessageTypes | GetType_ () const override |
| bool | isSendSupported_ () const override |
Protected 成员函数 继承自 Mirai::IMessage | |
| IMessage ()=default | |
| virtual MessageTypes | GetType_ () const =0 |
| virtual bool | isSendSupported_ () const =0 |
| virtual bool | isValid_ () const =0 |
Protected 属性 | |
| std::string | code_ {} |
静态 Protected 属性 | |
| static constexpr MessageTypes | TYPE_ = MessageTypes::MIRAI_CODE |
| static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 Mirai::IMessageImpl< MiraiCodeMessage > | |
| static constexpr MessageTypes | GetType () |
| static constexpr bool | isSendSupported () |
在文件 MiraiCodeMessage.hpp 第 33 行定义.
|
default |
|
inline |
在文件 MiraiCodeMessage.hpp 第 47 行定义.
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 MiraiCodeMessage.hpp 第 43 行定义.
|
inline |
在文件 MiraiCodeMessage.hpp 第 50 行定义.
|
inline |
在文件 MiraiCodeMessage.hpp 第 52 行定义.
|
inline |
获取mirai码
在文件 MiraiCodeMessage.hpp 第 55 行定义.
|
inline |
设置mirai码
在文件 MiraiCodeMessage.hpp 第 58 行定义.
|
protected |
在文件 MiraiCodeMessage.hpp 第 38 行定义.
|
staticconstexprprotected |
在文件 MiraiCodeMessage.hpp 第 40 行定义.
|
staticconstexprprotected |
在文件 MiraiCodeMessage.hpp 第 41 行定义.