]> git.basschouten.com Git - openhab-addons.git/blob
630e3605ba272820295ac0b11c514c77a845982a
[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.hyperion.internal.protocol.ng;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link Component} is a POJO for a component in the Hyperion.ng server.
19  *
20  * @author Daniel Walters - Initial contribution
21  */
22 public class Component {
23
24     @SerializedName("name")
25     private String name;
26
27     @SerializedName("enabled")
28     private boolean enabled;
29
30     public String getName() {
31         return name;
32     }
33
34     public boolean isEnabled() {
35         return enabled;
36     }
37
38     public void setName(String name) {
39         this.name = name;
40     }
41
42     public void setEnabled(boolean enabled) {
43         this.enabled = enabled;
44     }
45 }