2 * Copyright (c) 2010-2020 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 java.util.Arrays;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19 import org.openhab.binding.deconz.internal.types.GroupType;
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.
25 * @author Jan N. Klug - Initial contribution
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;
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 + '}';