mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-29 11:25:27 -04:00
[EGD-4487] Application notes implemented. (#1094)
* [EGD-4487] Implementation of notes application.
This commit is contained in:
33
module-db/queries/notes/QueryNoteRemove.cpp
Normal file
33
module-db/queries/notes/QueryNoteRemove.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
|
||||
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
||||
|
||||
#include "QueryNoteRemove.hpp"
|
||||
|
||||
namespace db::query
|
||||
{
|
||||
QueryNoteRemove::QueryNoteRemove(unsigned int recordId) : Query(Query::Type::Delete), recordId{recordId}
|
||||
{}
|
||||
|
||||
unsigned int QueryNoteRemove::getRecordId() const noexcept
|
||||
{
|
||||
return recordId;
|
||||
}
|
||||
|
||||
std::string QueryNoteRemove::debugInfo() const
|
||||
{
|
||||
return {"QueryNoteRemove"};
|
||||
}
|
||||
|
||||
NoteRemoveResult::NoteRemoveResult(bool isSuccess) : isSuccess{isSuccess}
|
||||
{}
|
||||
|
||||
bool NoteRemoveResult::succeed() const noexcept
|
||||
{
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
auto NoteRemoveResult::debugInfo() const -> std::string
|
||||
{
|
||||
return {"NoteRemoveResult"};
|
||||
}
|
||||
} // namespace db::query
|
||||
Reference in New Issue
Block a user