cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
At用户消息 更多...
#include <AtMessage.hpp>
Public 成员函数 | |
AtMessage ()=default | |
AtMessage (QQ_t target) | |
bool | operator== (const AtMessage &rhs) |
bool | operator!= (const AtMessage &rhs) |
QQ_t | GetTarget () const |
获取At对象QQ 更多... | |
std::string | GetDisplayName () |
获取At时显示的文字,发送时无法设置 更多... | |
AtMessage & | SetTarget (QQ_t target) |
设置At对象QQ 更多... | |
![]() | |
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 |
检查消息是否有效 更多... | |
友元 | |
class | IMessageImpl< AtMessage > |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
![]() | |
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 |
At用户消息
Member Variable | Default Value |
---|---|
AtMessage::target_ | 0_qq |
AtMessage::display_ | "" |
在文件 AtMessage.hpp 第 36 行定义.
|
default |
|
inline |
在文件 AtMessage.hpp 第 51 行定义.
|
inline |
在文件 AtMessage.hpp 第 53 行定义.
|
inline |
在文件 AtMessage.hpp 第 55 行定义.
|
inline |
获取At对象QQ
在文件 AtMessage.hpp 第 58 行定义.
|
inline |
获取At时显示的文字,发送时无法设置
在文件 AtMessage.hpp 第 61 行定义.
设置At对象QQ
在文件 AtMessage.hpp 第 64 行定义.
|
friend |
在文件 AtMessage.hpp 第 36 行定义.