2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.boschshc.internal.devices.bridge;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Payload as POST data for triggering a RPC call on the Bosch Smart Home Controller.
20 * @author Stefan Kästle - Initial contribution
23 class JsonRpcRequest {
25 public String jsonrpc;
27 public String[] params;
29 public JsonRpcRequest(String jsonrpc, String method, String[] params) {
30 this.jsonrpc = jsonrpc;
35 public JsonRpcRequest() {
36 this("", "", new String[0]);
39 public String getJsonrpc() {
43 public void setJsonrpc(String jsonrpc) {
44 this.jsonrpc = jsonrpc;
47 public String getMethod() {
51 public void setMethod(String method) {
55 public String[] getParams() {
59 public void setParams(String[] params) {