| #pragma once |
| #include <cstdint> |
| #include <nlohmann/json.hpp> |
| |
| namespace composition_service |
| { |
| // clang-format off |
| |
| enum class ComposeRequestType : std::uint8_t{ |
| Invalid, |
| Preview, |
| PreviewReserve, |
| Apply, |
| }; |
| |
| enum class ComposeRequestFormat : std::uint8_t{ |
| Invalid, |
| Manifest, |
| }; |
| |
| NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestType, { |
| {ComposeRequestType::Invalid, "Invalid"}, |
| {ComposeRequestType::Preview, "Preview"}, |
| {ComposeRequestType::PreviewReserve, "PreviewReserve"}, |
| {ComposeRequestType::Apply, "Apply"}, |
| }); |
| |
| NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestFormat, { |
| {ComposeRequestFormat::Invalid, "Invalid"}, |
| {ComposeRequestFormat::Manifest, "Manifest"}, |
| }); |
| |
| } // namespace composition_service |
| // clang-format on |