mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-07-19 20:44:44 -04:00
36 lines
1018 B
C++
36 lines
1018 B
C++
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include "QueryCheckContactsListDuplicates.hpp"
|
|
#include <string>
|
|
|
|
using namespace db::query;
|
|
|
|
CheckContactsListDuplicates::CheckContactsListDuplicates(std::vector<ContactRecord> contacts)
|
|
: Query(Query::Type::Read), contacts(std::move(contacts))
|
|
{}
|
|
|
|
std::vector<ContactRecord> &CheckContactsListDuplicates::getContactsList()
|
|
{
|
|
return contacts;
|
|
}
|
|
|
|
[[nodiscard]] auto CheckContactsListDuplicates::debugInfo() const -> std::string
|
|
{
|
|
return "CheckContactsListDuplicates";
|
|
}
|
|
|
|
CheckContactsListDuplicatesResult::CheckContactsListDuplicatesResult(std::vector<ContactRecord> duplicates)
|
|
: duplicates(std::move(duplicates))
|
|
{}
|
|
|
|
std::vector<ContactRecord> &CheckContactsListDuplicatesResult::getDuplicates()
|
|
{
|
|
return duplicates;
|
|
}
|
|
|
|
[[nodiscard]] auto CheckContactsListDuplicatesResult::debugInfo() const -> std::string
|
|
{
|
|
return "CheckContactsListDuplicatesResult";
|
|
}
|