26 lines
630 B
C++
26 lines
630 B
C++
/*
|
|
This file is part of Telegram Desktop,
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
For license and copyright information please follow this link:
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
*/
|
|
#pragma once
|
|
|
|
#include "e2e_cloud/group/group_state.h"
|
|
|
|
#include <QtCore/QByteArray>
|
|
|
|
#include <optional>
|
|
|
|
namespace E2ECloud {
|
|
|
|
class ProtectedGroupStateCodecV1 final {
|
|
public:
|
|
[[nodiscard]] std::optional<QByteArray> encode(
|
|
const ProtectedGroupState &state) const;
|
|
[[nodiscard]] std::optional<ProtectedGroupState> decode(
|
|
const QByteArray &bytes) const;
|
|
};
|
|
|
|
} // namespace E2ECloud
|