Files
MuditaOS/module-db/queries/notifications/QueryNotificationsDecrement.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

40 lines
1.0 KiB
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include <Interface/NotificationsRecord.hpp>
#include <Common/Query.hpp>
#include <string>
#include <PhoneNumber.hpp>
#include <cstdint>
namespace db::query::notifications
{
class Decrement : public Query
{
const NotificationsRecord::Key key;
const size_t count;
public:
Decrement(NotificationsRecord::Key key, const size_t count);
[[nodiscard]] auto getKey() const noexcept -> NotificationsRecord::Key;
[[nodiscard]] auto getCount() const noexcept -> size_t;
[[nodiscard]] auto debugInfo() const -> std::string override;
};
class DecrementResult : public QueryResult
{
bool ret;
public:
explicit DecrementResult(bool ret);
[[nodiscard]] auto getResult() const noexcept -> bool;
[[nodiscard]] auto debugInfo() const -> std::string override;
};
} // namespace db::query::notifications