cpp-mirai-client
v2.6.1
cpp client for mirai-api-http
|
合并转发消息 更多...
#include <ForwardMessage.hpp>
类 | |
class | Node |
转发消息节点,代表一条转发消息 更多... | |
Public 成员函数 | |
ForwardMessage () | |
ForwardMessage (const ForwardMessage &) | |
ForwardMessage & | operator= (const ForwardMessage &) |
ForwardMessage (ForwardMessage &&) | |
ForwardMessage & | operator= (ForwardMessage &&) |
~ForwardMessage () final | |
std::optional< std::string > | GetDisplayTitle () const |
获取合并转发消息的标题("xxx的聊天记录"),为空代表默认值 更多... | |
std::optional< std::string > | GetDisplayBrief () const |
获取合并转发消息的简略信息("[聊天记录]"),为空代表默认值 更多... | |
std::optional< std::string > | GetDisplaySource () const |
获取合并转发消息的来源显示("聊天记录"),为空代表默认值 更多... | |
std::optional< std::vector< std::string > > | GetDisplayPreview () const |
获取合并转发消息的内容预览,为空代表默认值 更多... | |
std::optional< std::string > | GetDisplaySummary () const |
获取合并转发消息的内容总结("查看x条转发消息"),为空代表默认值 更多... | |
void | SetDisplayTitle (std::string title) |
设置合并转发消息的标题("xxx的聊天记录") 更多... | |
void | SetDisplayBrief (std::string brief) |
设置合并转发消息的简略信息("[聊天记录]") 更多... | |
void | SetDisplaySource (std::string source) |
设置合并转发消息的来源显示("聊天记录") 更多... | |
void | SetDisplayPreview (std::vector< std::string > preview) |
设置合并转发消息的内容预览 更多... | |
void | SetDisplaySummary (std::string summary) |
设置合并转发消息的内容总结("查看x条转发消息") 更多... | |
![]() | |
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 类型 | |
using | NodeList = std::vector< Node > |
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 属性 | |
NodeList | NodeList_ |
std::optional< std::string > | title_ |
std::optional< std::string > | brief_ |
std::optional< std::string > | source_ |
std::optional< std::vector< std::string > > | preview_ |
std::optional< std::string > | summary_ |
静态 Protected 属性 | |
static constexpr MessageTypes | TYPE_ = MessageTypes::FORWARD |
static constexpr bool | SUPPORT_SEND_ = true |
using | value_type = NodeList::value_type |
STL-like interface 更多... | |
using | allocator_type = NodeList::allocator_type |
STL-like interface 更多... | |
using | size_type = NodeList::size_type |
STL-like interface 更多... | |
using | difference_type = NodeList::difference_type |
STL-like interface 更多... | |
using | reference = NodeList::reference |
STL-like interface 更多... | |
using | const_reference = NodeList::const_reference |
STL-like interface 更多... | |
using | pointer = NodeList::pointer |
STL-like interface 更多... | |
using | const_pointer = NodeList::const_pointer |
STL-like interface 更多... | |
using | reverse_iterator = NodeList::reverse_iterator |
STL-like interface 更多... | |
using | const_reverse_iterator = NodeList::const_reverse_iterator |
STL-like interface 更多... | |
using | iterator = NodeList::iterator |
STL-like interface 更多... | |
using | const_iterator = NodeList::const_iterator |
STL-like interface 更多... | |
bool | empty () const noexcept |
STL-like interface 更多... | |
size_type | size () const noexcept |
STL-like interface 更多... | |
void | reserve (size_type new_cap) |
STL-like interface 更多... | |
void | shrink_to_fit () noexcept |
STL-like interface 更多... | |
size_type | max_size () const noexcept |
STL-like interface 更多... | |
size_type | capacity () const noexcept |
STL-like interface 更多... | |
const_reference | at (size_type n) const |
STL-like interface 更多... | |
reference | at (size_type n) |
STL-like interface 更多... | |
const_reference | operator[] (size_type n) const noexcept |
STL-like interface 更多... | |
reference | operator[] (size_type n) noexcept |
STL-like interface 更多... | |
const_reference | back () const |
STL-like interface 更多... | |
reference | back () |
STL-like interface 更多... | |
const_reference | front () const |
STL-like interface 更多... | |
reference | front () |
STL-like interface 更多... | |
void | clear () noexcept |
STL-like interface 更多... | |
iterator | insert (const_iterator pos, const_reference value) |
STL-like interface 更多... | |
iterator | insert (const_iterator pos, value_type &&value) |
STL-like interface 更多... | |
iterator | insert (const_iterator pos, size_type count, const_reference value) |
STL-like interface 更多... | |
template<class InputIt > | |
iterator | insert (const_iterator pos, InputIt first, InputIt last) |
STL-like interface 更多... | |
iterator | insert (const_iterator pos, std::initializer_list< value_type > ilist) |
STL-like interface 更多... | |
template<class... Args> | |
iterator | emplace (const_iterator pos, Args &&... args) |
STL-like interface 更多... | |
iterator | erase (const_iterator pos) |
STL-like interface 更多... | |
iterator | erase (const_iterator first, const_iterator last) |
STL-like interface 更多... | |
void | push_back (const_reference node) |
STL-like interface 更多... | |
void | push_back (value_type &&node) |
STL-like interface 更多... | |
template<class... Args> | |
reference | emplace_back (Args &&... args) |
STL-like interface 更多... | |
void | pop_back () |
STL-like interface 更多... | |
void | resize (size_type count) |
STL-like interface 更多... | |
void | resize (size_type count, const value_type &value) |
STL-like interface 更多... | |
iterator | begin () noexcept |
STL-like interface 更多... | |
const_iterator | begin () const noexcept |
STL-like interface 更多... | |
const_iterator | cbegin () const noexcept |
STL-like interface 更多... | |
iterator | end () noexcept |
STL-like interface 更多... | |
const_iterator | end () const noexcept |
STL-like interface 更多... | |
const_iterator | cend () const noexcept |
STL-like interface 更多... | |
reverse_iterator | rbegin () noexcept |
STL-like interface 更多... | |
const_reverse_iterator | crbegin () const noexcept |
STL-like interface 更多... | |
reverse_iterator | rend () noexcept |
STL-like interface 更多... | |
const_reverse_iterator | crend () const noexcept |
STL-like interface 更多... | |
额外继承的成员函数 | |
![]() | |
static constexpr MessageTypes | GetType () |
static constexpr bool | isSendSupported () |
合并转发消息
可以使用类似于STL容器的方式访问各元素
Member Variable | Default Value |
---|---|
ForwardMessage::NodeList_ | {} |
ForwardMessage::title_ | std::nullopt |
ForwardMessage::brief_ | std::nullopt |
ForwardMessage::source_ | std::nullopt |
ForwardMessage::preview_ | std::nullopt |
ForwardMessage::summary_ | std::nullopt |
在文件 ForwardMessage.hpp 第 45 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 53 行定义.
using Mirai::ForwardMessage::value_type = NodeList::value_type |
STL-like interface
在文件 ForwardMessage.hpp 第 145 行定义.
using Mirai::ForwardMessage::allocator_type = NodeList::allocator_type |
STL-like interface
在文件 ForwardMessage.hpp 第 146 行定义.
using Mirai::ForwardMessage::size_type = NodeList::size_type |
STL-like interface
在文件 ForwardMessage.hpp 第 147 行定义.
using Mirai::ForwardMessage::difference_type = NodeList::difference_type |
STL-like interface
在文件 ForwardMessage.hpp 第 148 行定义.
using Mirai::ForwardMessage::reference = NodeList::reference |
STL-like interface
在文件 ForwardMessage.hpp 第 149 行定义.
using Mirai::ForwardMessage::const_reference = NodeList::const_reference |
STL-like interface
在文件 ForwardMessage.hpp 第 150 行定义.
using Mirai::ForwardMessage::pointer = NodeList::pointer |
STL-like interface
在文件 ForwardMessage.hpp 第 151 行定义.
using Mirai::ForwardMessage::const_pointer = NodeList::const_pointer |
STL-like interface
在文件 ForwardMessage.hpp 第 152 行定义.
using Mirai::ForwardMessage::reverse_iterator = NodeList::reverse_iterator |
STL-like interface
在文件 ForwardMessage.hpp 第 153 行定义.
using Mirai::ForwardMessage::const_reverse_iterator = NodeList::const_reverse_iterator |
STL-like interface
在文件 ForwardMessage.hpp 第 154 行定义.
using Mirai::ForwardMessage::iterator = NodeList::iterator |
STL-like interface
在文件 ForwardMessage.hpp 第 155 行定义.
using Mirai::ForwardMessage::const_iterator = NodeList::const_iterator |
STL-like interface
在文件 ForwardMessage.hpp 第 156 行定义.
|
default |
|
default |
|
default |
|
finaldefault |
|
finalprotectedvirtual |
实现了 Mirai::IMessage.
在文件 ForwardMessage.cpp 第 30 行定义.
|
default |
|
default |
|
inline |
获取合并转发消息的标题("xxx的聊天记录"),为空代表默认值
在文件 ForwardMessage.hpp 第 76 行定义.
|
inline |
获取合并转发消息的简略信息("[聊天记录]"),为空代表默认值
在文件 ForwardMessage.hpp 第 82 行定义.
|
inline |
获取合并转发消息的来源显示("聊天记录"),为空代表默认值
在文件 ForwardMessage.hpp 第 88 行定义.
|
inline |
获取合并转发消息的内容预览,为空代表默认值
在文件 ForwardMessage.hpp 第 94 行定义.
|
inline |
获取合并转发消息的内容总结("查看x条转发消息"),为空代表默认值
在文件 ForwardMessage.hpp 第 100 行定义.
|
inline |
设置合并转发消息的标题("xxx的聊天记录")
在文件 ForwardMessage.hpp 第 107 行定义.
|
inline |
设置合并转发消息的简略信息("[聊天记录]")
在文件 ForwardMessage.hpp 第 113 行定义.
|
inline |
设置合并转发消息的来源显示("聊天记录")
在文件 ForwardMessage.hpp 第 119 行定义.
|
inline |
设置合并转发消息的内容预览
在文件 ForwardMessage.hpp 第 125 行定义.
|
inline |
设置合并转发消息的内容总结("查看x条转发消息")
在文件 ForwardMessage.hpp 第 131 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 37 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 41 行定义.
void Mirai::ForwardMessage::reserve | ( | size_type | new_cap | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 45 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 49 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 53 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 57 行定义.
ForwardMessage::const_reference Mirai::ForwardMessage::at | ( | size_type | n | ) | const |
STL-like interface
在文件 ForwardMessage.cpp 第 62 行定义.
ForwardMessage::reference Mirai::ForwardMessage::at | ( | size_type | n | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 66 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 70 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 74 行定义.
ForwardMessage::const_reference Mirai::ForwardMessage::back | ( | ) | const |
STL-like interface
在文件 ForwardMessage.cpp 第 78 行定义.
ForwardMessage::reference Mirai::ForwardMessage::back | ( | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 82 行定义.
ForwardMessage::const_reference Mirai::ForwardMessage::front | ( | ) | const |
STL-like interface
在文件 ForwardMessage.cpp 第 86 行定义.
ForwardMessage::reference Mirai::ForwardMessage::front | ( | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 90 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 95 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::insert | ( | const_iterator | pos, |
const_reference | value | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 99 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::insert | ( | const_iterator | pos, |
value_type && | value | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 103 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::insert | ( | const_iterator | pos, |
size_type | count, | ||
const_reference | value | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 107 行定义.
|
inline |
STL-like interface
在文件 ForwardMessage.hpp 第 178 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::insert | ( | const_iterator | pos, |
std::initializer_list< value_type > | ilist | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 111 行定义.
|
inline |
STL-like interface
在文件 ForwardMessage.hpp 第 183 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::erase | ( | const_iterator | pos | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 115 行定义.
ForwardMessage::iterator Mirai::ForwardMessage::erase | ( | const_iterator | first, |
const_iterator | last | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 119 行定义.
void Mirai::ForwardMessage::push_back | ( | const_reference | node | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 123 行定义.
void Mirai::ForwardMessage::push_back | ( | value_type && | node | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 127 行定义.
|
inline |
STL-like interface
在文件 ForwardMessage.hpp 第 191 行定义.
void Mirai::ForwardMessage::pop_back | ( | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 131 行定义.
void Mirai::ForwardMessage::resize | ( | size_type | count | ) |
STL-like interface
在文件 ForwardMessage.cpp 第 135 行定义.
void Mirai::ForwardMessage::resize | ( | size_type | count, |
const value_type & | value | ||
) |
STL-like interface
在文件 ForwardMessage.cpp 第 139 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 144 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 148 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 152 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 156 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 160 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 164 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 168 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 172 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 176 行定义.
|
noexcept |
STL-like interface
在文件 ForwardMessage.cpp 第 180 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 54 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 56 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 57 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 58 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 59 行定义.
|
protected |
在文件 ForwardMessage.hpp 第 60 行定义.
|
staticconstexprprotected |
在文件 ForwardMessage.hpp 第 62 行定义.
|
staticconstexprprotected |
在文件 ForwardMessage.hpp 第 63 行定义.