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.io.openhabcloud.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * This interface provides callbacks from CloudClient
20 * @author Victor Belov - Initial contribution
21 * @author Kai Kreuzer - migrated code to ESH APIs
25 public interface CloudClientListener {
27 * This method receives command for an item from the openHAB Cloud client and should post it
30 * @param item the {@link String} containing item name
31 * @param command the {@link String} containing a command
33 public void sendCommand(String item, String command);