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.surepetcare.internal.dto;
15 import java.time.LocalTime;
18 * The {@link SurePetcareDeviceCurfew} class is used to serialize a curfew.
20 * @author Rene Scherer - Initial contribution
22 public class SurePetcareDeviceCurfew {
24 public boolean enabled;
25 public LocalTime lockTime;
26 public LocalTime unlockTime;
28 public SurePetcareDeviceCurfew() {
30 this.lockTime = LocalTime.MIDNIGHT;
31 this.unlockTime = LocalTime.MIDNIGHT;
34 public SurePetcareDeviceCurfew(boolean enabled, LocalTime lockTime, LocalTime unlockTime) {
35 this.enabled = enabled;
36 this.lockTime = lockTime;
37 this.unlockTime = unlockTime;
41 public String toString() {
42 return enabled + "," + lockTime + "," + unlockTime;