~aleteoryx/muditaos

ref: 9095333b2c10af0127725c41c854c53453f41787 muditaos/module-db/queries/sms/QuerySMSGetByContactID.hpp -rw-r--r-- 726 bytes
9095333b — Bartek Cichocki [EGD-3502] PR fixes 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
{

    class SMSGetByContactID : public Query
    {
      public:
        SMSGetByContactID(unsigned int id);
        unsigned int contactId;
        [[nodiscard]] auto debugInfo() const -> std::string override;
    };

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

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

} // namespace db::query