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
23
namespace
Mirai
24
{
25
26
/**
27
* @brief At全体成员消息
28
*
29
*/
30
class
AtAllMessage
final :
public
IMessageImpl
<AtAllMessage>
31
{
32
friend
class
IMessageImpl
<
AtAllMessage
>;
33
34
private
:
35
bool
isValid_()
const
final
{
return
true
; }
36
37
static
constexpr
MessageTypes
TYPE_ =
MessageTypes::AT_ALL
;
38
static
constexpr
bool
SUPPORT_SEND_ =
true
;
39
40
public
:
41
struct
Serializable;
42
};
43
44
template
<>
struct
GetType
<
AtAllMessage
::
GetType
()>
45
{
46
using
type
=
AtAllMessage
;
47
};
48
49
}
// namespace Mirai
50
51
52
#endif
IMessage.hpp
Mirai::AtAllMessage
At全体成员消息
Definition:
AtAllMessage.hpp:31
Mirai::IMessageImpl
CRTP helper layer
Definition:
IMessage.hpp:78
Mirai
所有mirai相关的对象的命名空间
Definition:
HttpWsAdaptor.hpp:25
Mirai::MessageTypes
MessageTypes
Definition:
MessageTypes.hpp:26
Mirai::MessageTypes::AT_ALL
@ AT_ALL
Mirai::GetType
用于类型之间转换的辅助模板
Definition:
MessageTypes.hpp:65
libmirai
models
libmirai
Messages
AtAllMessage.hpp
制作者
1.9.4