cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
QQ表情消息 更多...
#include <FaceMessage.hpp>
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::FACE |
static constexpr bool | SUPPORT_SEND_ = true |
额外继承的成员函数 | |
![]() | |
FaceMessageImpl ()=default | |
FaceMessageImpl (int64_t id) | |
FaceMessageImpl (std::string name) | |
bool | operator== (const FaceMessageImpl &rhs) |
bool | operator!= (const FaceMessageImpl &rhs) |
int64_t | GetId () const |
获取表情id 更多... | |
std::string | GetName () const |
获取表情名称 更多... | |
FaceMessage & | SetId (int64_t id) |
设置表情id 更多... | |
FaceMessage & | SetName (std::string name) |
设置表情名称。这一操作会清除已设置的id。 更多... | |
![]() | |
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 |
检查消息是否有效 更多... | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
![]() | |
bool | isValid_ () const override |
![]() | |
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 |
![]() | |
int64_t | id_ |
std::string | name_ |
QQ表情消息
表情可以通过 id
或 name
发送,优先级 id
> name
Member Variable | Default Value |
---|---|
FaceMessage::id_ | -1 |
FaceMessage::name_ | "" |
在文件 FaceMessage.hpp 第 85 行定义.
|
staticconstexprprotected |
在文件 FaceMessage.hpp 第 90 行定义.
|
staticconstexprprotected |
在文件 FaceMessage.hpp 第 91 行定义.