blob: 4c3bdcde49c7546cd8435bca31fe4a1d776a0e60 [file] [log] [blame]
#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