mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-19 14:15:02 -04:00
SMS drafts are now properly removed. They will not be displayed anymore once the SMS is sent from the thread.
31 lines
730 B
C++
31 lines
730 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 "QuerySMSAdd.hpp"
|
|
|
|
using namespace std::literals::string_literals;
|
|
|
|
namespace db::query
|
|
{
|
|
SMSAdd::SMSAdd(const SMSRecord &_record) : Query(Query::Type::Create), record{_record}
|
|
{}
|
|
|
|
std::string SMSAdd::debugInfo() const
|
|
{
|
|
return "SMSAdd"s;
|
|
}
|
|
|
|
SMSAddResult::SMSAddResult(const SMSRecord &_record, bool _result) : record{_record}, result{_result}
|
|
{}
|
|
|
|
std::string SMSAddResult::debugInfo() const
|
|
{
|
|
return "SMSAddResult"s;
|
|
}
|
|
|
|
bool SMSAddResult::succeed() const noexcept
|
|
{
|
|
return result;
|
|
}
|
|
} // namespace db::query
|