libkazv
Loading...
Searching...
No Matches
local-draft.hpp
Go to the documentation of this file.
1/*
2 * This file is part of libkazv.
3 * SPDX-FileCopyrightText: 2026 nannanko <nannankokazv.moe>
4 * SPDX-License-Identifier: AGPL-3.0-or-later
5 */
6
7#pragma once
8#include <libkazv-config.hpp>
9
10#include <cstdint>
11#include <string>
12
13#include <boost/serialization/split_free.hpp>
14#include <boost/serialization/version.hpp>
15
16namespace Kazv
17{
22 {
23 std::string text;
24 std::string relType;
25 std::string relatedEventId;
26 friend bool operator==(const LocalDraft &a, const LocalDraft &b) = default;
27 friend bool operator!=(const LocalDraft &a, const LocalDraft &b) = default;
28 };
29
30 template<class Archive>
31 void serialize(Archive &ar, LocalDraft &draft, std::uint32_t const /*version*/)
32 {
33 ar
34 & draft.relType
35 & draft.relatedEventId
36 & draft.text
37 ;
38 }
39}
40
41BOOST_CLASS_VERSION(Kazv::LocalDraft, 0)
Definition location.hpp:10
void serialize(Archive &ar, ClientModel &m, std::uint32_t const version)
Definition client-model.hpp:694
Local draft.
Definition local-draft.hpp:22
std::string text
Definition local-draft.hpp:23
std::string relType
Definition local-draft.hpp:24
std::string relatedEventId
Definition local-draft.hpp:25
friend bool operator==(const LocalDraft &a, const LocalDraft &b)=default
friend bool operator!=(const LocalDraft &a, const LocalDraft &b)=default