2 #ifndef NAF_FUNCTIONS_FUNCTION
3 #define NAF_FUNCTIONS_FUNCTION
11 #include "functions/action.h"
12 #include "http/methods.h"
13 #include "query/parameter.h"
28 using Ptr = std::shared_ptr<Functions::Function>;
31 Function(std::string endpoint, HTTP::EnumMethods type);
33 std::string get_endpoint()
const {
return endpoint_; }
34 std::string get_target()
const {
return target_; }
35 HTTP::EnumMethods get_method()
const {
return method_; }
36 std::vector<Action::Ptr>& get_actions()
47 void set_endpoint(std::string endpoint) { endpoint_ = endpoint; }
48 void set_target(std::string target) { target_ = target; }
49 void set_method(HTTP::EnumMethods type) { method_ = type; }
51 Action::Ptr AddAction_(std::string identifier);
54 std::string endpoint_;
56 HTTP::EnumMethods method_;
57 std::vector<Action::Ptr> actions_;
Definition: function.h:26