]> git.basschouten.com Git - openhab-addons.git/blob
05431441c2430d69c33600966441df30417639fb
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.caddx.internal.handler;
14
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;
21
22 /**
23  * This is a class for handling a Keypad type Thing.
24  *
25  * @author Georgios Moutsos - Initial contribution
26  */
27 @NonNullByDefault
28 public class ThingHandlerKeypad extends CaddxBaseThingHandler {
29     /**
30      * Constructor.
31      *
32      * @param thing
33      */
34     public ThingHandlerKeypad(Thing thing) {
35         super(thing, CaddxThingType.KEYPAD);
36     }
37
38     @Override
39     public void updateChannel(ChannelUID channelUID, String data) {
40     }
41
42     @Override
43     public void handleCommand(ChannelUID channelUID, Command command) {
44     }
45
46     @Override
47     public void caddxEventReceived(CaddxEvent event, Thing thing) {
48         updateStatus(ThingStatus.ONLINE);
49     }
50 }