2 * Copyright (c) 2010-2023 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.homeconnect.internal.client.model;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * AvailableProgram model
20 * @author Jonas BrĂ¼stel - Initial contribution
21 * @author Laurent Garnier - field "supported" added
25 public class AvailableProgram {
26 private final String key;
27 private final boolean supported;
28 private final boolean available;
29 private final String execution;
31 public AvailableProgram(String key, boolean supported, boolean available, String execution) {
33 this.supported = supported;
34 this.available = available;
35 this.execution = execution;
38 public AvailableProgram(String key, boolean available, String execution) {
39 this(key, true, available, execution);
42 public AvailableProgram(String key, boolean supported) {
43 this(key, supported, true, "");
46 public String getKey() {
50 public boolean isSupported() {
54 public boolean isAvailable() {
58 public String getExecution() {
63 public String toString() {
64 return "AvailableProgram [key=" + key + ", supported=" + supported + ", available=" + available + ", execution="