// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "QuerySMSGetForList.hpp"
#include <utility>
namespace db::query
{
SMSGetForList::SMSGetForList(unsigned int threadId, unsigned int offset, unsigned int limit, unsigned int numberID)
: Query(Query::Type::Read), threadId(threadId), offset(offset), limit(limit), numberID(numberID)
{}
auto SMSGetForList::debugInfo() const -> std::string
{
return "SMSGetForList";
}
SMSGetForListResult::SMSGetForListResult(std::vector<SMSRecord> result,
unsigned int count,
SMSRecord draft,
const utils::PhoneNumber::View &number)
: result(std::move(result)), count(count), draft(std::move(draft)), number(number)
{}
auto SMSGetForListResult::getResults() const -> std::vector<SMSRecord>
{
return result;
}
auto SMSGetForListResult::getCount() const -> unsigned int
{
return count;
}
auto SMSGetForListResult::getDraft() const -> SMSRecord
{
return draft;
}
auto SMSGetForListResult::getNumber() const -> utils::PhoneNumber::View
{
return number;
}
auto SMSGetForListResult::debugInfo() const -> std::string
{
return "SMSGetForListResult";
}
} // namespace db::query