]> git.basschouten.com Git - openhab-addons.git/blob
5c8c4a4843cfa40b142c16864a87e0cc8f8c4755
[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 /**
16  * An output device in a Lutron system such as a switch or dimmer.
17  *
18  * @author Allan Tong - Initial contribution
19  */
20 public class Output {
21     private String name;
22     private Integer integrationId;
23     private String type;
24
25     public String getName() {
26         return name;
27     }
28
29     public Integer getIntegrationId() {
30         return integrationId;
31     }
32
33     public String getType() {
34         return type;
35     }
36
37     public OutputType getOutputType() {
38         try {
39             return OutputType.valueOf(this.type);
40         } catch (Exception e) {
41             return null;
42         }
43     }
44 }