]> git.basschouten.com Git - openhab-addons.git/blob
43cc5346f467889d67d2d98b7f1b956e64a8773e
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 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 David Graeff - Initial contribution
23  */
24 @NonNullByDefault
25 public class SensorMessage extends DeconzBaseMessage {
26     public String type = "";
27
28     public @Nullable SensorConfig config;
29     public @Nullable SensorState state;
30
31     @Override
32     public String toString() {
33         return "SensorMessage{" + "type='" + type + '\'' + ", config=" + config + ", state=" + state + ", e='" + e
34                 + '\'' + ", r='" + r + '\'' + ", t='" + t + '\'' + ", id='" + id + '\'' + ", manufacturername='"
35                 + manufacturername + '\'' + ", modelid='" + modelid + '\'' + ", name='" + name + '\'' + ", swversion='"
36                 + swversion + '\'' + ", ep='" + ep + '\'' + ", lastseen='" + lastseen + '\'' + ", uniqueid='" + uniqueid
37                 + '\'' + '}';
38     }
39 }