mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 10:59:30 -04:00
feat: Add session layout
This commit is contained in:
20
sources/Session/MessageSerializer.hpp
Normal file
20
sources/Session/MessageSerializer.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
// Copyright (C) 2024-2026 Petr Mironychev
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QJsonObject>
|
||||
|
||||
#include "Message.hpp"
|
||||
|
||||
namespace QodeAssist {
|
||||
|
||||
class MessageSerializer
|
||||
{
|
||||
public:
|
||||
static QJsonObject toJson(const Message &message);
|
||||
|
||||
static Message fromJson(const QJsonObject &json, bool *ok = nullptr);
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
Reference in New Issue
Block a user