]> git.basschouten.com Git - openhab-addons.git/blob
2abb183633ff538cb9fca3367700cde15f95e0d0
[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 java.util.Arrays;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * The {@link GroupAction} is send by the websocket connection as well as the Rest API.
22  * It is part of a {@link GroupMessage}.
23  *
24  * @author Jan N. Klug - Initial contribution
25  */
26 @NonNullByDefault
27 public class GroupAction {
28     public @Nullable Boolean on;
29     public @Nullable Boolean toggle;
30     public @Nullable Integer bri;
31     public @Nullable Integer hue;
32     public @Nullable Integer sat;
33     public @Nullable Integer ct;
34     public double @Nullable [] xy;
35     public @Nullable String alert;
36     public @Nullable String colormode;
37     public @Nullable String effect;
38     public @Nullable Integer colorloopspeed;
39     public @Nullable Integer transitiontime;
40
41     @Override
42     public String toString() {
43         return "GroupAction{on=" + on + ", toggle=" + toggle + ", bri=" + bri + ", hue=" + hue + ", sat=" + sat
44                 + ", ct=" + ct + ", xy=" + Arrays.toString(xy) + ", alert='" + alert + "', colormode='" + colormode
45                 + "', effect='" + effect + "', colorloopspeed=" + colorloopspeed + ", transitiontime=" + transitiontime
46                 + "}";
47     }
48 }