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.hue.internal.api.dto.clip1;
15 import java.util.ArrayList;
16 import java.util.List;
20 * Container for all data on a bridge.
22 * @author Q42 - Initial contribution
23 * @author Denis Dudnik - moved Jue library source code inside the smarthome Hue binding
25 public class FullConfig {
26 private Map<String, FullLight> lights;
27 private Map<String, FullGroup> groups;
28 private Config config;
31 * Returns detailed information about all lights known to the bridge.
33 * @return detailed lights list
35 public List<FullLight> getLights() {
36 ArrayList<FullLight> lightsList = new ArrayList<>();
38 for (Map.Entry<String, FullLight> entry : lights.entrySet()) {
39 String id = entry.getKey();
40 FullLight light = entry.getValue();
42 lightsList.add(light);
49 * Returns detailed information about all groups on the bridge.
51 * @return detailed groups list
53 public List<FullGroup> getGroups() {
54 ArrayList<FullGroup> groupsList = new ArrayList<>();
56 for (Map.Entry<String, FullGroup> entry : groups.entrySet()) {
57 String id = entry.getKey();
58 FullGroup group = entry.getValue();
60 groupsList.add(group);
67 * Returns bridge configuration.
68 * Use HueBridge.getConfig() if you only need this.
70 * @return bridge configuration
72 public Config getConfig() {