]> git.basschouten.com Git - openhab-addons.git/blob
eb73595d04e15c8a69f2d937e738f288c3811bec
[openhab-addons.git] /
1 /**
2  * Copyright 2017-2018 Gregory Moyer and contributors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package org.openhab.binding.lametrictime.api.local.model;
17
18 public class Modes
19 {
20     private TimeBased timeBased;
21     private WhenDark whenDark;
22
23     public TimeBased getTimeBased()
24     {
25         return timeBased;
26     }
27
28     public void setTimeBased(TimeBased timeBased)
29     {
30         this.timeBased = timeBased;
31     }
32
33     public Modes withTimeBased(TimeBased timeBased)
34     {
35         this.timeBased = timeBased;
36         return this;
37     }
38
39     public WhenDark getWhenDark()
40     {
41         return whenDark;
42     }
43
44     public void setWhenDark(WhenDark whenDark)
45     {
46         this.whenDark = whenDark;
47     }
48
49     public Modes withWhenDark(WhenDark whenDark)
50     {
51         this.whenDark = whenDark;
52         return this;
53     }
54
55     @Override
56     public String toString()
57     {
58         StringBuilder builder = new StringBuilder();
59         builder.append("Modes [timeBased=");
60         builder.append(timeBased);
61         builder.append(", whenDark=");
62         builder.append(whenDark);
63         builder.append("]");
64         return builder.toString();
65     }
66 }