ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
ChangeAvailability.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3// This code is generated using the generator in 'src/code_generator/common`, please do not edit manually
4
5#ifndef OCPP_V16_CHANGEAVAILABILITY_HPP
6#define OCPP_V16_CHANGEAVAILABILITY_HPP
7
8#include <nlohmann/json_fwd.hpp>
9
10#include <ocpp/v16/ocpp_enums.hpp>
11#include <ocpp/v16/ocpp_types.hpp>
12
13namespace ocpp {
14namespace v16 {
15
18 int32_t connectorId;
19 AvailabilityType type;
20
23 std::string get_type() const override;
24};
25
27void to_json(json& j, const ChangeAvailabilityRequest& k);
28
30void from_json(const json& j, ChangeAvailabilityRequest& k);
31
34std::ostream& operator<<(std::ostream& os, const ChangeAvailabilityRequest& k);
35
38 AvailabilityStatus status;
39
42 std::string get_type() const override;
43};
44
46void to_json(json& j, const ChangeAvailabilityResponse& k);
47
49void from_json(const json& j, ChangeAvailabilityResponse& k);
50
53std::ostream& operator<<(std::ostream& os, const ChangeAvailabilityResponse& k);
54
55} // namespace v16
56} // namespace ocpp
57
58#endif // OCPP_V16_CHANGEAVAILABILITY_HPP
Parent structure for all OCPP messages supported by this implementation.
Definition: types.hpp:30
Contains a OCPP ChangeAvailability message.
Definition: ChangeAvailability.hpp:17
std::string get_type() const override
Provides the type of this ChangeAvailability message as a human readable string.
Definition: ChangeAvailability.cpp:15
Contains a OCPP ChangeAvailabilityResponse message.
Definition: ChangeAvailability.hpp:37
std::string get_type() const override
Provides the type of this ChangeAvailabilityResponse message as a human readable string.
Definition: ChangeAvailability.cpp:43