]> git.basschouten.com Git - openhab-addons.git/blob
2fc0b2402a7cf575e0958d888756a4fa04c6e9a7
[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.groupepsa.internal.rest.api.dto;
14
15 import java.math.BigDecimal;
16
17 import org.eclipse.jdt.annotation.NonNullByDefault;
18 import org.eclipse.jdt.annotation.Nullable;
19
20 /**
21  * @author Arjan Mels - Initial contribution
22  */
23 @NonNullByDefault
24 public class Program {
25
26     private @Nullable Occurence occurence;
27     private @Nullable String recurrence;
28     private @Nullable String start;
29     private @Nullable Boolean enabled;
30     private @Nullable BigDecimal slot;
31
32     public @Nullable Occurence getOccurence() {
33         return occurence;
34     }
35
36     public @Nullable String getRecurrence() {
37         return recurrence;
38     }
39
40     public @Nullable String getStart() {
41         return start;
42     }
43
44     public @Nullable Boolean isEnabled() {
45         return enabled;
46     }
47
48     public @Nullable BigDecimal getSlot() {
49         return slot;
50     }
51
52     @Override
53     public String toString() {
54         return new ToStringBuilder(this).append("occurence", occurence).append("recurrence", recurrence)
55                 .append("start", start).append("enabled", enabled).append("slot", slot).toString();
56     }
57 }