]> git.basschouten.com Git - openhab-addons.git/blob
ef55d12412c5d095e70b28bb1378b1409d156484
[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.bondhome.internal.api;
14
15 import static org.openhab.binding.bondhome.internal.BondHomeBindingConstants.*;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.openhab.core.thing.ThingTypeUID;
19
20 import com.google.gson.annotations.SerializedName;
21
22 /**
23  * This enum represents the possible device types
24  *
25  * @author Sara Geleskie Damiano - Initial contribution
26  *
27  */
28 @NonNullByDefault
29 public enum BondDeviceType {
30     @SerializedName("CF")
31     CEILING_FAN(THING_TYPE_BOND_FAN),
32     @SerializedName("MS")
33     MOTORIZED_SHADES(THING_TYPE_BOND_SHADES),
34     @SerializedName("FP")
35     FIREPLACE(THING_TYPE_BOND_FIREPLACE),
36     @SerializedName("GX")
37     GENERIC_DEVICE(THING_TYPE_BOND_GENERIC),
38     @SerializedName("LT")
39     LIGHT(THING_TYPE_BOND_LIGHT);
40
41     private ThingTypeUID deviceTypeUid;
42
43     private BondDeviceType(final ThingTypeUID deviceTypeUid) {
44         this.deviceTypeUid = deviceTypeUid;
45     }
46
47     /**
48      * Gets the device type name for request deviceType
49      *
50      * @return the deviceType name
51      */
52     public ThingTypeUID getThingTypeUID() {
53         return deviceTypeUid;
54     }
55 }