]> git.basschouten.com Git - openhab-addons.git/blob
d7e20e251cd6900f754cdbfa62b9ea9cbb96bad8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 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.gardena.internal.model;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * Represents a Gardena scheduled event.
19  *
20  * @author Gerhard Riegler - Initial contribution
21  */
22 public class ScheduledEvent {
23
24     private String id;
25     private String type;
26     @SerializedName("start_at")
27     private String start;
28     @SerializedName("end_at")
29     private String end;
30     private String weekday;
31
32     private Recurrence recurrence = new Recurrence();
33
34     /**
35      * Returns the id of the scheduled event.
36      */
37     public String getId() {
38         return id;
39     }
40
41     /**
42      * Returns the type of the scheduled event.
43      */
44     public String getType() {
45         return type;
46     }
47
48     /**
49      * Returns the start of the scheduled event.
50      */
51     public String getStart() {
52         return start;
53     }
54
55     /**
56      * Returns the end of the scheduled event.
57      */
58     public String getEnd() {
59         return end;
60     }
61
62     /**
63      * Returns the weekday of the scheduled event.
64      */
65     public String getWeekday() {
66         return weekday;
67     }
68
69     /**
70      * Returns the recurrence of the scheduled event.
71      */
72     public Recurrence getRecurrence() {
73         return recurrence;
74     }
75 }