2 * Copyright (c) 2010-2024 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.lutron.internal.discovery.project;
15 import java.util.Collections;
16 import java.util.List;
19 * This class represents a Lutron system and the topology of device things within
22 * @author Allan Tong - Initial contribution
23 * @author Bob Adair - Added Timeclock and Green Mode support
25 public class Project {
26 private String appVersion;
27 private String xmlVersion;
28 private List<Area> areas;
29 private List<Timeclock> timeclocks;
30 private List<GreenMode> greenmodes;
32 public String getAppVersion() {
36 public String getXmlVersion() {
40 public List<Area> getAreas() {
41 return areas != null ? areas : Collections.<Area> emptyList();
44 public List<Timeclock> getTimeclocks() {
45 return timeclocks != null ? timeclocks : Collections.<Timeclock> emptyList();
48 public List<GreenMode> getGreenModes() {
49 return greenmodes != null ? greenmodes : Collections.<GreenMode> emptyList();