]> git.basschouten.com Git - openhab-addons.git/blob
e19d6cfbbf8d5f419914fb48c95aa299a6c63dce
[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.yamahareceiver.internal.protocol.xml;
14
15 import java.util.function.Supplier;
16
17 import org.openhab.binding.yamahareceiver.internal.YamahaReceiverBindingConstants.Zone;
18 import org.openhab.binding.yamahareceiver.internal.protocol.AbstractConnection;
19 import org.openhab.binding.yamahareceiver.internal.protocol.InputConverter;
20 import org.openhab.binding.yamahareceiver.internal.state.AvailableInputStateListener;
21 import org.slf4j.LoggerFactory;
22
23 /**
24  * Special case of {@link ZoneAvailableInputsXML} that emulates Zone_2 for Yamaha HTR-xxx using Zone_B features.
25  *
26  * @author Tomasz Maruszak - Initial contribution.
27  */
28 public class ZoneBAvailableInputsXML extends ZoneAvailableInputsXML {
29
30     public ZoneBAvailableInputsXML(AbstractConnection con, AvailableInputStateListener observer,
31             Supplier<InputConverter> inputConverterSupplier) {
32         super(con, Zone.Main_Zone, observer, inputConverterSupplier);
33         this.logger = LoggerFactory.getLogger(ZoneBAvailableInputsXML.class);
34     }
35
36     @Override
37     public Zone getZone() {
38         return Zone.Zone_2;
39     }
40 }