From ddc44ca19ba82b7638a909714122e73b92a5183b Mon Sep 17 00:00:00 2001 From: Niklas Halle Date: Fri, 18 Sep 2020 16:43:35 +0200 Subject: simplified attachments (server side), moved into handlers again --- include/AnnotationTypes.hpp | 1 + include/Response.hpp | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'include') diff --git a/include/AnnotationTypes.hpp b/include/AnnotationTypes.hpp index 66d0b9d..8fba983 100644 --- a/include/AnnotationTypes.hpp +++ b/include/AnnotationTypes.hpp @@ -14,6 +14,7 @@ namespace Reply { DECL_ENUM_ELEMENT(none), DECL_ENUM_ELEMENT(bold), DECL_ENUM_ELEMENT(italics), + DECL_ENUM_ELEMENT(attachment), DECL_ENUM_ELEMENT(strikethrough), DECL_ENUM_ELEMENT(underline), DECL_ENUM_ELEMENT(command), diff --git a/include/Response.hpp b/include/Response.hpp index 3e42d0d..82edb53 100644 --- a/include/Response.hpp +++ b/include/Response.hpp @@ -11,11 +11,6 @@ namespace Response { // create a full response of just plain text json simple_response(std::string const &text, std::string const &session = "null", bool success = true); - // create file attachment (is an annotation) - json create_attachment(std::string const &file_path); - json create_attachment(std::string const &file_path, std::string const &file_name); - json create_attachment(std::string const &file_path, std::string const &file_name, std::string const &file_type); - // "nested" annotations: the extra field is again an array of text-annotation pairs json create_annotation(AnnotationType annotation, std::vector &&extra); // construct an extra field with no special annotations in the extra -- cgit v1.2.3-54-g00ecf