SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
message
message_logging.h
1
// Copyright The SOLA Contributors
2
//
3
// Licensed under the MIT License.
4
// For details on the licensing terms, see the LICENSE file.
5
// SPDX-License-Identifier: MIT
6
7
#ifndef MINHTON_MESSAGE_MESSAGE_LOGGING_H_
8
#define MINHTON_MESSAGE_MESSAGE_LOGGING_H_
9
10
#include <cstdint>
11
#include <string>
12
13
struct
MessageLoggingAdditionalInfo
{
14
std::string primary_other_uuid;
15
std::string secondary_other_uuid;
16
std::string content;
17
};
18
19
template
<
class
Archive>
void
serialize(Archive &archive,
MessageLoggingAdditionalInfo
&m) {
20
archive(m.primary_other_uuid, m.secondary_other_uuid, m.content);
21
}
22
23
struct
MessageLoggingInfo
{
24
int
cmd_type = -1;
25
int
mode = -1;
26
uint64_t event_id = 0;
27
uint64_t ref_event_id = 0;
28
std::string sender_uuid;
29
std::string target_uuid;
30
MessageLoggingAdditionalInfo
additional_info = {};
31
};
32
33
#endif
MessageLoggingAdditionalInfo
Definition
message_logging.h:13
MessageLoggingInfo
Definition
message_logging.h:23
Generated by
1.9.8