mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-20 04:54:25 -04:00
[EGD-4400] added contact ID sending after contact adding Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
26 lines
638 B
C++
26 lines
638 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 "QueryContactAdd.hpp"
|
|
#include "ContactRecord.hpp"
|
|
|
|
#include <string>
|
|
|
|
using namespace db::query;
|
|
|
|
ContactAdd::ContactAdd(const ContactRecord &rec) : Query(Query::Type::Read), rec(std::move(rec))
|
|
{}
|
|
|
|
ContactAddResult::ContactAddResult(bool result, unsigned int id) : result(result), id(id)
|
|
{}
|
|
|
|
[[nodiscard]] auto ContactAdd::debugInfo() const -> std::string
|
|
{
|
|
return "ContactAdd";
|
|
}
|
|
|
|
[[nodiscard]] auto ContactAddResult::debugInfo() const -> std::string
|
|
{
|
|
return "ContactAddResult";
|
|
}
|