]> git.basschouten.com Git - openhab-addons.git/blob
307d51601986e073c08ce14569e5b8756e53d940
[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 java.util.Arrays;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.deconz.internal.types.GroupType;
20
21 /**
22  * The REST interface and websocket connection are using the same fields.
23  * The REST data contains more descriptive info like the manufacturer and name.
24  *
25  * @author Jan N. Klug - Initial contribution
26  */
27 @NonNullByDefault
28 public class GroupMessage extends DeconzBaseMessage {
29     public @Nullable GroupAction action;
30     public String @Nullable [] devicemembership;
31     public @Nullable Boolean hidden;
32     public String @Nullable [] lights;
33     public String @Nullable [] lightsequence;
34     public String @Nullable [] multideviceids;
35     public Scene @Nullable [] scenes;
36     public @Nullable GroupState state;
37     public @Nullable GroupType type;
38
39     @Override
40     public String toString() {
41         return "GroupMessage{" + "action=" + action + ", devicemembership=" + Arrays.toString(devicemembership)
42                 + ", hidden=" + hidden + ", lights=" + Arrays.toString(lights) + ", lightsequence="
43                 + Arrays.toString(lightsequence) + ", multideviceids=" + Arrays.toString(multideviceids) + ", scenes="
44                 + Arrays.toString(scenes) + ", state=" + state + ", type=" + type + '}';
45     }
46 }