]> git.basschouten.com Git - openhab-addons.git/blob
27323027f9508fd10a2bedab89d1d6aec5133cd2
[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.lutron.internal.discovery.project;
14
15 import java.util.Collections;
16 import java.util.List;
17
18 /**
19  * This class represents a Lutron system and the topology of device things within
20  * that system.
21  *
22  * @author Allan Tong - Initial contribution
23  * @author Bob Adair - Added Timeclock and Green Mode support
24  */
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;
31
32     public String getAppVersion() {
33         return appVersion;
34     }
35
36     public String getXmlVersion() {
37         return xmlVersion;
38     }
39
40     public List<Area> getAreas() {
41         return areas != null ? areas : Collections.<Area> emptyList();
42     }
43
44     public List<Timeclock> getTimeclocks() {
45         return timeclocks != null ? timeclocks : Collections.<Timeclock> emptyList();
46     }
47
48     public List<GreenMode> getGreenModes() {
49         return greenmodes != null ? greenmodes : Collections.<GreenMode> emptyList();
50     }
51 }