2 * Copyright (c) 2010-2023 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.deconz.internal.dto;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.deconz.internal.types.ResourceType;
20 * The REST interface and websocket connection are using the same fields.
21 * The REST data contains more descriptive info like the manufacturer and name.
23 * @author Jan N. Klug - Initial contribution
26 public class DeconzBaseMessage {
27 // For websocket change events
28 public String e = ""; // "changed", "scene-called"
29 public ResourceType r = ResourceType.UNKNOWN; // "sensors"
30 public String t = ""; // "event"
31 public String id = ""; // "3"
34 public String gid = "";
35 public String scid = "";
38 public String manufacturername = "";
39 public String modelid = "";
40 public String name = "";
41 public String swversion = "";
43 /** the API endpoint **/
44 public String ep = "";
46 /** device last seen */
47 public @Nullable String lastseen;
49 // websocket and rest api
50 public String uniqueid = ""; // "00:0b:57:ff:fe:94:6b:dd-01-1000"