]> git.basschouten.com Git - openhab-addons.git/blob
db5c89598d0e12acfe6176cf6b2c17cf06f680cf
[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.io.openhabcloud.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * This interface provides callbacks from CloudClient
19  *
20  * @author Victor Belov - Initial contribution
21  * @author Kai Kreuzer - migrated code to ESH APIs
22  *
23  */
24 @NonNullByDefault
25 public interface CloudClientListener {
26     /**
27      * This method receives command for an item from the openHAB Cloud client and should post it
28      * into openHAB
29      *
30      * @param item the {@link String} containing item name
31      * @param command the {@link String} containing a command
32      */
33     public void sendCommand(String item, String command);
34 }