]> git.basschouten.com Git - openhab-addons.git/blob
c7a70c56f2382e7b61e9b871de9c6f004a969b0d
[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.deconz.internal.dto;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The REST interface and websocket connection are using the same fields.
20  * The REST data contains more descriptive info like the manufacturer and name.
21  *
22  * @author Jan N. Klug - Initial contribution
23  */
24 @NonNullByDefault
25 public class DeconzBaseMessage {
26     // For websocket change events
27     public String e = ""; // "changed"
28     public String r = ""; // "sensors"
29     public String t = ""; // "event"
30     public String id = ""; // "3"
31
32     // for rest API
33     public String manufacturername = "";
34     public String modelid = "";
35     public String name = "";
36     public String swversion = "";
37
38     /** the API endpoint **/
39     public String ep = "";
40
41     /** device last seen */
42     public @Nullable String lastseen;
43
44     // websocket and rest api
45     public String uniqueid = ""; // "00:0b:57:ff:fe:94:6b:dd-01-1000"
46 }