aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-29 18:42:15 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-29 18:42:15 +0800
commit48f6b4a8c659644bc7d6d098af7179ff047fc6f5 (patch)
treeee44bf75cec7df87a2bc2e4062ddec414a1ad406
parent59b3f486379dea95fdae11dff2401b6465d3f196 (diff)
downloaddexon-solidity-48f6b4a8c659644bc7d6d098af7179ff047fc6f5.tar.gz
dexon-solidity-48f6b4a8c659644bc7d6d098af7179ff047fc6f5.tar.zst
dexon-solidity-48f6b4a8c659644bc7d6d098af7179ff047fc6f5.zip
whisper polling, not finished
-rw-r--r--webthreestubclient.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h
index 1d4592e9..4898e75e 100644
--- a/webthreestubclient.h
+++ b/webthreestubclient.h
@@ -434,6 +434,45 @@ p.append(param3);
}
+ Json::Value shhChanged(const int& param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+
+ Json::Value result = this->client->CallMethod("shhChanged",p);
+ if (result.isArray())
+ return result;
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
+ int shhNewFilter(const Json::Value& param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+
+ Json::Value result = this->client->CallMethod("shhNewFilter",p);
+ if (result.isInt())
+ return result.asInt();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
+ bool shhUninstallFilter(const int& param1) throw (jsonrpc::JsonRpcException)
+ {
+ Json::Value p;
+ p.append(param1);
+
+ Json::Value result = this->client->CallMethod("shhUninstallFilter",p);
+ if (result.isBool())
+ return result.asBool();
+ else
+ throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
+
+ }
+
std::string stateAt(const std::string& param1, const std::string& param2) throw (jsonrpc::JsonRpcException)
{
Json::Value p;