]> git.basschouten.com Git - openhab-addons.git/blob
046fe0235774df9478d51f0249a744302e08e4fe
[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.neeo.internal.models;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * The model representing an execute setp (serialize/deserialize json use only)
20  *
21  * @author Tim Roberts - Initial contribution
22  */
23 @NonNullByDefault
24 public class ExecuteStep {
25
26     /** The duration of the step */
27     private int duration;
28
29     /** The text describing the step */
30     @Nullable
31     private String text;
32
33     /**
34      * Gets the duration of the step
35      *
36      * @return the duration
37      */
38     public int getDuration() {
39         return duration;
40     }
41
42     /**
43      * Gets the text describing the step
44      *
45      * @return the text
46      */
47     @Nullable
48     public String getText() {
49         return text;
50     }
51
52     @Override
53     public String toString() {
54         return "ExecuteStep [duration=" + duration + ", text=" + text + "]";
55     }
56 }