This repository has been archived by the owner on Jan 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.h
82 lines (69 loc) · 1.64 KB
/
enums.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#pragma once
#undef IGNORE
namespace cq {
namespace event {
enum Operation {
IGNORE = 0,
BLOCK = 1,
};
enum Type {
UNKNOWN,
MESSAGE,
NOTICE,
REQUEST,
};
} // namespace event
namespace message {
enum Type {
UNKNOWN,
PRIVATE,
GROUP,
DISCUSS,
};
enum SubType {
SUBTYPE_DEFAULT = 1,
PRIVATE_FRIEND = 11,
PRIVATE_OTHER = 1,
PRIVATE_GROUP = 2,
PRIVATE_DISCUSS = 3,
};
} // namespace message
namespace notice {
enum Type {
UNKNOWN,
GROUP_UPLOAD,
GROUP_ADMIN,
GROUP_MEMBER_DECREASE,
GROUP_MEMBER_INCREASE,
GROUP_BAN,
FRIEND_ADD,
};
enum SubType {
SUBTYPE_DEFAULT = 1,
GROUP_ADMIN_UNSET = 1,
GROUP_ADMIN_SET = 2,
GROUP_MEMBER_DECREASE_LEAVE = 1,
GROUP_MEMBER_DECREASE_KICK = 2,
GROUP_MEMBER_INCREASE_APPROVE = 1,
GROUP_MEMBER_INCREASE_INVITE = 2,
GROUP_BAN_LIFT_BAN = 1,
GROUP_BAN_BAN = 2,
};
} // namespace notice
namespace request {
enum Operation {
APPROVE = 1,
REJECT = 2,
};
enum Type {
UNKNOWN,
FRIEND,
GROUP,
};
enum SubType {
SUBTYPE_DEFAULT = 1,
GROUP_ADD = 1,
GROUP_INVITE = 2,
};
} // namespace request
} // namespace cq