]> git.basschouten.com Git - openhab-addons.git/blob
b1d52a387737af00e38af021ca9fc1e02cffc983
[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.airvisualpro;
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
32     private String mode;
33
34     private long runningTime;
35
36     @SerializedName("yes")
37     private List<PowerSavingTime> times = null;
38
39     public PowerSaving(List<PowerSavingTimeSlot> timeSlots, String mode, long runningTime,
40             List<PowerSavingTime> times) {
41         this.mode = mode;
42         this.runningTime = runningTime;
43         this.times = times;
44         this.timeSlots = timeSlots;
45     }
46
47     public List<PowerSavingTimeSlot> getTimeSlots() {
48         return timeSlots;
49     }
50
51     public void setTimeSlots(List<PowerSavingTimeSlot> timeSlots) {
52         this.timeSlots = timeSlots;
53     }
54
55     public List<PowerSavingTime> getTimes() {
56         return times;
57     }
58
59     public void setTimes(List<PowerSavingTime> times) {
60         this.times = times;
61     }
62
63     public String getMode() {
64         return mode;
65     }
66
67     public void setMode(String mode) {
68         this.mode = mode;
69     }
70
71     public long getRunningTime() {
72         return runningTime;
73     }
74
75     public void setRunningTime(long runningTime) {
76         this.runningTime = runningTime;
77     }
78 }