Files
MuditaOS/module-db/queries/notifications/QueryNotificationsIncrement.cpp
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

39 lines
1017 B
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
#include "QueryNotificationsIncrement.hpp"
namespace db::query::notifications
{
Increment::Increment(NotificationsRecord::Key key, const utils::PhoneNumber::View &number)
: Query(Query::Type::Update), key(key), number(number)
{}
auto Increment::getKey() const noexcept -> NotificationsRecord::Key
{
return key;
}
auto Increment::getNumber() const noexcept -> const utils::PhoneNumber::View &
{
return number;
}
auto Increment::debugInfo() const -> std::string
{
return "Increment";
}
IncrementResult::IncrementResult(bool ret) : ret(ret)
{}
auto IncrementResult::getResult() const noexcept -> bool
{
return ret;
}
auto IncrementResult::debugInfo() const -> std::string
{
return "IncrementResult";
}
} // namespace db::query::notifications