WhisperFace.h 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /**
  2. * This file is generated by jsonrpcstub, DO NOT CHANGE IT MANUALLY!
  3. */
  4. #ifndef JSONRPC_CPP_STUB_DEV_RPC_WHISPERFACE_H_
  5. #define JSONRPC_CPP_STUB_DEV_RPC_WHISPERFACE_H_
  6. #include "ModularServer.h"
  7. namespace dev {
  8. namespace rpc {
  9. class WhisperFace : public ServerInterface<WhisperFace>
  10. {
  11. public:
  12. WhisperFace()
  13. {
  14. this->bindAndAddMethod(jsonrpc::Procedure("shh_post", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::WhisperFace::shh_postI);
  15. this->bindAndAddMethod(jsonrpc::Procedure("shh_newIdentity", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_newIdentityI);
  16. this->bindAndAddMethod(jsonrpc::Procedure("shh_hasIdentity", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_hasIdentityI);
  17. this->bindAndAddMethod(jsonrpc::Procedure("shh_newGroup", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_newGroupI);
  18. this->bindAndAddMethod(jsonrpc::Procedure("shh_addToGroup", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_STRING,"param2",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_addToGroupI);
  19. this->bindAndAddMethod(jsonrpc::Procedure("shh_newFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_STRING, "param1",jsonrpc::JSON_OBJECT, NULL), &dev::rpc::WhisperFace::shh_newFilterI);
  20. this->bindAndAddMethod(jsonrpc::Procedure("shh_uninstallFilter", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_BOOLEAN, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_uninstallFilterI);
  21. this->bindAndAddMethod(jsonrpc::Procedure("shh_getFilterChanges", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_getFilterChangesI);
  22. this->bindAndAddMethod(jsonrpc::Procedure("shh_getMessages", jsonrpc::PARAMS_BY_POSITION, jsonrpc::JSON_ARRAY, "param1",jsonrpc::JSON_STRING, NULL), &dev::rpc::WhisperFace::shh_getMessagesI);
  23. }
  24. inline virtual void shh_postI(const Json::Value &request, Json::Value &response)
  25. {
  26. response = this->shh_post(request[0u]);
  27. }
  28. inline virtual void shh_newIdentityI(const Json::Value &request, Json::Value &response)
  29. {
  30. (void)request;
  31. response = this->shh_newIdentity();
  32. }
  33. inline virtual void shh_hasIdentityI(const Json::Value &request, Json::Value &response)
  34. {
  35. response = this->shh_hasIdentity(request[0u].asString());
  36. }
  37. inline virtual void shh_newGroupI(const Json::Value &request, Json::Value &response)
  38. {
  39. response = this->shh_newGroup(request[0u].asString(), request[1u].asString());
  40. }
  41. inline virtual void shh_addToGroupI(const Json::Value &request, Json::Value &response)
  42. {
  43. response = this->shh_addToGroup(request[0u].asString(), request[1u].asString());
  44. }
  45. inline virtual void shh_newFilterI(const Json::Value &request, Json::Value &response)
  46. {
  47. response = this->shh_newFilter(request[0u]);
  48. }
  49. inline virtual void shh_uninstallFilterI(const Json::Value &request, Json::Value &response)
  50. {
  51. response = this->shh_uninstallFilter(request[0u].asString());
  52. }
  53. inline virtual void shh_getFilterChangesI(const Json::Value &request, Json::Value &response)
  54. {
  55. response = this->shh_getFilterChanges(request[0u].asString());
  56. }
  57. inline virtual void shh_getMessagesI(const Json::Value &request, Json::Value &response)
  58. {
  59. response = this->shh_getMessages(request[0u].asString());
  60. }
  61. virtual bool shh_post(const Json::Value& param1) = 0;
  62. virtual std::string shh_newIdentity() = 0;
  63. virtual bool shh_hasIdentity(const std::string& param1) = 0;
  64. virtual std::string shh_newGroup(const std::string& param1, const std::string& param2) = 0;
  65. virtual std::string shh_addToGroup(const std::string& param1, const std::string& param2) = 0;
  66. virtual std::string shh_newFilter(const Json::Value& param1) = 0;
  67. virtual bool shh_uninstallFilter(const std::string& param1) = 0;
  68. virtual Json::Value shh_getFilterChanges(const std::string& param1) = 0;
  69. virtual Json::Value shh_getMessages(const std::string& param1) = 0;
  70. };
  71. }
  72. }
  73. #endif //JSONRPC_CPP_STUB_DEV_RPC_WHISPERFACE_H_