~aleteoryx/muditaos

ref: a3aa441b0fbb94956cdafaebd92b15b5c93da59f muditaos/module-db/queries/notifications/QueryNotificationsGet.hpp -rw-r--r-- 837 bytes
a3aa441b — Bartosz Cichocki [EGD-6682] Fix BT name change bug 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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 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