~aleteoryx/muditaos

ref: 91e29f1cacf03a1448efbc72145a396c16df873d muditaos/module-db/queries/sms/QuerySMSGetByText.hpp -rw-r--r-- 742 bytes
91e29f1c — Bartek Cichocki [EGD-3486] Implementation of SMS handling in service-desktop 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include <Tables/ThreadsTable.hpp>
#include <Common/Query.hpp>
#include <string>
#include "Interface/SMSRecord.hpp"

namespace db::query
{
    /// implements search for SMS by type
    class SMSGetByText : public Query
    {
      public:
        SMSGetByText(std::string text);
        std::string text;
        [[nodiscard]] auto debugInfo() const -> std::string override;
    };

    class SMSGetByTextResult : public QueryResult
    {
        std::vector<SMSRecord> result;

      public:
        SMSGetByTextResult(std::vector<SMSRecord> result);
        [[nodiscard]] auto getResults() const -> std::vector<SMSRecord>;
        [[nodiscard]] auto debugInfo() const -> std::string override;
    };

} // namespace db::query