mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-05-23 08:08:39 -04:00
34 lines
838 B
C++
34 lines
838 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 <Tables/SMSTable.hpp>
|
|
#include <Common/Query.hpp>
|
|
#include <string>
|
|
#include "Interface/SMSRecord.hpp"
|
|
|
|
namespace db::query
|
|
{
|
|
class SMSGetCountByThreadID : public Query
|
|
{
|
|
public:
|
|
unsigned int threadId;
|
|
|
|
SMSGetCountByThreadID(unsigned int threadId);
|
|
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
class SMSGetCountByThreadIDResult : public QueryResult
|
|
{
|
|
uint32_t result;
|
|
|
|
public:
|
|
SMSGetCountByThreadIDResult(uint32_t result);
|
|
[[nodiscard]] auto getResults() const -> uint32_t;
|
|
[[nodiscard]] auto debugInfo() const -> std::string override;
|
|
};
|
|
|
|
} // namespace db::query
|