]> git.basschouten.com Git - openhab-addons.git/blob
fba2d03acec15ad94708cb16eccfaf15dfeaf5ce
[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.solarmax.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.solarmax.internal.connector.SolarMaxCommandKey;
17
18 /**
19  * The {@link SolarMaxProperty} Enum defines common constants, which are
20  * used across the whole binding.
21  *
22  * @author Jamie Townsend - Initial contribution
23  */
24 @NonNullByDefault
25 public enum SolarMaxProperty {
26
27     PROPERTY_SOFTWARE_VERSION(SolarMaxCommandKey.softwareVersion.name()),
28     PROPERTY_BUILD_NUMBER(SolarMaxCommandKey.buildNumber.name());
29
30     private final String propertyId;
31
32     private SolarMaxProperty(String propertyId) {
33         this.propertyId = propertyId;
34     }
35
36     public String getPropertyId() {
37         return propertyId;
38     }
39 }