// SPDX-License-Identifier: GPL-3.0-or-later

// This file is auto-generated by scripts/generate_nymea_api.py
// Any changes made here will be lost when the files are regenerated.
// Do not edit manually.

#pragma once

#include "apiutils.h"

namespace nymea::api {

class LoggingGetLogEntriesParams {
public:
    // wire: 'columns' (optional)
    std::optional<QList<QString>> columns;
    // wire: 'endTime' (optional)
    std::optional<quint64> endTime;
    // wire: 'filter' (optional)
    std::optional<QJsonValue> filter;
    // wire: 'limit' (optional)
    std::optional<qint64> limit;
    // wire: 'offset' (optional)
    std::optional<qint64> offset;
    // wire: 'sampleRate' (optional)
    std::optional<SampleRate> sampleRate;
    // wire: 'sortOrder' (optional)
    std::optional<SortOrder> sortOrder;
    // wire: 'startTime' (optional)
    std::optional<quint64> startTime;
    // wire: 'sources' (field)
    QList<QString> sources{};

    static LoggingGetLogEntriesParams fromJson(const QJsonObject &object);
    QJsonObject toJson() const;
};

} // namespace nymea::api
