mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-21 13:35:04 -04:00
34 lines
810 B
C++
34 lines
810 B
C++
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "QuerySettingsUpdate_v2.hpp"
|
|
|
|
namespace db::query::settings
|
|
{
|
|
UpdateQuery::UpdateQuery(const SettingsRecord_v2 &record) : Query{Query::Type::Update}, record{record}
|
|
{}
|
|
|
|
auto UpdateQuery::debugInfo() const -> std::string
|
|
{
|
|
return "Update";
|
|
}
|
|
|
|
auto UpdateQuery::getRecord() const -> const SettingsRecord_v2 &
|
|
{
|
|
return record;
|
|
}
|
|
|
|
UpdateResult::UpdateResult(const bool &value) : value{value}
|
|
{}
|
|
|
|
auto UpdateResult::getValue() const -> bool
|
|
{
|
|
return value;
|
|
}
|
|
|
|
auto UpdateResult::debugInfo() const -> std::string
|
|
{
|
|
return "UpdateResult";
|
|
}
|
|
} // namespace db::query::settings
|