]> git.basschouten.com Git - openhab-addons.git/blob
1f3bfcaaee263403ebb2824dc3acd15ea0c76b16
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.boschshc.internal.devices.bridge.dto;
14
15 /**
16  * Response of the Controller for a Long Poll API call.
17  *
18  * The result field will contain the subscription ID needed for further API calls (e.g. the long polling call)
19  *
20  * @author Stefan Kästle - Initial contribution
21  */
22 public class SubscribeResult {
23     private String result;
24     private String jsonrpc;
25
26     public String getResult() {
27         return this.result;
28     }
29
30     public String getJsonrpc() {
31         return this.jsonrpc;
32     }
33
34     public static Boolean isValid(SubscribeResult obj) {
35         return obj != null && obj.result != null && obj.jsonrpc != null;
36     }
37 }