]> git.basschouten.com Git - openhab-addons.git/blob
8b1756aae12ac22450a9b378cb1640dd5a60f7bc
[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.shelly.internal.coap;
14
15 import java.util.List;
16 import java.util.Map;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.openhab.binding.shelly.internal.coap.ShellyCoapJSonDTO.CoIotDescrBlk;
20 import org.openhab.binding.shelly.internal.coap.ShellyCoapJSonDTO.CoIotDescrSen;
21 import org.openhab.binding.shelly.internal.coap.ShellyCoapJSonDTO.CoIotSensor;
22 import org.openhab.core.types.State;
23
24 /**
25  * The {@link ShellyCoapListener} describes the listening interface to process Coap responses
26  *
27  * @author Markus Michels - Initial contribution
28  */
29 @NonNullByDefault
30 public interface ShellyCoIoTInterface {
31     public int getVersion();
32
33     public CoIotDescrSen fixDescription(CoIotDescrSen sen, Map<String, CoIotDescrBlk> blkMap);
34
35     public boolean handleStatusUpdate(List<CoIotSensor> sensorUpdates, CoIotDescrSen sen, CoIotSensor s,
36             Map<String, State> updates);
37 }