#pragma once #include "crow.h" #include "AnnotationTypes.hpp" namespace Response { using Reply::AnnotationType; typedef crow::json::wvalue json; json simple_response(std::string const &text, std::string const &session = "null", bool success = true); json create_annotation(AnnotationType annotation = AnnotationType::none, std::string const &extra = ""); json create_text(std::string const &text); json create_text(std::string const &text, std::vector &&annotations); json create_response(std::vector &&reply, std::string const &session = "null", bool success = true); }