cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
文字消息 更多...
#include <PlainMessage.hpp>
Public 成员函数 | |
PlainMessage ()=default | |
PlainMessage (std::string text) | |
bool | operator== (const PlainMessage &rhs) |
bool | operator!= (const PlainMessage &rhs) |
std::string | GetText () const |
获取文字消息 更多... | |
PlainMessage & | SetText (std::string text) |
设置文字消息 更多... | |
![]() | |
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 属性 | |
std::string | text_ {} |
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::PLAIN |
static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
|
default |
|
inline |
在文件 PlainMessage.hpp 第 48 行定义.
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 PlainMessage.hpp 第 44 行定义.
|
inline |
在文件 PlainMessage.hpp 第 50 行定义.
|
inline |
在文件 PlainMessage.hpp 第 52 行定义.
|
inline |
获取文字消息
在文件 PlainMessage.hpp 第 55 行定义.
|
inline |
设置文字消息
在文件 PlainMessage.hpp 第 58 行定义.
|
protected |
在文件 PlainMessage.hpp 第 39 行定义.
|
staticconstexprprotected |
在文件 PlainMessage.hpp 第 41 行定义.
|
staticconstexprprotected |
在文件 PlainMessage.hpp 第 42 行定义.