#pragma once | |
#include <cstdint> | |
#include <nlohmann/json.hpp> | |
namespace leak_detector | |
{ | |
// clang-format off | |
enum class LeakDetectorType : std::uint8_t{ | |
Invalid, | |
Moisture, | |
FloatSwitch, | |
}; | |
NLOHMANN_JSON_SERIALIZE_ENUM(LeakDetectorType, { | |
{LeakDetectorType::Invalid, "Invalid"}, | |
{LeakDetectorType::Moisture, "Moisture"}, | |
{LeakDetectorType::FloatSwitch, "FloatSwitch"}, | |
}); | |
} // namespace leak_detector | |
// clang-format on |