1 #pragma once 2 #include <nlohmann/json.hpp> 3 4 namespace composition_service 5 { 6 // clang-format off 7 8 enum class ComposeRequestType{ 9 Invalid, 10 Preview, 11 PreviewReserve, 12 Apply, 13 }; 14 15 enum class ComposeRequestFormat{ 16 Invalid, 17 Manifest, 18 }; 19 20 NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestType, { 21 {ComposeRequestType::Invalid, "Invalid"}, 22 {ComposeRequestType::Preview, "Preview"}, 23 {ComposeRequestType::PreviewReserve, "PreviewReserve"}, 24 {ComposeRequestType::Apply, "Apply"}, 25 }); 26 27 NLOHMANN_JSON_SERIALIZE_ENUM(ComposeRequestFormat, { 28 {ComposeRequestFormat::Invalid, "Invalid"}, 29 {ComposeRequestFormat::Manifest, "Manifest"}, 30 }); 31 32 } 33 // clang-format on 34