2 * Copyright (c) 2010-2023 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.List;
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 List<String> devicemembership = List.of();
31 public @Nullable Boolean hidden;
32 public List<String> lights = List.of();
33 public List<String> lightsequence = List.of();
34 public List<String> multideviceids = List.of();
35 public List<Scene> scenes = List.of();
36 public @Nullable GroupState state;
37 public @Nullable GroupType type;
40 public String toString() {
41 return "GroupMessage{" + "e='" + e + '\'' + ", r=" + r + ", t='" + t + '\'' + ", id='" + id + '\''
42 + ", manufacturername='" + manufacturername + '\'' + ", modelid='" + modelid + '\'' + ", name='" + name
43 + '\'' + ", swversion='" + swversion + '\'' + ", ep='" + ep + '\'' + ", lastseen='" + lastseen + '\''
44 + ", uniqueid='" + uniqueid + '\'' + ", action=" + action + ", devicemembership=" + devicemembership
45 + ", hidden=" + hidden + ", lights=" + lights + ", lightsequence=" + lightsequence + ", multideviceids="
46 + multideviceids + ", scenes=" + scenes + ", state=" + state + ", type=" + type + '}';