|  | #pragma once | 
|  | #include <cstdint> | 
|  | #include <nlohmann/json.hpp> | 
|  |  | 
|  | namespace session | 
|  | { | 
|  | // clang-format off | 
|  |  | 
|  | enum class SessionTypes : std::uint8_t{ | 
|  | Invalid, | 
|  | HostConsole, | 
|  | ManagerConsole, | 
|  | IPMI, | 
|  | KVMIP, | 
|  | OEM, | 
|  | Redfish, | 
|  | VirtualMedia, | 
|  | WebUI, | 
|  | }; | 
|  |  | 
|  | NLOHMANN_JSON_SERIALIZE_ENUM(SessionTypes, { | 
|  | {SessionTypes::Invalid, "Invalid"}, | 
|  | {SessionTypes::HostConsole, "HostConsole"}, | 
|  | {SessionTypes::ManagerConsole, "ManagerConsole"}, | 
|  | {SessionTypes::IPMI, "IPMI"}, | 
|  | {SessionTypes::KVMIP, "KVMIP"}, | 
|  | {SessionTypes::OEM, "OEM"}, | 
|  | {SessionTypes::Redfish, "Redfish"}, | 
|  | {SessionTypes::VirtualMedia, "VirtualMedia"}, | 
|  | {SessionTypes::WebUI, "WebUI"}, | 
|  | }); | 
|  |  | 
|  | } // namespace session | 
|  | // clang-format on |