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.lutron.internal.protocol;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17 import org.openhab.binding.lutron.internal.handler.LeapBridgeHandler;
18 import org.openhab.binding.lutron.internal.protocol.leap.LeapCommand;
19 import org.openhab.binding.lutron.internal.protocol.lip.LutronCommandType;
20 import org.openhab.binding.lutron.internal.protocol.lip.LutronOperation;
21 import org.openhab.binding.lutron.internal.protocol.lip.TargetType;
24 * Lutron command abstract base class
26 * @author Bob Adair - Initial contribution
29 public abstract class LutronCommandNew {
30 public final TargetType targetType;
31 protected final LutronOperation operation;
32 protected final LutronCommandType commandType;
33 protected final @Nullable Integer integrationId;
35 public LutronCommandNew(TargetType targetType, LutronOperation operation, LutronCommandType type,
36 @Nullable Integer integrationId) {
37 this.targetType = targetType;
38 this.operation = operation;
39 this.commandType = type;
40 this.integrationId = integrationId;
43 public LutronCommandType getType() {
47 public LutronOperation getOperation() {
51 public @Nullable Integer getIntegrationId() {
55 public abstract String lipCommand();
57 public abstract @Nullable LeapCommand leapCommand(LeapBridgeHandler bridgeHandler, @Nullable Integer leapZone);