From 3b995e0f96546c0e421c18eeb1da98a129596b5f Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Mon, 16 Feb 2015 18:03:40 +0100 Subject: [PATCH] added shh_getMessages, fixed #899 --- webthreestubclient.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/webthreestubclient.h b/webthreestubclient.h index 02f5b5e40..93e101bb7 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -535,6 +535,16 @@ class WebThreeStubClient : public jsonrpc::Client else throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); } + Json::Value shh_getMessages(int param1) throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p.append(param1); + Json::Value result = this->CallMethod("shh_getMessages",p); + if (result.isArray()) + return result; + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + } }; #endif //JSONRPC_CPP_STUB_WEBTHREESTUBCLIENT_H_