Files
MuditaOS/module-db/queries/messages/sms/QuerySMSAdd.hpp
Piotr Tański d0c5f08c88 [EGD-7528] Fix for removing SMS drafts
SMS drafts are now properly removed.
They will not be displayed anymore once the SMS is sent from the thread.
2021-10-22 17:54:41 +02:00

35 lines
798 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#pragma once
#include <cstdint>
#include <Common/Query.hpp>
#include <module-db/Interface/SMSRecord.hpp>
namespace db::query
{
class SMSAdd : public Query
{
public:
explicit SMSAdd(const SMSRecord &_record);
[[nodiscard]] std::string debugInfo() const override;
SMSRecord record;
};
class SMSAddResult : public QueryResult
{
public:
explicit SMSAddResult(const SMSRecord &_record, bool _result);
[[nodiscard]] std::string debugInfo() const override;
[[nodiscard]] bool succeed() const noexcept;
SMSRecord record;
bool result;
};
} // namespace db::query