]> git.basschouten.com Git - openhab-addons.git/blob
916eac9a4c5220fb2613998f4b3f411952e657ab
[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.List;
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 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;
38
39     @Override
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 + '}';
47     }
48 }