2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.airvisualnode.internal.dto.airvisualpro;
15 import java.util.List;
17 import org.openhab.binding.airvisualnode.internal.dto.PowerSavingTime;
18 import org.openhab.binding.airvisualnode.internal.dto.PowerSavingTimeSlot;
20 import com.google.gson.annotations.SerializedName;
25 * @author Victor Antonovich - Initial contribution
27 public class PowerSaving {
29 @SerializedName("2slots")
30 private List<PowerSavingTimeSlot> timeSlots = null;
34 private long runningTime;
36 @SerializedName("yes")
37 private List<PowerSavingTime> times = null;
39 public PowerSaving(List<PowerSavingTimeSlot> timeSlots, String mode, long runningTime,
40 List<PowerSavingTime> times) {
42 this.runningTime = runningTime;
44 this.timeSlots = timeSlots;
47 public List<PowerSavingTimeSlot> getTimeSlots() {
51 public void setTimeSlots(List<PowerSavingTimeSlot> timeSlots) {
52 this.timeSlots = timeSlots;
55 public List<PowerSavingTime> getTimes() {
59 public void setTimes(List<PowerSavingTime> times) {
63 public String getMode() {
67 public void setMode(String mode) {
71 public long getRunningTime() {
75 public void setRunningTime(long runningTime) {
76 this.runningTime = runningTime;