2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
18 * @author Gregory Moyer - Initial contribution
21 private TimeBased timeBased;
22 private WhenDark whenDark;
24 public TimeBased getTimeBased() {
28 public void setTimeBased(TimeBased timeBased) {
29 this.timeBased = timeBased;
32 public Modes withTimeBased(TimeBased timeBased) {
33 this.timeBased = timeBased;
37 public WhenDark getWhenDark() {
41 public void setWhenDark(WhenDark whenDark) {
42 this.whenDark = whenDark;
45 public Modes withWhenDark(WhenDark whenDark) {
46 this.whenDark = whenDark;
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);
58 return builder.toString();