]> git.basschouten.com Git - openhab-addons.git/blob
5f7953e1f676725ffad6c55a923d50a7e84f9a9f
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2022 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.knx.internal.config;
14
15 import java.math.BigDecimal;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18
19 /**
20  * Configuration object for the device thing handler.
21  *
22  * @author Karel Goderis - Initial contribution
23  * @author Simon Kaufmann - refactoring & cleanup
24  */
25 @NonNullByDefault
26 public class DeviceConfig {
27
28     private String address = "";
29     private boolean fetch = false;
30     private BigDecimal pingInterval = BigDecimal.valueOf(0);
31     private BigDecimal readInterval = BigDecimal.valueOf(0);
32
33     public String getAddress() {
34         return address;
35     }
36
37     public Boolean getFetch() {
38         return fetch;
39     }
40
41     public BigDecimal getPingInterval() {
42         return pingInterval;
43     }
44
45     public BigDecimal getReadInterval() {
46         return readInterval;
47     }
48 }