BzzFace.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_BZZFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_BZZFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class BzzFace : public ServerInterface<BzzFace>
  10. {
  11. public:
  12. BzzFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("bzz_put", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::BzzFace::bzz_putI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("bzz_get", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::BzzFace::bzz_getI);
  16. }
  17. inline virtual void bzz_putI(const Json::Value &request, Json::Value &response)
  18. {
  19. response = this->bzz_put(request[0u].asString());
  20. }
  21. inline virtual void bzz_getI(const Json::Value &request, Json::Value &response)
  22. {
  23. response = this->bzz_get(request[0u].asString());
  24. }
  25. virtual std::string bzz_put(const std::string& param1) = 0;
  26. virtual std::string bzz_get(const std::string& param1) = 0;
  27. };
  28. }
  29. }
  30. #endif //JSONRPC_CPP_STUB_DEV_RPC_BZZFACE_H_