cpp-mirai-client  v2.6.1
cpp client for mirai-api-http
AtAllMessage.hpp
浏览该文件的文档.
1// Copyright (C) 2022 Numendacil and contributors
2//
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU Affero General Public License as
5// published by the Free Software Foundation, either version 3 of the
6// License, or (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11// GNU Affero General Public License for more details.
12//
13// You should have received a copy of the GNU Affero General Public License
14// along with this program. If not, see <http://www.gnu.org/licenses/>.
15
16#ifndef MIRAI_ATALL_MESSAGE_HPP_
17#define MIRAI_ATALL_MESSAGE_HPP_
18
19#include <string>
20
21#include "IMessage.hpp"
22
23namespace Mirai
24{
25
26/**
27 * @brief At全体成员消息
28 *
29 */
30class AtAllMessage final : public IMessageImpl<AtAllMessage>
31{
32 friend class IMessageImpl<AtAllMessage>;
33
34private:
35 bool isValid_() const final { return true; }
36
37 static constexpr MessageTypes TYPE_ = MessageTypes::AT_ALL;
38 static constexpr bool SUPPORT_SEND_ = true;
39
40public:
41 struct Serializable;
42};
43
44template<> struct GetType<AtAllMessage::GetType()>
45{
47};
48
49} // namespace Mirai
50
51
52#endif
At全体成员消息
CRTP helper layer
Definition: IMessage.hpp:78
所有mirai相关的对象的命名空间
用于类型之间转换的辅助模板