20#ifndef ORES_VARIABILITY_MESSAGING_FEATURE_FLAGS_PROTOCOL_HPP
21#define ORES_VARIABILITY_MESSAGING_FEATURE_FLAGS_PROTOCOL_HPP
27#include "ores.comms/messaging/message_types.hpp"
28#include "ores.comms/messaging/message_traits.hpp"
29#include "ores.variability/domain/feature_flags.hpp"
31namespace ores::variability::messaging {
37 std::vector<std::byte> serialize()
const;
38 static std::expected<list_feature_flags_request, comms::messaging::error_code>
39 deserialize(std::span<const std::byte> data);
48 std::vector<domain::feature_flags> feature_flags;
50 std::vector<std::byte> serialize()
const;
51 static std::expected<list_feature_flags_response, comms::messaging::error_code>
52 deserialize(std::span<const std::byte> data);
68 static constexpr message_type request_message_type =
69 message_type::list_feature_flags_request;
Contains messaging related infrastructure in the comms library.
Definition account_history_protocol.hpp:79
Traits template for mapping request types to their response types and message type enum values.
Definition message_traits.hpp:66
Request to retrieve all feature flags.
Definition feature_flags_protocol.hpp:36
Response containing all feature flags.
Definition feature_flags_protocol.hpp:47