// 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 ZWaveNetwork {
public:
    // wire: 'homeId' (field)
    quint64 homeId{};
    // wire: 'isBridgeController' (field)
    bool isBridgeController{};
    // wire: 'isPrimaryController' (field)
    bool isPrimaryController{};
    // wire: 'isStaticUpdateController' (field)
    bool isStaticUpdateController{};
    // wire: 'isZWavePlus' (field)
    bool isZWavePlus{};
    // wire: 'networkState' (field)
    ZWaveNetworkState networkState{};
    // wire: 'networkUuid' (field)
    QUuid networkUuid{};
    // wire: 'serialPort' (field)
    QString serialPort{};
    // wire: 'waitingForNodeAddition' (field)
    bool waitingForNodeAddition{};
    // wire: 'waitingForNodeRemoval' (field)
    bool waitingForNodeRemoval{};

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

} // namespace nymea::api
