blob: f1ddadc4697a7ed0d0a4c1f852703824aec79b6a [file] [log] [blame]
// NOLINTBEGIN
#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
// NOLINTEND