16#ifndef MIRAI_FORWARD_MESSAGE_HPP_
17#define MIRAI_FORWARD_MESSAGE_HPP_
59 std::optional<std::vector<std::string>>
preview_;
109 this->title_ = std::move(title);
115 this->brief_ = std::move(brief);
121 this->source_ = std::move(source);
127 this->preview_ = std::move(preview);
133 this->summary_ = std::move(summary);
158 bool empty() const noexcept;
174 void clear() noexcept;
180 return this->NodeList_.insert(pos, std::forward<InputIt>(first), std::forward<InputIt>(last));
185 return this->NodeList_.emplace(pos, std::forward<Args>(args)...);
193 return this->NodeList_.emplace_back(std::forward<Args>(args)...);
std::optional< std::string > GetDisplayTitle() const
获取合并转发消息的标题("xxx的聊天记录"),为空代表默认值
size_type size() const noexcept
STL-like interface
NodeList::const_reference const_reference
STL-like interface
size_type capacity() const noexcept
STL-like interface
iterator insert(const_iterator pos, const_reference value)
STL-like interface
iterator begin() noexcept
STL-like interface
void SetDisplaySource(std::string source)
设置合并转发消息的来源显示("聊天记录")
void pop_back()
STL-like interface
const_iterator cend() const noexcept
STL-like interface
void push_back(const_reference node)
STL-like interface
NodeList::pointer pointer
STL-like interface
reverse_iterator rend() noexcept
STL-like interface
void shrink_to_fit() noexcept
STL-like interface
void SetDisplaySummary(std::string summary)
设置合并转发消息的内容总结("查看x条转发消息")
NodeList::iterator iterator
STL-like interface
std::optional< std::string > source_
bool empty() const noexcept
STL-like interface
NodeList::allocator_type allocator_type
STL-like interface
const_reverse_iterator crbegin() const noexcept
STL-like interface
NodeList::const_pointer const_pointer
STL-like interface
void resize(size_type count)
STL-like interface
static constexpr MessageTypes TYPE_
void SetDisplayTitle(std::string title)
设置合并转发消息的标题("xxx的聊天记录")
const_reference front() const
STL-like interface
const_reference at(size_type n) const
STL-like interface
std::optional< std::string > GetDisplaySource() const
获取合并转发消息的来源显示("聊天记录"),为空代表默认值
size_type max_size() const noexcept
STL-like interface
iterator erase(const_iterator pos)
STL-like interface
std::optional< std::string > summary_
static constexpr bool SUPPORT_SEND_
const_iterator cbegin() const noexcept
STL-like interface
std::optional< std::vector< std::string > > preview_
std::optional< std::string > brief_
bool isValid_() const final
void SetDisplayBrief(std::string brief)
设置合并转发消息的简略信息("[聊天记录]")
std::optional< std::string > title_
NodeList::const_iterator const_iterator
STL-like interface
std::optional< std::vector< std::string > > GetDisplayPreview() const
获取合并转发消息的内容预览,为空代表默认值
void reserve(size_type new_cap)
STL-like interface
NodeList::value_type value_type
STL-like interface
NodeList::size_type size_type
STL-like interface
NodeList::difference_type difference_type
STL-like interface
std::optional< std::string > GetDisplayBrief() const
获取合并转发消息的简略信息("[聊天记录]"),为空代表默认值
NodeList::reverse_iterator reverse_iterator
STL-like interface
iterator emplace(const_iterator pos, Args &&... args)
STL-like interface
void SetDisplayPreview(std::vector< std::string > preview)
设置合并转发消息的内容预览
reverse_iterator rbegin() noexcept
STL-like interface
const_reference back() const
STL-like interface
std::vector< Node > NodeList
void clear() noexcept
STL-like interface
reference emplace_back(Args &&... args)
STL-like interface
std::optional< std::string > GetDisplaySummary() const
获取合并转发消息的内容总结("查看x条转发消息"),为空代表默认值
const_reverse_iterator crend() const noexcept
STL-like interface
iterator end() noexcept
STL-like interface
NodeList::reference reference
STL-like interface
NodeList::const_reverse_iterator const_reverse_iterator
STL-like interface