// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2025 Pionix GmbH and Contributors to EVerest
// This code is generated using the generator in 'src/code_generator/common`, please do not edit manually

#ifndef OCPP_V16_UNLOCKCONNECTOR_HPP
#define OCPP_V16_UNLOCKCONNECTOR_HPP

#include <nlohmann/json_fwd.hpp>

#include <ocpp/v16/ocpp_enums.hpp>
#include <ocpp/v16/ocpp_types.hpp>

namespace ocpp {
namespace v16 {

/// \brief Contains a OCPP UnlockConnector message
struct UnlockConnectorRequest : public ocpp::Message {
    std::int32_t connectorId;

    /// \brief Provides the type of this UnlockConnector message as a human readable string
    /// \returns the message type as a human readable string
    std::string get_type() const override;
};

/// \brief Conversion from a given UnlockConnectorRequest \p k to a given json object \p j
void to_json(json& j, const UnlockConnectorRequest& k);

/// \brief Conversion from a given json object \p j to a given UnlockConnectorRequest \p k
void from_json(const json& j, UnlockConnectorRequest& k);

/// \brief Writes the string representation of the given UnlockConnectorRequest \p k to the given output stream \p os
/// \returns an output stream with the UnlockConnectorRequest written to
std::ostream& operator<<(std::ostream& os, const UnlockConnectorRequest& k);

/// \brief Contains a OCPP UnlockConnectorResponse message
struct UnlockConnectorResponse : public ocpp::Message {
    UnlockStatus status;

    /// \brief Provides the type of this UnlockConnectorResponse message as a human readable string
    /// \returns the message type as a human readable string
    std::string get_type() const override;
};

/// \brief Conversion from a given UnlockConnectorResponse \p k to a given json object \p j
void to_json(json& j, const UnlockConnectorResponse& k);

/// \brief Conversion from a given json object \p j to a given UnlockConnectorResponse \p k
void from_json(const json& j, UnlockConnectorResponse& k);

/// \brief Writes the string representation of the given UnlockConnectorResponse \p k to the given output stream \p os
/// \returns an output stream with the UnlockConnectorResponse written to
std::ostream& operator<<(std::ostream& os, const UnlockConnectorResponse& k);

} // namespace v16
} // namespace ocpp

#endif // OCPP_V16_UNLOCKCONNECTOR_HPP
