#pragma once | |
#include <cstdint> | |
#include <nlohmann/json.hpp> | |
namespace google_boot_time | |
{ | |
// clang-format off | |
enum class PowerSourceTypes : std::uint8_t{ | |
Invalid, | |
Unknown, | |
AC, | |
DC, | |
}; | |
NLOHMANN_JSON_SERIALIZE_ENUM(PowerSourceTypes, { | |
{PowerSourceTypes::Invalid, "Invalid"}, | |
{PowerSourceTypes::Unknown, "Unknown"}, | |
{PowerSourceTypes::AC, "AC"}, | |
{PowerSourceTypes::DC, "DC"}, | |
}); | |
} // namespace google_boot_time | |
// clang-format on |