mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-19 05:57:30 -04:00
[EGD-4487] Application notes implemented. (#1094)
* [EGD-4487] Implementation of notes application.
This commit is contained in:
33
module-db/queries/notes/QueryNoteStore.cpp
Normal file
33
module-db/queries/notes/QueryNoteStore.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 "QueryNoteStore.hpp"
|
||||
|
||||
namespace db::query
|
||||
{
|
||||
QueryNoteStore::QueryNoteStore(NotesRecord record) : Query(Query::Type::Create), record{std::move(record)}
|
||||
{}
|
||||
|
||||
const NotesRecord &QueryNoteStore::getRecord() const noexcept
|
||||
{
|
||||
return record;
|
||||
}
|
||||
|
||||
std::string QueryNoteStore::debugInfo() const
|
||||
{
|
||||
return {"QueryNoteStore"};
|
||||
}
|
||||
|
||||
NoteStoreResult::NoteStoreResult(bool isSuccess) : isSuccess{isSuccess}
|
||||
{}
|
||||
|
||||
bool NoteStoreResult::succeed() const noexcept
|
||||
{
|
||||
return isSuccess;
|
||||
}
|
||||
|
||||
auto NoteStoreResult::debugInfo() const -> std::string
|
||||
{
|
||||
return {"NoteStoreResult"};
|
||||
}
|
||||
} // namespace db::query
|
||||
Reference in New Issue
Block a user