cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
文件消息 更多...
#include <FileMessage.hpp>
Public 成员函数 | |
FileMessage ()=default | |
bool | operator== (const FileMessage &rhs) |
bool | operator!= (const FileMessage &rhs) |
std::string | GetId () const |
获取文件id 更多... | |
std::string | GetName () const |
获取文件名 更多... | |
int64_t | GetSize () const |
获取文件大小 更多... | |
![]() | |
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 | id_ {} |
std::string | name_ {} |
int64_t | size_ = 0 |
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::FILE |
static constexpr bool | SUPPORT_SEND_ = false |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
文件消息
仅用于接收,发送时将会被无视
Member Variable | Default Value |
---|---|
FileMessage::id_ | "" |
FileMessage::name_ | "" |
FileMessage::size_ | 0 |
在文件 FileMessage.hpp 第 37 行定义.
|
default |
|
inlinefinalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 FileMessage.hpp 第 46 行定义.
|
inline |
在文件 FileMessage.hpp 第 54 行定义.
|
inline |
在文件 FileMessage.hpp 第 56 行定义.
|
inline |
获取文件id
在文件 FileMessage.hpp 第 59 行定义.
|
inline |
获取文件名
在文件 FileMessage.hpp 第 61 行定义.
|
inline |
获取文件大小
在文件 FileMessage.hpp 第 63 行定义.
|
protected |
在文件 FileMessage.hpp 第 42 行定义.
|
protected |
在文件 FileMessage.hpp 第 43 行定义.
|
protected |
在文件 FileMessage.hpp 第 44 行定义.
|
staticconstexprprotected |
在文件 FileMessage.hpp 第 48 行定义.
|
staticconstexprprotected |
在文件 FileMessage.hpp 第 49 行定义.