]> git.basschouten.com Git - openhab-addons.git/blob
f1f5e79759f7753e00a6bd67060e88673645c677
[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.denonmarantz.internal.config;
14
15 import java.math.BigDecimal;
16 import java.util.List;
17
18 import org.openhab.binding.denonmarantz.internal.connector.DenonMarantzConnector;
19
20 /**
21  * Configuration class for the Denon Marantz binding.
22  *
23  * @author Jan-Willem Veldhuis - Initial contribution
24  *
25  */
26 public class DenonMarantzConfiguration {
27
28     /**
29      * The hostname (or IP Address) of the Denon Marantz AVR
30      */
31     public String host;
32
33     /**
34      * Whether Telnet communication is enabled
35      */
36     public Boolean telnetEnabled;
37
38     /**
39      * The telnet port
40      */
41     public Integer telnetPort;
42
43     /**
44      * The HTTP port
45      */
46     public Integer httpPort;
47
48     /**
49      * The interval to poll the AVR over HTTP for changes
50      */
51     public Integer httpPollingInterval;
52
53     // Default maximum volume
54     public static final BigDecimal MAX_VOLUME = new BigDecimal("98");
55
56     private DenonMarantzConnector connector;
57
58     private Integer zoneCount;
59
60     private BigDecimal mainVolumeMax = MAX_VOLUME;
61
62     public List<String> inputOptions;
63
64     public String getHost() {
65         return host;
66     }
67
68     public void setHost(String host) {
69         this.host = host;
70     }
71
72     public Boolean isTelnet() {
73         return telnetEnabled;
74     }
75
76     public void setTelnet(boolean telnet) {
77         this.telnetEnabled = telnet;
78     }
79
80     public Integer getTelnetPort() {
81         return telnetPort;
82     }
83
84     public void setTelnetPort(Integer telnetPort) {
85         this.telnetPort = telnetPort;
86     }
87
88     public Integer getHttpPort() {
89         return httpPort;
90     }
91
92     public void setHttpPort(Integer httpPort) {
93         this.httpPort = httpPort;
94     }
95
96     public DenonMarantzConnector getConnector() {
97         return connector;
98     }
99
100     public void setConnector(DenonMarantzConnector connector) {
101         this.connector = connector;
102     }
103
104     public BigDecimal getMainVolumeMax() {
105         return mainVolumeMax;
106     }
107
108     public void setMainVolumeMax(BigDecimal mainVolumeMax) {
109         this.mainVolumeMax = mainVolumeMax;
110     }
111
112     public Integer getZoneCount() {
113         return zoneCount;
114     }
115
116     public void setZoneCount(Integer count) {
117         Integer zoneCount = count;
118         this.zoneCount = zoneCount;
119     }
120 }