1#ifndef RPC_Request_Callback_h
2#define RPC_Request_Callback_h
53 void Set_Name(
char const * method_name);
73 char const *m_method_name = {};
74 JsonArray
const *m_parameters = {};
75 size_t m_request_id = {};
General purpose safe callback wrapper. Expects either c-style or c++ style function pointer,...
Definition: Callback.h:30
std::function< void(argument_types... arguments)> function
Callback signature.
Definition: Callback.h:34
Client-side RPC callback wrapper, contains the needed configuration settings to create the request th...
Definition: RPC_Request_Callback.h:11
~RPC_Request_Callback() override=default
size_t const & Get_Request_ID() const
Gets the unique request identifier that is connected to the original request.
Definition: RPC_Request_Callback.cpp:14
Timeoutable_Request & Get_Request_Timeout()
Gets the request timeout callback.
Definition: RPC_Request_Callback.cpp:38
RPC_Request_Callback()=default
Constructs empty callback, will result in never being called. Internals are simply default constructe...
JsonArray const * Get_Parameters() const
Gets the paramaters we want to call the client-side RPC method on the cloud with.
Definition: RPC_Request_Callback.cpp:30
char const * Get_Name() const
Gets the name of the client-side RPC method we want to call on the cloud so that this method callback...
Definition: RPC_Request_Callback.cpp:22
void Set_Parameters(JsonArray const *parameters)
Sets the paramaters we want to call the client-side RPC method with on the cloud with.
Definition: RPC_Request_Callback.cpp:34
void Set_Request_ID(size_t const &request_id)
Sets the unique request identifier that is connected to the original request.
Definition: RPC_Request_Callback.cpp:18
void Set_Name(char const *method_name)
Sets the name of the client side RPC method we want to call on the cloud so that this method callback...
Definition: RPC_Request_Callback.cpp:26
General purpose request callback that can timeout if the response to the request is not received in t...
Definition: Timeoutable_Request.h:10