]> git.basschouten.com Git - openhab-addons.git/blob
1caa60c29540c3e482bc338b5a0f4dc32ae35b5d
[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.tankerkoenig.internal.dto;
14
15 /**
16  * The {@link OpeningTime} class is representing single Opening Time entry from the api request (i.e one setting like
17  * "Montag" "09:00" "18:00")
18  *
19  * @author Jürgen Baginski - Initial contribution
20  */
21 public class OpeningTime {
22
23     private String text;
24     private String start;
25     private String end;
26
27     public String getText() {
28         return text;
29     }
30
31     public void setText(String text) {
32         this.text = text;
33     }
34
35     public String getStart() {
36         return start;
37     }
38
39     public void setStart(String start) {
40         this.start = start;
41     }
42
43     public String getEnd() {
44         return end;
45     }
46
47     public void setEnd(String end) {
48         this.end = end;
49     }
50
51     @Override
52     public String toString() {
53         StringBuilder sb = new StringBuilder();
54         sb.append(" ").append(this.getText()).append(" Open: ").append(this.getStart()).append("  Close: ")
55                 .append(this.getEnd());
56         return sb.toString();
57     }
58 }