// 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 #include #include #include namespace db::query { class ThreadsGetForList : public Query { public: unsigned int offset; unsigned int limit; ThreadsGetForList(unsigned int offset, unsigned int limit); [[nodiscard]] auto debugInfo() const -> std::string override; }; class ThreadsGetForListResults : public QueryResult { std::vector results; std::vector contacts; std::vector numbers; unsigned int count = 0; public: ThreadsGetForListResults(std::vector result, std::vector contacts, std::vector numbers, unsigned int count); [[nodiscard]] auto getResults() const -> std::vector; [[nodiscard]] auto getContacts() const -> std::vector; [[nodiscard]] auto getNumbers() const -> std::vector; [[nodiscard]] auto getCount() const -> unsigned int; [[nodiscard]] auto debugInfo() const -> std::string override; }; }; // namespace db::query