]> git.basschouten.com Git - openhab-addons.git/blob
7735c62af351b58748cbfe036a1dfe68147a3824
[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.lametrictime.internal.api.local.dto;
14
15 /**
16  * Pojo for modes.
17  *
18  * @author Gregory Moyer - Initial contribution
19  */
20 public class Modes {
21     private TimeBased timeBased;
22     private WhenDark whenDark;
23
24     public TimeBased getTimeBased() {
25         return timeBased;
26     }
27
28     public void setTimeBased(TimeBased timeBased) {
29         this.timeBased = timeBased;
30     }
31
32     public Modes withTimeBased(TimeBased timeBased) {
33         this.timeBased = timeBased;
34         return this;
35     }
36
37     public WhenDark getWhenDark() {
38         return whenDark;
39     }
40
41     public void setWhenDark(WhenDark whenDark) {
42         this.whenDark = whenDark;
43     }
44
45     public Modes withWhenDark(WhenDark whenDark) {
46         this.whenDark = whenDark;
47         return this;
48     }
49
50     @Override
51     public String toString() {
52         StringBuilder builder = new StringBuilder();
53         builder.append("Modes [timeBased=");
54         builder.append(timeBased);
55         builder.append(", whenDark=");
56         builder.append(whenDark);
57         builder.append("]");
58         return builder.toString();
59     }
60 }