]> git.basschouten.com Git - openhab-addons.git/blob
5cc57d7479995412d08c95680c42d4af67b5c083
[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.volumio.internal;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * The {@link VolumioConfiguration} class contains fields mapping thing configuration parameters.
19  *
20  * @author Patrick Sernetz - Initial contribution
21  * @author Chris Wohlbrecht - Adapt for openHAB 3
22  * @author Michael Loercher - Adaption for openHAB 3
23  */
24 @NonNullByDefault
25 public class VolumioConfiguration {
26
27     private String hostName = "";
28
29     private int port;
30
31     private String protocol = "";
32
33     private int timeout;
34
35     public String getHost() {
36         return hostName;
37     }
38
39     public void setHost(String host) {
40         this.hostName = host;
41     }
42
43     public int getPort() {
44         return port;
45     }
46
47     public void setPort(int port) {
48         this.port = port;
49     }
50
51     public String getProtocol() {
52         return protocol;
53     }
54
55     public void setProtocol(String protocol) {
56         this.protocol = protocol;
57     }
58
59     public int getTimeout() {
60         return timeout;
61     }
62
63     public void setTimeout(int timeout) {
64         this.timeout = timeout;
65     }
66 }