]> git.basschouten.com Git - openhab-addons.git/blob
bdb9809ec1b54fa58c71117f4d75aa1f3ee9d7f5
[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 import org.openhab.binding.deconz.internal.types.LightType;
18
19 /**
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.
22  *
23  * @author Jan N. Klug - Initial contribution
24  */
25 @NonNullByDefault
26 public class LightMessage extends DeconzBaseMessage {
27     public @Nullable Boolean hascolor;
28     public @Nullable Integer ctmax;
29     public @Nullable Integer ctmin;
30     public @Nullable LightType type;
31
32     public @Nullable LightState state;
33
34     @Override
35     public String toString() {
36         return "LightMessage{" + "hascolor=" + hascolor + ", ctmax=" + ctmax + ", ctmin=" + ctmin + ", type=" + type
37                 + ", state=" + state + ", e='" + e + '\'' + ", r='" + r + '\'' + ", t='" + t + '\'' + ", id='" + id
38                 + '\'' + ", manufacturername='" + manufacturername + '\'' + ", modelid='" + modelid + '\'' + ", name='"
39                 + name + '\'' + ", swversion='" + swversion + '\'' + ", ep='" + ep + '\'' + ", uniqueid='" + uniqueid
40                 + '\'' + '}';
41     }
42 }