// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "QueryEventsGetAllLimited.hpp"
namespace db::query::events
{
GetAllLimited::GetAllLimited(const uint32_t &offset, const uint32_t &limit)
: Query(Query::Type::Read), offset(offset), limit(limit)
{}
auto GetAllLimited::debugInfo() const -> std::string
{
return "GetAllLimited";
}
GetAllLimitedResult::GetAllLimitedResult(std::unique_ptr<std::vector<EventsRecord>> records,
std::unique_ptr<uint32_t> count)
: records(std::move(records)), recordsCount(std::move(count))
{}
auto GetAllLimitedResult::getResult() -> std::unique_ptr<std::vector<EventsRecord>>
{
return std::move(records);
}
auto GetAllLimitedResult::getCountResult() -> std::unique_ptr<uint32_t>
{
return std::move(recordsCount);
}
auto GetAllLimitedResult::debugInfo() const -> std::string
{
return "GetAllLimitedResult";
}
} // namespace db::query::events