mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-18 20:14:12 -04:00
32 lines
863 B
C++
32 lines
863 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#include "module-db/Interface/NotificationsRecord.hpp"
|
|
#include <Common/Query.hpp>
|
|
#include <string>
|
|
|
|
namespace db::query::notifications
|
|
{
|
|
class GetAll : public Query
|
|
{
|
|
public:
|
|
GetAll();
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class GetAllResult : public QueryResult
|
|
{
|
|
std::unique_ptr<std::vector<NotificationsRecord>> records;
|
|
|
|
public:
|
|
GetAllResult(std::unique_ptr<std::vector<NotificationsRecord>> records);
|
|
[[nodiscard]] auto getResult() -> std::unique_ptr<std::vector<NotificationsRecord>>;
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
} // namespace db::query::notifications
|