#pragma once | |
#include <cstdint> | |
#include <nlohmann/json.hpp> | |
namespace outlet_group | |
{ | |
// clang-format off | |
enum class PowerState : std::uint8_t{ | |
Invalid, | |
On, | |
Off, | |
PowerCycle, | |
}; | |
NLOHMANN_JSON_SERIALIZE_ENUM(PowerState, { | |
{PowerState::Invalid, "Invalid"}, | |
{PowerState::On, "On"}, | |
{PowerState::Off, "Off"}, | |
{PowerState::PowerCycle, "PowerCycle"}, | |
}); | |
} // namespace outlet_group | |
// clang-format on |