mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
43 lines
940 B
C++
43 lines
940 B
C++
#ifndef __GRADIDO_LOGIN_SERVER_LIB_HEDERA_REQUEST_
|
|
#define __GRADIDO_LOGIN_SERVER_LIB_HEDERA_REQUEST_
|
|
/*!
|
|
*
|
|
* \author: Dario Rekowski
|
|
*
|
|
* \date: 31.08.2020
|
|
*
|
|
* \brief: Class for Hedera Requests
|
|
*
|
|
*/
|
|
|
|
#include "../controller/NodeServer.h"
|
|
#include "../model/hedera/Query.h"
|
|
#include "../model/hedera/Transaction.h"
|
|
#include "../model/hedera/Response.h"
|
|
|
|
enum HederaRequestReturn
|
|
{
|
|
HEDERA_REQUEST_RETURN_OK,
|
|
HEDERA_REQUEST_RETURN_PARSE_ERROR,
|
|
HEDERA_REQUEST_RETURN_ERROR,
|
|
HEDERA_REQUEST_CONNECT_ERROR
|
|
};
|
|
|
|
// NodeServerConnection
|
|
class HederaRequest : public NotificationList
|
|
{
|
|
public:
|
|
HederaRequest();
|
|
~HederaRequest();
|
|
|
|
HederaRequestReturn request(model::hedera::Query* query, model::hedera::Response* response, Poco::UInt64 fee = 0);
|
|
//! for testing, didn't work server say invalid json :/
|
|
HederaRequestReturn requestViaPHPRelay(model::hedera::Query* query);
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
#endif //__GRADIDO_LOGIN_SERVER_LIB_HEDERA_REQUEST_
|
|
//
|