// 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 BrowserItem {
public:
    // wire: 'actionTypeIds' (field)
    QList<QUuid> actionTypeIds{};
    // wire: 'browsable' (field)
    bool browsable{};
    // wire: 'description' (field)
    QString description{};
    // wire: 'disabled' (field)
    bool disabled{};
    // wire: 'displayName' (field)
    QString displayName{};
    // wire: 'executable' (field)
    bool executable{};
    // wire: 'icon' (field)
    BrowserIcon icon{};
    // wire: 'id' (field)
    QString id{};
    // wire: 'mediaIcon' (optional)
    std::optional<MediaBrowserIcon> mediaIcon;
    // wire: 'thumbnail' (field)
    QString thumbnail{};

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

} // namespace nymea::api
