~aleteoryx/muditaos

ref: d2fcc3020066150b09fa13ccefa8c15d1d0f8cf9 muditaos/module-db/queries/alarm_events/QueryAlarmEventsGetRecurringBetweenDates.cpp -rw-r--r-- 1.0 KiB
d2fcc302 — Paweł Joński [BH-743] Add AlarmEvents 4 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
30
31
32
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include "QueryAlarmEventsGetRecurringBetweenDates.hpp"

#include <utility>

namespace db::query::alarmEvents
{
    GetRecurringBetweenDates::GetRecurringBetweenDates(TimePoint start, TimePoint end, uint32_t offset, uint32_t limit)
        : Query(Query::Type::Read), start(start), end(end), offset(offset), limit(limit)
    {}

    auto GetRecurringBetweenDates::debugInfo() const -> std::string
    {
        return std::string{"GetRecurringBetweenDates"};
    }

    GetRecurringBetweenDatesResult::GetRecurringBetweenDatesResult(std::vector<AlarmEventRecord> records)
        : records(std::move(records))
    {}

    auto GetRecurringBetweenDatesResult::getResult() const -> std::vector<AlarmEventRecord>
    {
        return records;
    }

    auto GetRecurringBetweenDatesResult::debugInfo() const -> std::string
    {
        return std::string{"GetRecurringBetweenDatesResult"};
    }
} // namespace db::query::alarmEvents