]> git.basschouten.com Git - openhab-addons.git/blob
5a9dd81b89cfd70c229ea31d56850a69e5af6152
[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.airvisualnode.internal.json;
14
15 import java.util.List;
16
17 import com.google.gson.annotations.SerializedName;
18
19 /**
20  * Power saving data.
21  *
22  * @author Victor Antonovich - Initial contribution
23  */
24 public class PowerSaving {
25
26     @SerializedName("2slots")
27     private List<PowerSavingTimeSlot> timeSlots = null;
28     private String mode;
29     @SerializedName("yes")
30     private List<PowerSavingTime> times = null;
31
32     public PowerSaving(List<PowerSavingTimeSlot> timeSlots, String mode, List<PowerSavingTime> times) {
33         this.mode = mode;
34         this.times = times;
35         this.timeSlots = timeSlots;
36     }
37
38     public List<PowerSavingTimeSlot> getTimeSlots() {
39         return timeSlots;
40     }
41
42     public void setTimeSlots(List<PowerSavingTimeSlot> timeSlots) {
43         this.timeSlots = timeSlots;
44     }
45
46     public List<PowerSavingTime> getTimes() {
47         return times;
48     }
49
50     public void setTimes(List<PowerSavingTime> times) {
51         this.times = times;
52     }
53
54     public String getMode() {
55         return mode;
56     }
57
58     public void setMode(String mode) {
59         this.mode = mode;
60     }
61 }