]> git.basschouten.com Git - openhab-addons.git/blob
54acbcc73819db52d66c3227c5d4edee542608e4
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2021 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.homeconnect.internal.client.model;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * AvailableProgram model
19  *
20  * @author Jonas BrĂ¼stel - Initial contribution
21  *
22  */
23 @NonNullByDefault
24 public class AvailableProgram {
25     private final String key;
26     private final boolean available;
27     private final String execution;
28
29     public AvailableProgram(String key, boolean available, String execution) {
30         this.key = key;
31         this.available = available;
32         this.execution = execution;
33     }
34
35     public String getKey() {
36         return key;
37     }
38
39     public boolean isAvailable() {
40         return available;
41     }
42
43     public String getExecution() {
44         return execution;
45     }
46
47     @Override
48     public String toString() {
49         return "AvailableProgram [key=" + key + ", available=" + available + ", execution=" + execution + "]";
50     }
51 }