mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-26 00:18:31 -04:00
30 lines
701 B
C++
30 lines
701 B
C++
#pragma once
|
|
|
|
#include "module-db/Interface/NotificationsRecord.hpp"
|
|
#include <Common/Query.hpp>
|
|
#include <string>
|
|
|
|
namespace db::query::notifications
|
|
{
|
|
class Get : public Query
|
|
{
|
|
public:
|
|
const NotificationsRecord::Key key;
|
|
Get(NotificationsRecord::Key key);
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class GetResult : public QueryResult
|
|
{
|
|
NotificationsRecord record;
|
|
|
|
public:
|
|
GetResult(NotificationsRecord record);
|
|
[[nodiscard]] auto getResult() const -> NotificationsRecord;
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
} // namespace db::query::notifications
|