]> git.basschouten.com Git - openhab-addons.git/blob
541cfafbe261a3be1044871cf55c5dabd55ed925
[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.io.hueemulation.internal.dto;
14
15 import java.util.List;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * Hue API scene object
22  *
23  * @author David Graeff - Initial contribution
24  */
25 @NonNullByDefault
26 public class HueSceneEntry {
27     public static enum TypeEnum {
28         LightScene, // 1.28
29         GroupScene, // 1.28
30     }
31
32     public TypeEnum type = TypeEnum.LightScene;
33
34     // A unique, editable name given to the group.
35     public String name;
36     public String description = "";
37
38     public String owner = "";
39     public boolean recycle = false;
40     public boolean locked = false;
41
42     final int version = 2;
43
44     public String appdata = "";
45     public String picture = "";
46
47     // The IDs of the lights that are in the group.
48     public @Nullable List<String> lights;
49     public @Nullable String group;
50
51     HueSceneEntry() {
52         name = "";
53     }
54
55     public HueSceneEntry(@Nullable String name) {
56         this.name = name != null ? name : "";
57     }
58 }