2 * Copyright (c) 2010-2022 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.dto;
16 * Response of the Controller for a Long Poll API call.
18 * The result field will contain the subscription ID needed for further API calls (e.g. the long polling call)
20 * @author Stefan Kästle - Initial contribution
22 public class SubscribeResult {
23 private String result;
24 private String jsonrpc;
26 public String getResult() {
30 public String getJsonrpc() {
34 public static Boolean isValid(SubscribeResult obj) {
35 return obj != null && obj.result != null && obj.jsonrpc != null;