/** * Copyright (c) 2010-2016 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ package org.openhab.binding.akm868.internal; /** * This is the listener for the AKM868 binding It listens to the LAN-T-Adapter * if any key is pressed or a PING was sent * * @author Michael Heckmann * @since 1.8.0 */ public interface AKM868Listener { /** * Inform all the interested items in this method * * @param ID * of key and if the ID is present */ public void publishUpdate(String id, boolean isPresent); /** * Inform all the interested items, that the key was pressed short * * @param ID * of key */ public void publishKeyPressedShort(String id); /** * Inform all the interested items, that the key was pressed long * * @param ID * of key */ public void publishKeyPressedLong(String id); }