2 * Copyright (c) 2010-2022 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.pioneeravr.internal.protocol.avr;
16 * The base interface for an AVR command.
18 * @author Antoine Besnard - Initial contribution
20 public interface AvrCommand {
23 * Represent a CommandType of command requests
25 public interface CommandType {
27 * Return the command of this command type.
31 public String getCommand();
34 * Return the command of this command type for the given zone.
36 * The first zone number is 1.
40 public String getCommand(int zone);
43 * Return the name of the command type
51 * Return the command to send to the AVR.
55 public String getCommand();
58 * Return the number of the zone this command will be sent to.
65 * Return the the command type of this command.
69 public CommandType getCommandType();