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