2 * Copyright (c) 2010-2020 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.caddx.internal.handler;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.caddx.internal.CaddxEvent;
17 import org.openhab.core.thing.ChannelUID;
18 import org.openhab.core.thing.Thing;
19 import org.openhab.core.thing.ThingStatus;
20 import org.openhab.core.types.Command;
23 * This is a class for handling a Keypad type Thing.
25 * @author Georgios Moutsos - Initial contribution
28 public class ThingHandlerKeypad extends CaddxBaseThingHandler {
34 public ThingHandlerKeypad(Thing thing) {
35 super(thing, CaddxThingType.KEYPAD);
39 public void updateChannel(ChannelUID channelUID, String data) {
43 public void handleCommand(ChannelUID channelUID, Command command) {
47 public void caddxEventReceived(CaddxEvent event, Thing thing) {
48 updateStatus(ThingStatus.ONLINE);