16#ifndef MIRAI_APP_MESSAGE_HPP_
17#define MIRAI_APP_MESSAGE_HPP_
39 std::string content_{};
41 bool isValid_()
const final {
return !this->content_.empty(); }
44 static constexpr bool SUPPORT_SEND_ =
true;
55 std::string
GetContent()
const {
return this->content_; }
60 this->content_ = std::move(content);
std::string GetContent() const
获取App消息内容
AppMessage(std::string content)
bool operator!=(const AppMessage &rhs)
bool operator==(const AppMessage &rhs)
AppMessage & SetContent(std::string content)
设置App消息内容