gradido/login_server/src/cpp/lib/JsonRPCRequest.h

30 lines
551 B
C++

/*!
*
* \author: Dario Rekowski
*
* \date: 13.01.2021
*
* \brief: Class for Json Requests to php server
*
*/
#include "JsonRequest.h"
#ifndef __GRADIDO_LOGIN_SERVER_LIB_JSON_RPC_REQUEST_
#define __GRADIDO_LOGIN_SERVER_LIB_JSON_RPC_REQUEST_
class JsonRPCRequest : public JsonRequest
{
public:
JsonRPCRequest(const std::string& serverHost, int serverPort);
~JsonRPCRequest();
Poco::JSON::Object::Ptr request(const char* methodName, const Poco::JSON::Object& params);
protected:
};
#endif //__GRADIDO_LOGIN_SERVER_LIB_JSON_RPC_REQUEST_