From 25d3c3c3002857d20c49eb3e8cb0bff1262cca9a Mon Sep 17 00:00:00 2001 From: Alva Swanson Date: Wed, 7 Dec 2022 13:48:33 +0200 Subject: [PATCH] JSON-RPC: Support StringList and Void responses --- .../reponses/JsonRpcStringListResponse.java | 25 +++++++++++++++++++ .../reponses/VoidJsonRpcResponse.java | 23 +++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/JsonRpcStringListResponse.java create mode 100644 wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/VoidJsonRpcResponse.java diff --git a/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/JsonRpcStringListResponse.java b/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/JsonRpcStringListResponse.java new file mode 100644 index 0000000000..65a3b0314f --- /dev/null +++ b/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/JsonRpcStringListResponse.java @@ -0,0 +1,25 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +package bisq.wallets.json_rpc.reponses; + +import bisq.wallets.json_rpc.JsonRpcResponse; + +import java.util.List; + +public class JsonRpcStringListResponse extends JsonRpcResponse> { +} diff --git a/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/VoidJsonRpcResponse.java b/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/VoidJsonRpcResponse.java new file mode 100644 index 0000000000..984e35db08 --- /dev/null +++ b/wallets/json-rpc/src/main/java/bisq/wallets/json_rpc/reponses/VoidJsonRpcResponse.java @@ -0,0 +1,23 @@ +/* + * This file is part of Bisq. + * + * Bisq is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * Bisq is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public + * License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Bisq. If not, see . + */ + +package bisq.wallets.json_rpc.reponses; + +import bisq.wallets.json_rpc.JsonRpcResponse; + +public class VoidJsonRpcResponse extends JsonRpcResponse { +}