cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
戳一戳消息 更多...
#include <PokeMessage.hpp>
Public 成员函数 | |
PokeMessage ()=default | |
PokeMessage (PokeType kind) | |
bool | operator== (const PokeMessage &rhs) |
bool | operator!= (const PokeMessage &rhs) |
PokeType | GetPokeKind () const |
获取戳一戳类型 更多... | |
PokeMessage & | SetPokeKind (PokeType kind) |
设置戳一戳类型 更多... | |
![]() | |
std::unique_ptr< IMessage > | clone () const override |
![]() | |
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 |
![]() | |
IMessageImpl ()=default | |
MessageTypes | GetType_ () const override |
bool | isSendSupported_ () const override |
![]() | |
IMessage ()=default | |
virtual MessageTypes | GetType_ () const =0 |
virtual bool | isSendSupported_ () const =0 |
virtual bool | isValid_ () const =0 |
Protected 属性 | |
PokeType | kind_ = PokeType::ENUM_END |
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::POKE |
static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
戳一戳消息
原PC版窗口抖动消息,与头像戳一戳消息不同
Member Variable | Default Value |
---|---|
PokeMessage::kind_ | PokeType::ENUM_END |
在文件 PokeMessage.hpp 第 38 行定义.
|
default |
|
inline |
在文件 PokeMessage.hpp 第 52 行定义.
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 PokeMessage.hpp 第 48 行定义.
|
inline |
在文件 PokeMessage.hpp 第 54 行定义.
|
inline |
在文件 PokeMessage.hpp 第 56 行定义.
|
inline |
获取戳一戳类型
在文件 PokeMessage.hpp 第 59 行定义.
|
inline |
设置戳一戳类型
在文件 PokeMessage.hpp 第 62 行定义.
|
protected |
在文件 PokeMessage.hpp 第 43 行定义.
|
staticconstexprprotected |
在文件 PokeMessage.hpp 第 45 行定义.
|
staticconstexprprotected |
在文件 PokeMessage.hpp 第 46 行定义.